Router · Contract on Tron
Smart contract
UNVERIFIED · mainnet
{}
Router
Address TReePVFNh2nkhED2K4eNiewU6QTHTa72Qr
Contract balance 0TRX on-chain
Total calls 0 lifetime triggers
Functions 26 8 read · 18 write
Bytecode 26.18Kbytes runtime
Deployed — unverified
Contract interface
ABI · 26 fns
contract.abi.json
[
{
"inputs": [
{
"name": "_manager",
"type": "address"
},
{
"name": "_factory",
"type": "address"
}
],
"stateMutability": "Nonpayable",
"type": "Constructor"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
],
"name": "AddLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "Cancel",
"type": "Event"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
}
],
"name": "CancelAddLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
}
],
"name": "CancelRemoveLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "Close",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "DepositMargin",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "Open",
"type": "Event"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
}
],
"name": "PriceToAddLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
}
],
"name": "PriceToRemoveLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "id",
"type": "uint256"
},
{
"name": "makeraddress",
"type": "address"
},
{
"name": "liquidity",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
],
"name": "RemoveLiquidity",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "TakerClose",
"type": "Event"
},
{
"inputs": [
{
"name": "market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "TakerOpen",
"type": "Event"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "inviter",
"type": "address"
},
{
"name": "minPrice",
"type": "uint128"
},
{
"name": "maxPrice",
"type": "uint128"
},
{
"name": "margin",
"type": "uint256"
},
{
"name": "leverage",
"type": "uint16"
},
{
"name": "direction",
"type": "int8"
},
{
"name": "deadline",
"type": "uint256"
}
],
"name": "takerOpen",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
},
{
"name": "minPrice",
"type": "uint128"
},
{
"name": "maxPrice",
"type": "uint128"
},
{
"name": "deadline",
"type": "uint256"
}
],
"name": "takerClose",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "takerOpenCancel",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "takerCloseCancel",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
},
{
"name": "price",
"type": "uint256"
},
{
"name": "indexPrice",
"type": "uint256"
},
{
"name": "indexPriceTimestamp",
"type": "uint256"
}
],
"name": "priceToOpen",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
},
{
"name": "price",
"type": "uint256"
},
{
"name": "indexPrice",
"type": "uint256"
},
{
"name": "indexPriceTimestamp",
"type": "uint256"
}
],
"name": "priceToClose",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "depositMargin",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "priceToOpenCancel",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "priceToCloseCancel",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
},
{
"name": "price",
"type": "uint256"
},
{
"name": "indexPrice",
"type": "uint256"
},
{
"name": "indexPriceTimestamp",
"type": "uint256"
}
],
"name": "priceToLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "taker",
"type": "address"
}
],
"name": "marketTakerOrderList",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "bytes"
}
],
"constant": true,
"inputs": [
{
"name": "_market",
"type": "address"
},
{
"name": "id",
"type": "uint256"
}
],
"name": "getMarketOrderByID",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_deadline",
"type": "uint256"
}
],
"name": "addLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
}
],
"name": "cancelAddLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"name": "_liquidity",
"type": "uint256"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
},
{
"name": "_price",
"type": "uint256"
},
{
"name": "_priceTimestamp",
"type": "uint256"
}
],
"name": "priceToAddLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_liquidity",
"type": "uint256"
},
{
"name": "_deadline",
"type": "uint256"
}
],
"name": "removeLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"name": "_amount",
"type": "uint256"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
},
{
"name": "_price",
"type": "uint256"
},
{
"name": "_priceTimestamp",
"type": "uint256"
}
],
"name": "priceToRemoveLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
}
],
"name": "cancelRemoveLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
}
],
"name": "systemCancelAddLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_id",
"type": "uint256"
}
],
"name": "systemCancelRemoveLiquidity",
"stateMutability": "Nonpayable",
"type": "Function"
},
{
"outputs": [
{
"name": "_orderIds",
"type": "uint256[]"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_taker",
"type": "address"
}
],
"name": "getMakerOrderIds",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"name": "_order",
"type": "bytes"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_no",
"type": "uint256"
}
],
"name": "getPoolOrder",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"name": "_liquidity",
"type": "uint256"
},
{
"name": "_totalSupply",
"type": "uint256"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_taker",
"type": "address"
}
],
"name": "getLpBalanceOf",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_makerMargin",
"type": "uint256"
}
],
"name": "canOpen",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_price",
"type": "uint256"
},
{
"name": "_liquidity",
"type": "uint256"
}
],
"name": "canRemoveLiquidity",
"stateMutability": "View",
"type": "Function"
},
{
"outputs": [
{
"type": "bool"
}
],
"constant": true,
"inputs": [
{
"name": "_makerAddress",
"type": "address"
},
{
"name": "_price",
"type": "uint256"
}
],
"name": "canAddLiquidity",
"stateMutability": "View",
"type": "Function"
}
]About this contract
overview
Router is a smart contract on Tron. It has been called 0 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.