Verified contractPartialGPL-3.0-or-later
TwapDelay
Address0x77b1e5d58247bc3300a8e646b018fcebfee5a59c
- Balance
0 ETH
- Transactions
988
- Compiler
solc 0.7.6
- Same code
Only this contract
Details
- Compiler
- solc 0.7.6+commit.7338295f
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- istanbul
- License
- GPL-3.0-or-later
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 14,423,137
- Creation transaction
- 0x564e65d292…3581ac8096
- Libraries
- contracts/libraries/Orders.sol:Orders0x6336…844531contracts/libraries/TokenShares.sol:TokenShares0xb28c…6a5168contracts/libraries/AddLiquidity.sol:AddLiquidity0xb291…1fd2fdcontracts/libraries/WithdrawHelper.sol:WithdrawHelper0x6195…63c2e3
Read24
- delay() → (uint32)
- factory() → (address)
- gasPrice() → (uint256)
- gasPriceInertia() → (uint256)
- getBuyDisabled(address) → (bool)
- getBuyOrder(uint256) → (tuple)
- getDepositDisabled(address) → (bool)
- getDepositOrder(uint256) → (tuple)
- getOrder(uint256) → (uint8,uint32)
- getOrderStatus(uint256) → (uint8)
- getSellDisabled(address) → (bool)
- getSellOrder(uint256) → (tuple)
- getTransferGasCost(address) → (uint256)
- getWithdrawDisabled(address) → (bool)
- getWithdrawOrder(uint256) → (tuple)
- isBot(address) → (bool)
- isOrderCanceled(uint256) → (bool)
- lastProcessedOrderId() → (uint256)
- maxGasLimit() → (uint256)
- maxGasPriceImpact() → (uint256)
- newestOrderId() → (uint256)
- owner() → (address)
- totalShares(address) → (uint256)
- weth() → (address)
Write22
- _executeBuy(tuple)
- _executeDeposit(tuple)
- _executeSell(tuple)
- _executeWithdraw(tuple)
- _refundLiquidity(address,address,uint256)
- _refundToken(address,address,uint256,bool)
- _refundTokens(address,address,uint256,address,uint256,bool)
- buy(tuple) → (uint256)
- cancelOrder(uint256)
- deposit(tuple) → (uint256)
- execute(uint256)
- retryRefund(uint256)
- sell(tuple) → (uint256)
- setBot(address,bool)
- setDelay(uint32)
- setGasPriceInertia(uint256)
- setMaxGasLimit(uint256)
- setMaxGasPriceImpact(uint256)
- setOrderDisabled(address,uint8,bool)
- setOwner(address)
- setTransferGasCost(address,uint256)
- withdraw(tuple) → (uint256)
Events13
- BotSet(address,bool)
- DelaySet(uint256)
- EthRefund(address,bool,uint256)
- Execute(address,uint256)
- GasPriceInertiaSet(uint256)
- MaxGasLimitSet(uint256)
- MaxGasPriceImpactSet(uint256)
- OrderDisabled(address,uint8,bool)
- OrderExecuted(uint256,bool,bytes,uint256,uint256)
- OwnerSet(address)
- RefundFailed(address,address,uint256,bytes)
- TransferGasCostSet(address,uint256)
- UnwrapFailed(address,uint256)
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "_factory",
"type": "address",
"internalType": "address"
},
{
"name": "_weth",
"type": "address",
"internalType": "address"
},
{
"name": "_bot",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "BotSet",
"type": "event",
"inputs": [
{
"name": "bot",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "isBot",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "DelaySet",
"type": "event",
"inputs": [
{
"name": "delay",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "EthRefund",
"type": "event",
"inputs": [
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "success",
"type": "bool",
"indexed": true,
"internalType": "bool"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Execute",
"type": "event",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "n",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "GasPriceInertiaSet",
"type": "event",
"inputs": [
{
"name": "gasPriceInertia",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MaxGasLimitSet",
"type": "event",
"inputs": [
{
"name": "maxGasLimit",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MaxGasPriceImpactSet",
"type": "event",
"inputs": [
{
"name": "maxGasPriceImpact",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "OrderDisabled",
"type": "event",
"inputs": [
{
"name": "pair",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "orderType",
"type": "uint8",
"indexed": false,
"internalType": "enum Orders.OrderType"
},
{
"name": "disabled",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"name": "OrderExecuted",
"type": "event",
"inputs": [
{
"name": "id",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "success",
"type": "bool",
"indexed": true,
"internalType": "bool"
},
{
"name": "data",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "gasSpent",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "ethRefunded",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "OwnerSet",
"type": "event",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "RefundFailed",
"type": "event",
"inputs": [
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"name": "TransferGasCostSet",
"type": "event",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "gasCost",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "UnwrapFailed",
"type": "event",
"inputs": [
{
"name": "to",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "_executeBuy",
"type": "function",
"inputs": [
{
"name": "buyOrder",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "inverse",
"type": "bool",
"internalType": "bool"
},
{
"name": "shareInMax",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.BuyOrder"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_executeDeposit",
"type": "function",
"inputs": [
{
"name": "depositOrder",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "share0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "share1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "swap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.DepositOrder"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_executeSell",
"type": "function",
"inputs": [
{
"name": "sellOrder",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "inverse",
"type": "bool",
"internalType": "bool"
},
{
"name": "shareIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOutMin",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.SellOrder"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_executeWithdraw",
"type": "function",
"inputs": [
{
"name": "withdrawOrder",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "liquidity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount0Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.WithdrawOrder"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_refundLiquidity",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "liquidity",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_refundToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "share",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "_refundTokens",
"type": "function",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "token0",
"type": "address",
"internalType": "address"
},
{
"name": "share0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "token1",
"type": "address",
"internalType": "address"
},
{
"name": "share1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "buy",
"type": "function",
"inputs": [
{
"name": "buyParams",
"type": "tuple",
"components": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "amountInMax",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "wrapUnwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "submitDeadline",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.BuyParams"
}
],
"outputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"name": "cancelOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "delay",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"name": "deposit",
"type": "function",
"inputs": [
{
"name": "depositParams",
"type": "tuple",
"components": [
{
"name": "token0",
"type": "address",
"internalType": "address"
},
{
"name": "token1",
"type": "address",
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "wrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "swap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "submitDeadline",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.DepositParams"
}
],
"outputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"name": "execute",
"type": "function",
"inputs": [
{
"name": "n",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "factory",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "gasPrice",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "gasPriceInertia",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getBuyDisabled",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "getBuyOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "order",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "inverse",
"type": "bool",
"internalType": "bool"
},
{
"name": "shareInMax",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.BuyOrder"
}
],
"stateMutability": "view"
},
{
"name": "getDepositDisabled",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "getDepositOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "order",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "share0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "share1",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxSwapPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "swap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.DepositOrder"
}
],
"stateMutability": "view"
},
{
"name": "getOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "orderType",
"type": "uint8",
"internalType": "enum Orders.OrderType"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"name": "getOrderStatus",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "enum Orders.OrderStatus"
}
],
"stateMutability": "view"
},
{
"name": "getSellDisabled",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "getSellOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "order",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "inverse",
"type": "bool",
"internalType": "bool"
},
{
"name": "shareIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOutMin",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "priceAccumulator",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "timestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.SellOrder"
}
],
"stateMutability": "view"
},
{
"name": "getTransferGasCost",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "gasCost",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "getWithdrawDisabled",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "getWithdrawOrder",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "order",
"type": "tuple",
"components": [
{
"name": "pairId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "liquidity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount0Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasPrice",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "validAfterTimestamp",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.WithdrawOrder"
}
],
"stateMutability": "view"
},
{
"name": "isBot",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "isOrderCanceled",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "lastProcessedOrderId",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "maxGasLimit",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "maxGasPriceImpact",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "newestOrderId",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "retryRefund",
"type": "function",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "sell",
"type": "function",
"inputs": [
{
"name": "sellParams",
"type": "tuple",
"components": [
{
"name": "tokenIn",
"type": "address",
"internalType": "address"
},
{
"name": "tokenOut",
"type": "address",
"internalType": "address"
},
{
"name": "amountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOutMin",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "wrapUnwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "submitDeadline",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.SellParams"
}
],
"outputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"name": "setBot",
"type": "function",
"inputs": [
{
"name": "_bot",
"type": "address",
"internalType": "address"
},
{
"name": "_isBot",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setDelay",
"type": "function",
"inputs": [
{
"name": "_delay",
"type": "uint32",
"internalType": "uint32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setGasPriceInertia",
"type": "function",
"inputs": [
{
"name": "_gasPriceInertia",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMaxGasLimit",
"type": "function",
"inputs": [
{
"name": "_maxGasLimit",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setMaxGasPriceImpact",
"type": "function",
"inputs": [
{
"name": "_maxGasPriceImpact",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setOrderDisabled",
"type": "function",
"inputs": [
{
"name": "pair",
"type": "address",
"internalType": "address"
},
{
"name": "orderType",
"type": "uint8",
"internalType": "enum Orders.OrderType"
},
{
"name": "disabled",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setOwner",
"type": "function",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "setTransferGasCost",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "gasCost",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "totalShares",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "weth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "withdraw",
"type": "function",
"inputs": [
{
"name": "withdrawParams",
"type": "tuple",
"components": [
{
"name": "token0",
"type": "address",
"internalType": "address"
},
{
"name": "token1",
"type": "address",
"internalType": "address"
},
{
"name": "liquidity",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount0Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1Min",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "gasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "submitDeadline",
"type": "uint32",
"internalType": "uint32"
}
],
"internalType": "struct Orders.WithdrawParams"
}
],
"outputs": [
{
"name": "orderId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "payable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.