TradeFactory
Verified contract
Active on
Ethereum with 0 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 1 additional slot
-
variable spans 1 additional slot
Balances ($0.00)
No balances found for "TradeFactory"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "TradeFactory"
ABI
ABI objects
Getter at block 21396776
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
ETH_ADDRESS() view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
MASTER_ADMIN() view returns (bytes32)
0x0b43cb2c88b4e8fc5d4ac1352ba889b22584df0c58c4b5b589731a1c9f6f29d3
STRATEGY() view returns (bytes32)
0x49e347583a7b9e7f325e8963ee1f94127eba81e401796874b5a22f7c8f9d45f7
STRATEGY_MANAGER() view returns (bytes32)
0x1893e1a169e79f2fe8aa327b1bceb2fede7a1b76a54824f95ea0e737720954ae
SWAPPER_ADDER() view returns (bytes32)
0x038c8d5a0695aa8e4bf7e2d14cb85443db816cf8bdf8985d9f1a65519aeb6cd9
SWAPPER_SETTER() view returns (bytes32)
0xe39dc63caee7a15eb0ffb77a826d10c23d40b5f7182b000737ab5c078838b911
enabledTrades() view returns (struct ITradeFactoryPositionsHandlerEnabledTrade[] _enabledTrades)
[(0xedb4b647524fc2b9985019190551b197c6ab6c5c, 0xd533a949740bb3306d119cc777fa900ba034cd52, 0x8282bd15dca2ea2bdf24163e8f2781b30c43a2ef), (0xedb4b647524fc2b9985019190551b197c6ab6c5c, 0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b, 0x8282bd15dca2ea2bdf24163e8f2781b30c43a2ef)]
mechanicsRegistry() view returns (address _mechanicRegistry)
0xe8d5a85758fe98f7dce251cad552691d49b499bb
swappers() view returns (address[] _swappersList)
[0xB2F65F254Ab636C96fb785cc9B4485cbeD39CDAA, 0xA7A778583b2bd529Eae21A9e2965cc5655e3f70B]
Read-only
getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
isMechanic(address _mechanic) view returns (bool _isMechanic)
isSwapper(address _swapper) view returns (bool _isSwapper)
strategySyncSwapper(address) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
swapperStrategies(address _swapper) view returns (address[] _strategies)
State-modifying
Events addSwappers(address[] __swappers)
disable(address _tokenIn, address _tokenOut)
disableByAdmin(address _strategy, address _tokenIn, address _tokenOut)
enable(address _tokenIn, address _tokenOut)
execute(struct ITradeFactoryExecutorAsyncTradeExecutionDetails _tradeExecutionDetails, address _swapper, bytes _data) returns (uint256 _receivedAmount)
execute(struct ITradeFactoryExecutorAsyncTradeExecutionDetails[] _tradesExecutionDetails, address _swapper, bytes _data)
execute(struct ITradeFactoryExecutorSyncTradeExecutionDetails _tradeExecutionDetails, bytes _data) returns (uint256 _receivedAmount)
grantRole(bytes32 role, address account)
removeSwappers(address[] __swappers)
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
sendDust(address _to, address _token, uint256 _amount)
setMechanicsRegistry(address __mechanicsRegistry)
setStrategySyncSwapper(address _strategy, address _swapper)
AsyncTradeExecuted(uint256 _receivedAmount, address _swapper)
DustSent(address _to, address token, uint256 amount)
MultipleAsyncTradeExecuted(uint256[] _receivedAmount, address _swapper)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
SyncTradeExecuted(address indexed _strategy, uint256 _receivedAmount, address indexed _swapper)
constructor(address _masterAdmin, address _swapperAdder, address _swapperSetter, address _strategyModifier, address _mechanicsRegistry)
This contract contains no fallback and receive objects.
AllowanceShouldBeZero()
InvalidAmountOut()
InvalidSwapper()
InvalidTrade()
NotAsyncSwapper()
NotSyncSwapper()
SwapperInUse()
ZeroAddress()
ZeroAmount()
ZeroSlippage()