DexTrading
event
Trade
Inputs
Parameter | Type | Description |
---|---|---|
from | address | |
to | address | |
toAmount | uint256 | |
trader | address | |
exchanges | address[] | |
tradeType | uint256 |
Outputs
(void)
fallback
(fallback)
payable
Inputs
(void)
Outputs
(void)
function
withdrawWeth
nonpayable
Inputs
(void)
Outputs
(void)
function
tradeAndSend
payable
Inputs
Parameter | Type | Description |
---|---|---|
from | address | |
to | address | |
recipient | address | |
fromAmount | uint256 | |
exchanges | address[] | |
approvals | address[] | |
data | bytes | |
offsets | uint256[] | |
etherValues | uint256[] | |
limitAmount | uint256 | |
tradeType | uint256 |
Outputs
(void)
function
trade
payable
Inputs
Parameter | Type | Description |
---|---|---|
from | address | |
to | address | |
fromAmount | uint256 | |
exchanges | address[] | |
approvals | address[] | |
data | bytes | |
offsets | uint256[] | |
etherValues | uint256[] | |
limitAmount | uint256 | |
tradeType | uint256 |
Outputs
(void)
Ownable
constructor
DexTrading
nonpayable
Inputs
(void)
Outputs
(void)
event
OwnershipTransferred
Inputs
Parameter | Type | Description |
---|---|---|
previousOwner | address | |
newOwner | address |
Outputs
(void)
function
transferOwnership
nonpayable
Restricted (onlyOwner)
Inputs
Parameter | Type | Description |
---|---|---|
newOwner | address |
Outputs
(void)
function
renounceOwnership
nonpayable
Restricted (onlyOwner)
Inputs
(void)
Outputs
(void)
function
owner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
isOwner
view
Inputs
(void)
Outputs
Type | Description |
---|---|
bool |
function
approvalHandler
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |
function
WETH
view
Inputs
(void)
Outputs
Type | Description |
---|---|
address |