TradeFactory

Verified contract

Active on Ethereum with 0 txns
Deployed by via 0x9aed2602 at 14037768
Slot
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

No balances found for "TradeFactory"

No transactions found for "TradeFactory"


Functions
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 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isMechanic(address _mechanicview returns (bool _isMechanic)
isSwapper(address _swapperview returns (bool _isSwapper)
strategySyncSwapper(addressview returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
swapperStrategies(address _swapperview returns (address[] _strategies)
State-modifying
addSwappers(address[] __swappers
disable(address _tokenInaddress _tokenOut
disableByAdmin(address _strategyaddress _tokenInaddress _tokenOut
enable(address _tokenInaddress _tokenOut
execute(struct ITradeFactoryExecutorAsyncTradeExecutionDetails _tradeExecutionDetailsaddress _swapperbytes _datareturns (uint256 _receivedAmount)
execute(struct ITradeFactoryExecutorAsyncTradeExecutionDetails[] _tradesExecutionDetailsaddress _swapperbytes _data
execute(struct ITradeFactoryExecutorSyncTradeExecutionDetails _tradeExecutionDetailsbytes _datareturns (uint256 _receivedAmount)
grantRole(bytes32 roleaddress account
removeSwappers(address[] __swappers
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
sendDust(address _toaddress _tokenuint256 _amount
setMechanicsRegistry(address __mechanicsRegistry
setStrategySyncSwapper(address _strategyaddress _swapper
Events
AsyncTradeExecuted(uint256 _receivedAmountaddress _swapper
DustSent(address _toaddress tokenuint256 amount
MultipleAsyncTradeExecuted(uint256[] _receivedAmountaddress _swapper
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
SyncTradeExecuted(address indexed _strategyuint256 _receivedAmountaddress indexed _swapper
Constructor
constructor(address _masterAdminaddress _swapperAdderaddress _swapperSetteraddress _strategyModifieraddress _mechanicsRegistry
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AllowanceShouldBeZero(
InvalidAmountOut(
InvalidSwapper(
InvalidTrade(
NotAsyncSwapper(
NotSyncSwapper(
SwapperInUse(
ZeroAddress(
ZeroAmount(
ZeroSlippage(