PairToken · Contract on Tron
Smart contract
UNVERIFIED · mainnet
{}
PairToken
Address TCt8RaShSxvs9RWMXp8Fs4ZsdmGuQhL7h7
Contract balance 0TRX on-chain
Total calls 40 lifetime triggers
Functions 18 9 read · 9 write
Bytecode 6.33Kbytes runtime
Deployed Jun 14, 2023 unverified
Contract interface
ABI · 18 fns
contract.abi.json
[
{
"inputs": [
{
"name": "_ratioAtoB",
"type": "uint256"
},
{
"name": "_ratioBtoA",
"type": "uint256"
},
{
"name": "_Adecimal",
"type": "uint256"
},
{
"name": "_Bdecimal",
"type": "uint256"
},
{
"name": "_tokenA",
"type": "address"
},
{
"name": "_tokenB",
"type": "address"
},
{
"name": "_AtoBFee",
"type": "uint256"
},
{
"name": "_owner",
"type": "address"
},
{
"name": "_creaotrFee",
"type": "uint256"
}
],
"stateMutability": "Nonpayable",
"type": "Constructor"
},
{
"inputs": [
{
"name": "amount",
"type": "uint256"
},
{
"name": "token",
"type": "address"
}
],
"name": "Deposit",
"type": "Event"
},
{
"inputs": [
{
"name": "ownerFeeAmount",
"type": "uint256"
},
{
"name": "creatorFeeAmount",
"type": "uint256"
}
],
"name": "Swap",
"type": "Event"
},
{
"inputs": [
{
"name": "token",
"type": "address"
},
{
"name": "time",
"type": "uint256"
},
{
"name": "amount",
"type": "uint256"
}
],
"name": "Withdraw",
"type": "Event"
},
{
"outputs": [
{
"type": "uint256"
}
],
"name": "AtoBFee",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "_newFee",
"type": "uint256"
}
],
"name": "changeAtoBFee",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_newcreaotrFee",
"type": "uint256"
}
],
"name": "changeCreatorFee",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_AtoB",
"type": "uint256"
},
{
"name": "_BtoA",
"type": "uint256"
}
],
"name": "changeRatio",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
}
],
"name": "creator",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "_token",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"name": "deposit",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"inputs": [
{
"name": "_token",
"type": "address"
}
],
"name": "getBalance",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"name": "getCreatorFeeBalance",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256"
}
],
"name": "getOwnerFeebalance",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"name": "_AtoB",
"type": "uint256"
},
{
"name": "_BtoA",
"type": "uint256"
}
],
"name": "getRatio",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
}
],
"name": "owner",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"name": "swapTokenAtoTokenB",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"name": "swapTokenBtoTokenA",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
}
],
"name": "tokenA",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "address"
}
],
"name": "tokenB",
"stateMutability": "View",
"type": "Function"
},
{
"inputs": [
{
"name": "_token",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
}
],
"name": "withdraw",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"name": "withdrawAdminFee",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"name": "withdrawOwnerFee",
"stateMutability": "Nonpayable",
"type": "Function"
}
]About this contract
overview
PairToken is a smart contract on Tron, deployed from TLJ5AJ9x9GU68MRbWsCN2QWQqVLs43nXb8 on Jun 14, 2023. It has been called 40 times.
This contract is not source-verified, so only its on-chain bytecode and ABI are available. Read calls still run live against the node. Write calls require a signed wallet transaction — wallet support is coming soon.