TradingVaultImplementation

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x2d94d916 at 19200391
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "TradingVaultImplementation"

No transactions found for "TradingVaultImplementation"


Functions
Getter at block 21211791
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
FEE_ACCOUNT(view returns (address)
0x0000000000000000000000000000000000000000
GLOBAL_TRADE_GUARDIAN(view returns (address)
0x3ab7069fcb015bd18d0542da9deedce3f4374aee
ROLE_CLIENT(view returns (bytes32)
0x43023f179164d629e1d761fb32e2db4dbd5ce417a23159d7da9cc7b562689285
ROLE_DEFINITIVE(view returns (bytes32)
0xd9c9e1a27f80559d0ef9cb96900d3b37cb5d56df00dca6d004c3b26d13df7898
ROLE_DEFINITIVE_ADMIN(view returns (bytes32)
0x71b4013af46185a424aaa4fe1eb172247581306dd750cb51be59e3864d3dc986
STOP_GUARDIAN_ENABLED(view returns (bool)
false
TRADING_GUARDIAN_TRADING_DISABLED(view returns (bool)
false
TRADING_GUARDIAN_WITHDRAWALS_DISABLED(view returns (bool)
false
WRAPPED_NATIVE_ASSET_ADDRESS(view returns (address)
0x0000000000000000000000000000000000000000
supportsNativeAssets(pure returns (bool)
true
Read-only
_swapHandlers(addressview returns (bool)
getBalance(address assetAddressview returns (uint256)
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
isValidSignature(bytes32 _hashbytes _encodedSignatureview returns (bytes4)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
deposit(uint256[] amountsaddress[] assetAddressespayable 
disableStopGuardian(
disableSwapHandlers(address[] swapHandlers
disableTrading(
disableWithdrawals(
enableStopGuardian(
enableSwapHandlers(address[] swapHandlers
enableTrading(
enableWithdrawals(
executeOperation(address targetbytes payloadpayable 
grantRole(bytes32 roleaddress account
initialize(struct BaseNativeWrapperConfig baseNativeWrapperConfigstruct CoreAccessControlConfig coreAccessControlConfigstruct CoreSimpleSwapConfig coreSimpleSwapConfigstruct CoreFeesConfig coreFeesConfig
multicall(bytes[] datareturns (bytes[] results)
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
swap(struct SwapPayload[] payloadsaddress outputTokenuint256 amountOutMinuint256 feePctreturns (uint256)
unwrap(uint256 amount
unwrapAll(
updateFeeAccount(address _feeAccount
withdraw(uint256 amountaddress erc20Tokenreturns (bool)
withdrawAll(address[] tokensreturns (bool)
withdrawAllTo(address[] tokensaddress toreturns (bool)
withdrawTo(uint256 amountaddress erc20Tokenaddress toreturns (bool)
wrap(uint256 amount
Events
Deposit(address indexed actoraddress[] assetAddressesuint256[] amounts
FeeAccountUpdated(address actoraddress feeAccount
Initialized(uint8 version
NativeAssetWrap(address actoruint256 amountbool indexed wrappingToNative
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
StopGuardianUpdate(address indexed actorbool indexed isEnabled
SwapHandled(address[] swapTokensuint256[] swapAmountsaddress outputTokenuint256 outputAmountuint256 feeAmount
SwapHandlerUpdate(address actoraddress swapHandlerbool isEnabled
TradingDisabledUpdate(address indexed actorbool indexed isEnabled
Withdrawal(address indexed erc20Tokenuint256 amountaddress indexed recipient
WithdrawalsDisabledUpdate(address indexed actorbool indexed isEnabled
Constructor
constructor(
Fallback and receive
fallback(
receive(
Errors
AccountMissingRole(address _accountbytes32 _role
AccountNotAdmin(address arg0
AccountNotWhitelisted(address arg0
GlobalStopGuardianEnabled(
InsufficientSwapTokenBalance(
InvalidAmount(
InvalidERC20Address(
InvalidExecutedOutputAmount(
InvalidFeePercent(
InvalidInputs(
InvalidMsgValue(
InvalidOutputToken(
InvalidReportedOutputAmount(
InvalidSignature(
InvalidSwapHandler(
SlippageExceeded(uint256 _outputAmountuint256 _outputAmountMin
StopGuardianEnabled(
SwapTokenIsOutputToken(
TradingDisabled(
WithdrawalsDisabled(