0 txs
3 calls
constructor
constructor()
functions
CALLER_ROLE
viewfunction CALLER_ROLE() view returns (bytes32)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
NATIVE_TOKEN
viewfunction NATIVE_TOKEN() view returns (address)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
approveAddressAndExecute
payablefunction approveAddressAndExecute(address[] tokens, address target, bytes data, address toApprove) payable
approveTokenExecute
payablefunction approveTokenExecute(address token, address target, bytes data) payable
approveTokenExecuteAndVerify
payablefunction approveTokenExecuteAndVerify(address token, address target, bytes data, address tokenOut, uint256 minAmountOut, address expectedTokenReceiver) payable returns (uint256)
approveTokensAndExecute
payablefunction approveTokensAndExecute(address[] tokens, address target, bytes data) payable
call
nonpayablefunction call(address receiver, address swapTarget, address callTarget, address stablecoin, address tokenOut, uint256 minAmountOut, bytes swapData, bytes callData) returns (address effectiveTokenOut, uint256 effectiveAmountOut, bool success)
execute
payablefunction execute(address target, bytes data) payable
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address _admin, address[] callers)
multiSend
payablefunction multiSend(bytes transactions) payable
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
transferTokenAndExecute
payablefunction transferTokenAndExecute(address token, address target, bytes data) payable
transferTokensAndExecute
payablefunction transferTokensAndExecute(address[] tokens, address target, bytes data) payable
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
Initialized
event Initialized(uint64 version)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Upgraded
event Upgraded(address indexed implementation)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
ApprovalTargetIsNotContract
error ApprovalTargetIsNotContract()
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
ExternalCallFailed
error ExternalCallFailed(address target)
FailedInnerCall
error FailedInnerCall()
InvalidAmountOut
error InvalidAmountOut(uint256 amountOut, uint256 minAmountOut)
InvalidCaller
error InvalidCaller()
InvalidCallerMulticall
error InvalidCallerMulticall()
InvalidInitialization
error InvalidInitialization()
IsNotAdmin
error IsNotAdmin()
NonAddress0
error NonAddress0()
NotInitializing
error NotInitializing()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
TargetIsNotContract
error TargetIsNotContract()
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a080604052346100cc57306080527ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009081549060ff8260401c166100bd57506001600160401b036002600160401b031982821601610078575b604051611f2d90816100d182396080518181816106a001526108010152f35b6001600160401b031990911681179091556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a15f8080610059565b63f92ee8a960e01b8152600490fd5b5f80fdfe6080604052600436101561001a575b3615610018575f80fd5b005b5f3560e01c806301ffc9a7146101795780631cff79cd14610174578063248a9ca31461016f5780632f0eb84b1461016a5780632f2ff15d1461016557806331f7d9641461016057806336568abe1461015b5780634f1ef2861461015657806352d1902d146101515780636b8579561461014c5780636f55f50c146101475780636f7192d214610142578063774237fc1461013d57806384dafd4b146101385780638d80ff0a1461013357806391d148541461012e578063946d9204146101295780639f7b1daf14610124578063a217fddf1461011f578063ad3cb1cc1461011a578063d547741f146101155763f6499efd0361000e57611004565b610fbb565b610f41565b610f27565b610edf565b610d99565b610d3f565b610c96565b610b85565b610afe565b610ab5565b610a0d565b6108b3565b6107ef565b61065f565b6105b7565b610589565b610540565b610498565b610394565b61026e565b346101cf5760203660031901126101cf5760043563ffffffff60e01b81168091036101cf57602090637965db0b60e01b81149081156101be575b506040519015158152f35b6301ffc9a760e01b1490505f6101b3565b5f80fd5b600435906001600160a01b03821682036101cf57565b602435906001600160a01b03821682036101cf57565b606435906001600160a01b03821682036101cf57565b60a435906001600160a01b03821682036101cf57565b608435906001600160a01b03821682036101cf57565b9181601f840112156101cf578235916001600160401b0383116101cf57602083818601950101116101cf57565b6040806003193601126101cf576102836101d3565b6024356001600160401b0381116101cf576102a2903690600401610241565b7f843c3a00fa95510a35f425371231fd3fe4642e719cb4595160763d6d02594b505f9081525f80516020611eb883398151915260209081528582203383529052604090205490919060ff16158061038a575b610379576001600160a01b0383161561036857823b15610357575f9182916103208651809381936110c4565b039034855af161032e6110d1565b501561033657005b905163e225a37560e01b81526001600160a01b039091166004820152602490fd5b8351635a836a5f60e01b8152600490fd5b83516302b6392d60e41b8152600490fd5b83516348f5c3ed60e01b8152600490fd5b50303314156102f4565b346101cf5760203660031901126101cf576004355f525f80516020611eb88339815191526020526020600160405f200154604051908152f35b634e487b7160e01b5f52604160045260245ffd5b604081019081106001600160401b038211176103fc57604052565b6103cd565b90601f801991011681019081106001600160401b038211176103fc57604052565b81601f820112156101cf578035916020916001600160401b0384116103fc578360051b906040519461045685840187610401565b855283808601928201019283116101cf578301905b828210610479575050505090565b81356001600160a01b03811681036101cf57815290830190830161046b565b60803660031901126101cf576001600160401b036004358181116101cf576104c4903690600401610422565b906104cd6101e9565b906044359081116101cf576104e6903690600401610241565b906104ef6101ff565b335f9081525f80516020611e78833981519152602052604090205490939060ff161580610536575b61052457610018946116ca565b6040516348f5c3ed60e01b8152600490fd5b5030331415610517565b346101cf5760403660031901126101cf5761001860043561055f6101e9565b90805f525f80516020611eb8833981519152602052610584600160405f2001546117f0565b6119b2565b346101cf575f3660031901126101cf57602060405173eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8152f35b346101cf5760403660031901126101cf576105d06101e9565b336001600160a01b038216036105ec57610018906004356119e8565b60405163334bd91960e11b8152600490fd5b6001600160401b0381116103fc57601f01601f191660200190565b81601f820112156101cf57803590610630826105fe565b9261063e6040519485610401565b828452602083830101116101cf57815f926020809301838601378301015290565b6040806003193601126101cf576106746101d3565b90602435906001600160401b0382116101cf5761069660049236908401610619565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081163081149081156107d4575b506107c5575f8080525f80516020611eb883398151915260209081528482203383529052604090205460ff16156107b65790602084928451938480926352d1902d60e01b825289165afa5f9281610785575b5061074a57505051634c9c8ce360e01b81526001600160a01b0390921690820190815281906020010390fd5b8484845f80516020611e98833981519152850361076b576100188484611ca2565b51632a87526960e21b815290810184815281906020010390fd5b6107a891935060203d6020116107af575b6107a08183610401565b810190611128565b915f61071e565b503d610796565b50505163088f2b9960e21b8152fd5b50505163703e46dd60e11b8152fd5b9050815f80516020611e98833981519152541614155f6106cc565b346101cf575f3660031901126101cf577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036108465760206040515f80516020611e988339815191528152f35b60405163703e46dd60e11b8152600490fd5b60606003198201126101cf576001600160401b03916004358381116101cf578261088491600401610422565b926024356001600160a01b03811681036101cf57926044359182116101cf576108af91600401610241565b9091565b6108bc36610858565b335f9081525f80516020611e7883398151915260209081526040918290205491959293929160ff161580610a03575b6109f2576001600160a01b038516156109e157843b156109d0578151915f5b8381106109255787875f8089896103208651809381936110c4565b6109516109456109456109388486611100565b516001600160a01b031690565b6001600160a01b031690565b88516370a0823160e01b815230600482015291908490839060249082905afa80156109cb576001925f916109ae575b508061098e575b500161090a565b6109a890896109a36109456109388689611100565b611a7a565b5f610987565b6109c59150853d87116107af576107a08183610401565b5f610980565b611137565b8551635a836a5f60e01b8152600490fd5b85516302b6392d60e41b8152600490fd5b85516348f5c3ed60e01b8152600490fd5b50303314156108eb565b60c03660031901126101cf57610a216101d3565b610a296101e9565b6044356001600160401b0381116101cf57610a48903690600401610241565b9092610a526101ff565b610a5a610215565b335f9081525f80516020611e78833981519152602052604090205490939060ff161580610aab575b61052457610aa795610a979560843594611163565b6040519081529081906020820190565b0390f35b5030331415610a82565b610abe36610858565b335f9081525f80516020611e78833981519152602052604090205490919060ff161580610af4575b6105245782610018946116ca565b5030331415610ae6565b346101cf575f3660031901126101cf5760206040517f843c3a00fa95510a35f425371231fd3fe4642e719cb4595160763d6d02594b508152f35b60606003198201126101cf576001600160a01b039160043583811681036101cf579260243590811681036101cf5791604435906001600160401b0382116101cf576108af91600401610241565b610b8e36610b38565b335f9081525f80516020611e788339815191526020526040908190205490949192919060ff161580610c8c575b610c7b576001600160a01b0390848216156109e157843b156109d0571673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8103610c07575b505f9182916103208651809381936110c4565b84516370a0823160e01b815230600482015290929091602083602481875afa9384156109cb575f9485948591610c5c575b508681610c4b575b505050915091610bf4565b610c5492611a7a565b5f8086610c40565b610c75915060203d6020116107af576107a08183610401565b5f610c38565b84516348f5c3ed60e01b8152600490fd5b5030331415610bbb565b60203660031901126101cf576004356001600160401b0381116101cf57610cc1903690600401610619565b333003610d2d5780519060205b828110610cd757005b80820190815160f81c90600183015160601c9160158401519360358101518094605596875f9594855f14610d1e5750505050506001146101cf575b156101cf570101610cce565b5f965086955001915af1610d12565b6040516330fa4b1560e11b8152600490fd5b346101cf5760403660031901126101cf57602060ff610d8d610d5f6101e9565b6004355f525f80516020611eb8833981519152845260405f209060018060a01b03165f5260205260405f2090565b54166040519015158152f35b346101cf5760403660031901126101cf57610db26101d3565b6001600160401b03906024358281116101cf57610dd3903690600401610422565b5f80516020611ed8833981519152549260ff8460401c1615931680159081610ed7575b6001149081610ecd575b159081610ec4575b50610eb2575f80516020611ed8833981519152805467ffffffffffffffff19166001179055610e3b9183610e89576112a0565b610e4157005b5f80516020611ed8833981519152805460ff60401b19169055604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a1005b5f80516020611ed8833981519152805460ff60401b1916680100000000000000001790556112a0565b60405163f92ee8a960e01b8152600490fd5b9050155f610e08565b303b159150610e00565b849150610df6565b610ee836610b38565b335f9081525f80516020611e78833981519152602052604090205490929060ff161580610f1d575b6105245761001893611acb565b5030331415610f10565b346101cf575f3660031901126101cf5760206040515f8152f35b346101cf575f3660031901126101cf576040805190610f5f826103e1565b60058252602090640352e302e360dc1b602084015260405191602083528351918260208501525f5b838110610fa85784604081865f838284010152601f80199101168101030190f35b8581018301518582018301528201610f87565b346101cf5760403660031901126101cf57610018600435610fda6101e9565b90805f525f80516020611eb8833981519152602052610fff600160405f2001546117f0565b6119e8565b346101cf576101003660031901126101cf5761101e6101d3565b6110266101e9565b906044356001600160a01b03811681036101cf576110426101ff565b9261104b61022b565b6001600160401b03939060c4358581116101cf5761106d903690600401610241565b92909160e4359687116101cf57610aa79761108f61109b983690600401610241565b97909660a4359461130e565b604080516001600160a01b03909416845260208401929092521515908201529081906060820190565b908092918237015f815290565b3d156110fb573d906110e2826105fe565b916110f06040519384610401565b82523d5f602084013e565b606090565b80518210156111145760209160051b010190565b634e487b7160e01b5f52603260045260245ffd5b908160209103126101cf575190565b6040513d5f823e3d90fd5b9190820391821161114f57565b634e487b7160e01b5f52601160045260245ffd5b9496959294936001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee81036111d657509361119f916111a595843195611acb565b31611142565b90828210156111d157506040516378e9a2e760e01b815260048101919091526024810191909152604490fd5b915090565b6040516370a0823160e01b8082526001600160a01b03861660048301526020979395939091908882602481875afa9586156109cb57611249978a97611223945f91611283575b5099611acb565b6040519081526001600160a01b0390921660048301529092839190829081906024820190565b03915afa9081156109cb576111a5935f92611266575b5050611142565b61127c9250803d106107af576107a08183610401565b5f8061125f565b61129a9150893d8b116107af576107a08183610401565b5f61121c565b6001600160a01b0390808216156112fc576112ca906112bd611dcd565b6112c5611dcd565b61183e565b508151915f5b8381106112dd5750505050565b806112f5846112ee60019486611100565b51166118ef565b50016112d0565b6040516302b6392d60e41b8152600490fd5b335f9081525f80516020611e788339815191526020526040902054909998979695949392919060ff161580611352575b6105245761134b996113ec565b9192909190565b503033141561133e565b908060209392818452848401375f828201840152601f01601f1916010190565b95919360a0959897936113ae91600180891b038097818096168b521660208a015260c060408a015260c089019161135c565b97166060860152608085015216910152565b6001600160a01b039182168152911660208201526060604082018190526113e99391019161135c565b90565b6040516370a0823160e01b8152306004820152979a919995989197909693959194936020826024816001600160a01b038b165afa9182156109cb575f926116a9575b50819a879c60019b60018060a01b0383166115ed575b5050506001600160a01b03841691506115989050575b5050506001600160a01b038716905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed198101611531575b6001600160a01b038216036114b6575b504790816114a2575050565b5f80809381935af1506114b36110d1565b50565b6040516370a0823160e01b81523060048201526020816024816001600160a01b0386165afa9081156109cb575f91611512575b5082816114f8575b5050611496565b61150a926001600160a01b0316611a7a565b5f80826114f1565b61152b915060203d6020116107af576107a08183610401565b5f6114e9565b6040516370a0823160e01b8152306004820152602081602481855afa9081156109cb575f91611579575b5080611568575b50611486565b611573908483611a7a565b5f611562565b611592915060203d6020116107af576107a08183610401565b5f61155b565b5f949750849392916115c56115d39260405195869360208501966384dafd4b60e01b8852602486016113c0565b03601f198101845283610401565b47915191305af16115e26110d1565b50925f80808061145a565b939d50939b509399505f93849388936116449291611636916001600160a01b038f16156116a1578930925b604051978896602088019a631bd57d4360e21b8c526024890161137c565b03601f198101835282610401565b519082305af1956116536110d1565b98871561167a575061166f829960208082518301019101611128565b975f80808080611444565b985094965091945061169b935086929150506001600160a01b038416611a7a565b91905f90565b898d92611618565b6116c391925060203d6020116107af576107a08183610401565b905f61142e565b9093906001600160a01b03851680156112fc57853b156117de57823b156117cc5730036117405750505f918291611706604051809381936110c4565b039034855af16117146110d1565b501561171d5750565b60405163e225a37560e01b81526001600160a01b03919091166004820152602490fd5b919390928251945f5b8681106117aa57505f918291611764604051809381936110c4565b039034855af16117726110d1565b501561171d57505f5b8381106117885750505050565b806117a48461179f61094561093860019688611100565b611c6c565b0161177b565b806117c6876117c16109456109386001968b611100565b611b62565b01611749565b604051633c8c88bf60e01b8152600490fd5b604051635a836a5f60e01b8152600490fd5b5f8181525f80516020611eb88339815191526020908152604080832033845290915290205460ff16156118205750565b6044906040519063e2517d3f60e01b82523360048301526024820152fd5b6001600160a01b0381165f9081527fb7db2dd08fcb62d0c9e08c51941cae53c267786a0b75803fb7960902fc8ef97d60205260409020545f80516020611eb88339815191529060ff166118e9575f808052602091825260408082206001600160a01b038516835290925220805460ff1916600117905533906001600160a01b03165f7f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a4600190565b50505f90565b6001600160a01b0381165f9081525f80516020611e78833981519152602052604090207f843c3a00fa95510a35f425371231fd3fe4642e719cb4595160763d6d02594b50905f80516020611eb88339815191529060ff905b54166119ab575f828152602091825260408082206001600160a01b038616835290925220805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d5f80a4600190565b5050505f90565b5f8181525f80516020611eb8833981519152602081815260408084206001600160a01b038716855290915290912060ff90611947565b5f8181525f80516020611eb8833981519152602081815260408084206001600160a01b03871685529091529091205460ff16156119ab575f828152602091825260408082206001600160a01b038616835290925220805460ff1916905533916001600160a01b0316907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b5f80a4600190565b60405163a9059cbb60e01b60208201526001600160a01b03909216602483015260448083019390935291815260808101916001600160401b038311828410176103fc57611ac992604052611d5c565b565b909291906001600160a01b039081851680156112fc57853b156117de573003611b035750505f918291611706604051809381936110c4565b16915f91829190611b148686611b62565b611b23604051809381936110c4565b039034865af1611b316110d1565b5015611b415790611ac991611c6c565b60405163e225a37560e01b81526001600160a01b0383166004820152602490fd5b60405163095ea7b360e01b602082018181526001600160a01b03851660248401525f196044840152909391929183606481015b0391611ba9601f1993848101875286610401565b84516001600160a01b038516915f91829182855af190611bc76110d1565b82611c3a575b5081611c2f575b5015611be2575b5050505050565b60405160208101959095526001600160a01b031660248501525f604485015260649081018452611c2593611c2091611c1a9082610401565b82611d5c565b611d5c565b5f80808080611bdb565b90503b15155f611bd4565b80519192508115918215611c52575b5050905f611bcd565b611c659250602080918301019101611d44565b5f80611c49565b60405163095ea7b360e01b602082018181526001600160a01b03851660248401525f604484015290939192918360648101611b95565b90813b15611d23575f80516020611e9883398151915280546001600160a01b0319166001600160a01b0384169081179091557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2805115611d08576114b391611dfb565b505034611d1157565b60405163b398979f60e01b8152600490fd5b604051634c9c8ce360e01b81526001600160a01b0383166004820152602490fd5b908160209103126101cf575180151581036101cf5790565b5f80611d849260018060a01b03169360208151910182865af1611d7d6110d1565b9083611e14565b8051908115159182611db2575b5050611d9a5750565b60249060405190635274afe760e01b82526004820152fd5b611dc59250602080918301019101611d44565b155f80611d91565b60ff5f80516020611ed88339815191525460401c1615611de957565b604051631afcd79f60e31b8152600490fd5b5f806113e993602081519101845af4611e126110d1565b915b90611e3b5750805115611e2957805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580611e6e575b611e4c575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15611e4456fe5df4597df7ee8e1f8202a2300654cfda046bf7dc20c3028ae2d965b2b3e4d604360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800f0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00a2646970667358221220f6798dfbf9a7132be89f8da6c22e36c2eb26a1d69a4bea9307a1a057a59fa52e64736f6c63430008180033