TwapDelay

Verified contract

Proxy

Active on Ethereum with 3,668 txns
Deployed by via 0x258665a4 at 17856908
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 12 additional slots
-
variable spans 2 additional slots
ERC-20
--
0xeb67b0dc9e9f193d574479e4fef7833e7b59dd57b275d8bf9adf9c40569f99ef
0x086b0a94ee2fe77ffa54334bb001d967c47476f781108f729bc24b6fed5cbed2
0x19f2734d0cbb4085b1aefc9b0d331b9c2bbab5ea1fa3a891de2a9c951e27720a
0x094b0794e15604fbc6e0dc1a3356bd5b5698d506f7398fdf70270f5dca00eae8
0x149b208276966bab9cbaaf1b3ab74aa53fcb73aacf2b25d9da787f0ff9ce05ab
0x745d0a5a7519ce098186888551eb8b54a1fa84fc6ecc20696fd93e38c2605f22
0xb95eb932c3f705233159ee4b507c5cb646426ea18a83fc62077bb6949e1dd768
0x949b914bcfcd00af7f92994ecabfcc9a4bf8d0de6e83788f42591caea3296f71
0xcfdb19b992de31edaa08730f02f593465e5dbf113543f053582b67bee6cb5256
0x25682d03ecbc9431afd9146b3078b514889f8fd7209275dd7a116accfa54e64e

Functions
Getter at block 21270013
delay(view returns (uint256)
1800
factory(view returns (address)
0xc480b33ee5229de3fbdfad1d2dcd3f3bad0c56c6
gasPrice(view returns (uint256)
20552250735
gasPriceInertia(view returns (uint256)
20000000
lastProcessedOrderId(view returns (uint256)
3767
maxGasLimit(view returns (uint256)
5000000
maxGasPriceImpact(view returns (uint256)
1000000
newestOrderId(view returns (uint256)
3767
owner(view returns (address)
0xab066655a991550debaec0aa1cdd4f3bd7bb5483
relayer(view returns (address)
0xd17b3c9784510e33cd5b87b490e79253bcd81e2e
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
 
BUY_INVERTED_TYPE(view returns (uint256)
 
BUY_TYPE(view returns (uint256)
 
DEPOSIT_TYPE(view returns (uint256)
 
ETHER_TRANSFER_CALL_COST(view returns (uint256)
 
ORDER_BASE_COST(view returns (uint256)
 
PAIR_TRANSFER_COST(view returns (uint256)
 
REFUND_BASE_COST(view returns (uint256)
 
SELL_INVERTED_TYPE(view returns (uint256)
 
SELL_TYPE(view returns (uint256)
 
WITHDRAW_TYPE(view returns (uint256)
Read-only
getBuyDisabled(address pairview returns (bool)
getDepositDisabled(address pairview returns (bool)
getOrderStatus(uint256 orderIduint256 validAfterTimestampview returns (uint8)
getSellDisabled(address pairview returns (bool)
getTransferGasCost(address tokenview returns (uint256 gasCost)
getWithdrawDisabled(address pairview returns (bool)
isBot(addressview returns (bool)
isNonRebasingToken(address tokenview returns (bool)
isOrderCanceled(uint256 orderIdview returns (bool)
tolerance(addressview returns (uint16)
totalShares(address tokenview returns (uint256)
State-modifying
_executeBuy(struct OrdersOrder orderpayable 
_executeDeposit(struct OrdersOrder orderpayable 
_executeSell(struct OrdersOrder orderpayable 
_executeWithdraw(struct OrdersOrder orderpayable 
_refundLiquidity(address pairaddress touint256 liquiditypayable 
_refundToken(address tokenaddress touint256 sharebool unwrappayable 
_refundTokens(address toaddress token0uint256 share0address token1uint256 share1bool unwrappayable 
buy(struct OrdersBuyParams buyParamspayable returns (uint256 orderId)
cancelOrder(struct OrdersOrder order
deposit(struct OrdersDepositParams depositParamspayable returns (uint256 orderId)
execute(struct OrdersOrder[] _orderspayable 
relayerSell(struct OrdersSellParams sellParamspayable returns (uint256 orderId)
retryRefund(struct OrdersOrder order
sell(struct OrdersSellParams sellParamspayable returns (uint256 orderId)
setBot(address _botbool _isBotpayable 
setDelay(uint32 _delaypayable 
setGasPriceInertia(uint256 _gasPriceInertiapayable 
setMaxGasLimit(uint256 _maxGasLimitpayable 
setMaxGasPriceImpact(uint256 _maxGasPriceImpactpayable 
setNonRebasingToken(address tokenbool isNonRebasingpayable 
setOrderDisabled(address pairuint8 orderTypebool disabledpayable 
setOwner(address _ownerpayable 
setRelayer(address _relayerpayable 
setTolerance(address pairuint16 amountpayable 
setTransferGasCost(address tokenuint256 gasCostpayable 
withdraw(struct OrdersWithdrawParams withdrawParamspayable returns (uint256 orderId)
Events
BotSet(address botbool isBot
DelaySet(uint256 delay
EthRefund(address indexed tobool indexed successuint256 value
GasPriceInertiaSet(uint256 gasPriceInertia
MaxGasLimitSet(uint256 maxGasLimit
MaxGasPriceImpactSet(uint256 maxGasPriceImpact
NonRebasingTokenSet(address tokenbool isNonRebasing
OrderDisabled(address pairuint8 orderTypebool disabled
OrderExecuted(uint256 indexed idbool indexed successbytes datauint256 gasSpentuint256 ethRefunded
OwnerSet(address owner
RefundFailed(address indexed toaddress indexed tokenuint256 amountbytes data
RelayerSet(address relayer
ToleranceSet(address pairuint16 amount
TransferGasCostSet(address tokenuint256 gasCost
UnwrapFailed(address touint256 amount
BuyEnqueued(uint256 indexed orderIdstruct OrdersOrder order
DepositEnqueued(uint256 indexed orderIdstruct OrdersOrder order
GasPriceInertiaSet(uint256 gasPriceInertia
MaxGasLimitSet(uint256 maxGasLimit
MaxGasPriceImpactSet(uint256 maxGasPriceImpact
OrderDisabled(address pairuint8 orderTypebool disabled
RefundFailed(address indexed toaddress indexed tokenuint256 amountbytes data
SellEnqueued(uint256 indexed orderIdstruct OrdersOrder order
TransferGasCostSet(address tokenuint256 gasCost
WithdrawEnqueued(uint256 indexed orderIdstruct OrdersOrder order
Constructor
constructor(address _factoryaddress _wethaddress _bot
Fallback and receive
receive(
Errors

This contract contains no error objects.