TwapRelayer
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
9
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "TwapRelayer"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "TwapRelayer"
ABI
ABI objects
Getter at block 21297668
DELAY_ADDRESS() view returns (address)
0x6f3014c58d8c2699c2ac94ab99691bf4bc64ce58
EXECUTION_GAS_LIMIT() view returns (uint256)
500000
FACTORY_ADDRESS() view returns (address)
0xc480b33ee5229de3fbdfad1d2dcd3f3bad0c56c6
WETH_ADDRESS() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
__RESERVED__OLD_DELAY() view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__OLD_ETH_TRANSFER_GAS_COST() view returns (uint256)
0
__RESERVED__OLD_EXECUTION_GAS_LIMIT() view returns (uint256)
0
__RESERVED__OLD_FACTORY() view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__OLD_WETH() view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__SLOT_6_USED_IN_PREVIOUS_VERSIONS() view returns (uint256)
0
delay() pure returns (address)
0x6f3014c58d8c2699c2ac94ab99691bf4bc64ce58
ethTransferGasCost() pure returns (uint256)
14104
executionGasLimit() pure returns (uint256)
500000
factory() pure returns (address)
0xc480b33ee5229de3fbdfad1d2dcd3f3bad0c56c6
initialized() view returns (uint8)
1
owner() view returns (address)
0xab066655a991550debaec0aa1cdd4f3bd7bb5483
rebalancer() view returns (address)
0x0000000000000000000000000000000000000000
weth() pure returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
__RESERVED__OLD_TOKEN_LIMIT_MAX_MULTIPLIER(address) view returns (uint256)
__RESERVED__OLD_TOKEN_LIMIT_MIN(address) view returns (uint256)
__RESERVED__OLD_TOLERANCE(address) view returns (uint16)
__RESERVED__OLD_TWAP_INTERVAL(address) view returns (uint32)
getPoolState(address token0, address token1) view returns (uint256 price, uint256 fee, uint256 limitMin0, uint256 limitMax0, uint256 limitMin1, uint256 limitMax1)
getPriceByPairAddress(address pair, bool inverted) view returns (uint8 xDecimals, uint8 yDecimals, uint256 price)
getPriceByTokenAddresses(address tokenIn, address tokenOut) view returns (uint256 price)
getTokenLimitMaxMultiplier(address) pure returns (uint256)
getTokenLimitMin(address token) pure returns (uint256)
getTolerance(address) pure returns (uint16)
getTwapInterval(address) pure returns (uint32)
isOneInchRouterWhitelisted(address) view returns (bool)
isPairEnabled(address) view returns (bool)
quoteBuy(address tokenIn, address tokenOut, uint256 amountOut) view returns (uint256 amountIn)
quoteSell(address tokenIn, address tokenOut, uint256 amountIn) view returns (uint256 amountOut)
swapFee(address) view returns (uint256)
tokenLimitMaxMultiplier(address token) pure returns (uint256)
tokenLimitMin(address token) pure returns (uint256)
tolerance(address pair) pure returns (uint16)
twapInterval(address pair) pure returns (uint32)
State-modifying
Events approve(address token, uint256 amount, address to)
buy(struct ITwapRelayerBuyParams buyParams) payable returns (uint256 orderId)
initialize()
rebalanceSellWithDelay(address tokenIn, address tokenOut, uint256 amountIn)
rebalanceSellWithOneInch(address tokenIn, uint256 amountIn, address oneInchRouter, uint256 _gas, bytes data)
sell(struct ITwapRelayerSellParams sellParams) payable returns (uint256 orderId)
setOwner(address _owner)
setPairEnabled(address pair, bool enabled)
setRebalancer(address _rebalancer)
setSwapFee(address pair, uint256 fee)
unwrapWeth(uint256 amount)
whitelistOneInchRouter(address oneInchRouter, bool whitelisted)
withdraw(address token, uint256 amount, address to)
wrapEth(uint256 amount)
Approve(address token, address to, uint256 amount)
Buy(address indexed sender, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountInMax, uint256 amountOut, bool wrapUnwrap, uint256 fee, address indexed to, address orderContract, uint256 indexed orderId)
DelaySet(address delay)
EthTransferGasCostSet(uint256 gasCost)
ExecutionGasLimitSet(uint256 limit)
Initialized(address _factory, address _delay, address _weth)
OneInchRouterWhitelisted(address indexed oneInchRouter, bool whitelisted)
OwnerSet(address owner)
PairEnabledSet(address pair, bool enabled)
RebalanceSellWithDelay(address indexed sender, address tokenIn, address tokenOut, uint256 amountIn, uint256 indexed delayOrderId)
RebalanceSellWithOneInch(address indexed oneInchRouter, uint256 gas, bytes data)
RebalancerSet(address rebalancer)
Sell(address indexed sender, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutMin, bool wrapUnwrap, uint256 fee, address indexed to, address orderContract, uint256 indexed orderId)
SwapFeeSet(address pair, uint256 fee)
TokenLimitMaxMultiplierSet(address token, uint256 limit)
TokenLimitMinSet(address token, uint256 limit)
ToleranceSet(address pair, uint16 tolerance)
TwapIntervalSet(address pair, uint32 interval)
UnwrapWeth(uint256 amount)
Withdraw(address token, address to, uint256 amount)
WrapEth(uint256 amount)
constructor()
receive()
This contract contains no error objects.