7 txs
27 calls
constructor
constructor(address _weth, address initialOwner, address initialAdmin)
functions
admins
viewfunction admins() view returns (address[])
balanceOf
viewfunction balanceOf(address account, address currency) view returns (uint256)
balances
viewfunction balances(address account) view returns (address[] currencies, uint256[] amounts)
currenciesHeld
viewfunction currenciesHeld(address account) view returns (address[])
owner
viewfunction owner() view returns (address)
weth
viewfunction weth() view returns (address)
addAdmin
nonpayablefunction addAdmin(address admin)
deposit
nonpayablefunction deposit(address account, address currency, uint256 amount)
removeAdmin
nonpayablefunction removeAdmin(address admin)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
virtualDeposit
nonpayablefunction virtualDeposit(address account, address currency, uint256 amount)
virtualDepositMultiple
nonpayablefunction virtualDepositMultiple(address[] accounts, address[] currencies, uint256[] amounts)
withdraw
nonpayablefunction withdraw(address account, address currency)
withdrawMany
nonpayablefunction withdrawMany(address account, address[] currencies)
events
Deposit
event Deposit(address indexed account, address indexed currency, address indexed sender, uint256 amount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Withdrawal
event Withdrawal(address indexed account, address indexed currency, uint256 amount)
errors
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ReentrancyGuardReentrantCall
error ReentrancyGuardReentrantCall()
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
creation bytecode
0x60a03461016857601f6115d338819003918201601f19168301916001600160401b0383118484101761016d578084926060946040528339810103126101685761004781610183565b90610060604061005960208401610183565b9201610183565b6001600160a01b0390911691821561015257600080546001600160a01b031981168517825560405194916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600180556001600160a01b03811615610110576080526100e391506001600160a01b0316610197565b506040516113a8908161022b8239608051818181601d015281816101e90152818161067101526108490152f35b62461bcd60e51b835260206004840152601b60248401527f5745544820616464726573732063616e6e6f74206265207a65726f00000000006044840152606483fd5b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361016857565b80600052600560205260406000205415600014610224576004546801000000000000000081101561016d57600181018060045581101561020e577f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0181905560045460009182526005602052604090912055600190565b634e487b7160e01b600052603260045260246000fd5b5060009056fe608080604052600436101561008b575b50361561001b57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316330361004d57005b60405162461bcd60e51b815260206004820152601660248201527509edcd8f240ae8aa89040c6c2dc40e6cadcc8408aa8960531b6044820152606490fd5b60003560e01c90816313947bfe14610b72575080631785f53c14610af257806327e235e31461099b57806334a5de47146107f05780633f56e739146106a05780633fc8cef31461065b57806370480275146105db578063715018a6146105825780638340f549146104de5780638da5cb5b146104b5578063a5de361914610426578063bb1d21e3146103e2578063f2fde38b14610359578063f7888aec146103085763f940e3851461013d573861000f565b346102a25760403660031901126102a257610156610be4565b61015e610bfa565b610166610f0d565b6001600160a01b0382169061017c821515610d6e565b6001600160a01b031691610191831515610dd0565b8160005260026020526040600020836000526020526040600020549081156102ca57826000526002602052604060002084600052602052600060408120558260005260036020526101e68460406000206111ea565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316918483036102a757823b156102a25760008093602460405180968193632e1a7d4d60e01b83528660048401525af1918215610296576000808080856102799560008051602061135383398151915299602099610286575b505af1610273610e0f565b50610e4f565b604051908152a360018055005b8361029091610cf4565b38610268565b6040513d6000823e3d90fd5b600080fd5b60008051602061135383398151915292506102c58160209387610f2f565b610279565b60405162461bcd60e51b81526020600482015260166024820152754e6f2062616c616e636520746f20776974686472617760501b6044820152606490fd5b346102a25760403660031901126102a257610321610be4565b610329610bfa565b6001600160a01b039182166000908152600260209081526040808320949093168252928352819020549051908152f35b346102a25760203660031901126102a257610372610be4565b61037a610ee4565b6001600160a01b031680156103cc57600080546001600160a01b03198116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3005b631e4fbdf760e01b600052600060045260246000fd5b346102a2576104206103f336610c7e565b9161041361040e336000526005602052604060002054151590565b610e91565b61041b610f0d565b610ecc565b60018055005b346102a25760003660031901126102a25760405180602060045491828152019060046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9060005b81811061049f5761049b8561048781870382610cf4565b604051918291602083526020830190610c10565b0390f35b8254845260209093019260019283019201610470565b346102a25760003660031901126102a2576000546040516001600160a01b039091168152602090f35b346102a2576000602061050860646104f536610c7e565b818193610503969396610f0d565b610fc0565b6040516323b872dd60e01b815233600482015230602482015260448101919091529384928391906001600160a01b03165af180156102965761054a5760018055005b6020813d60201161057a575b8161056360209383610cf4565b810103126102a25751801515036102a25780610420565b3d9150610556565b346102a25760003660031901126102a25761059b610ee4565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346102a25760203660031901126102a2576106186105f7610be4565b6105ff610ee4565b6001600160a01b0316610613811515610cb8565b6112a7565b1561061f57005b60405162461bcd60e51b815260206004820152601460248201527341646d696e20616c72656164792065786973747360601b6044820152606490fd5b346102a25760003660031901126102a2576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b346102a25760603660031901126102a25760043567ffffffffffffffff81116102a2576106d1903690600401610c4d565b9060243567ffffffffffffffff81116102a2576106f2903690600401610c4d565b919060443567ffffffffffffffff81116102a257610714903690600401610c4d565b9461072f61040e336000526005602052604060002054151590565b610737610f0d565b848114806107e7575b156107aa5760005b8181106107555760018055005b806107636001928986610dac565b35156107a55761079f61077f61077a83868a610dac565b610dbc565b61078d61077a848b8a610dac565b610798848c89610dac565b3591610fc0565b01610748565b61079f565b60405162461bcd60e51b8152602060048201526015602482015274082e4e4c2f240d8cadccee8d040dad2e6dac2e8c6d605b1b6044820152606490fd5b50858514610740565b346102a25760403660031901126102a257610809610be4565b60243567ffffffffffffffff81116102a257610829903690600401610c4d565b90610832610f0d565b6001600160a01b038316610847811515610d6e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169160005b8481106108825760018055005b6001600160a01b0361089861077a838886610dac565b16906108a5821515610dd0565b83600052600260205260408060002060009084825260205220549182156109915784600052600260205260006040808220829084825260205220558460005260036020526108f78160406000206111ea565b508481870361096d5750853b156102a257604051632e1a7d4d60e01b81526004810184905292600084602481838b5af19384156102965760208261095f600080808f8d9882916000805160206113538339815191529960019e61028657505af1610273610e0f565b604051908152a35b01610875565b60008051602061135383398151915260208561098c6001978d87610f2f565b61095f565b5060019150610967565b346102a25760203660031901126102a2576001600160a01b036109bc610be4565b168060005260036020526040600020906040518083602082955493848152019060005260206000209260005b818110610ad95750506109fd92500383610cf4565b8151610a21610a0b82610d2c565b91610a196040519384610cf4565b808352610d2c565b602082019290601f190136843760005b8451811015610a8157600190826000526002602052604080600020838060a01b03610a5c848a610d44565b511690600091858060a01b031682526020522054610a7a8286610d44565b5201610a31565b505090610a9f92916020604051948594604086526040860190610c10565b9184830382860152519182815201919060005b818110610ac0575050500390f35b8251845285945060209384019390920191600101610ab2565b84548352600194850194879450602090930192016109e8565b346102a25760203660031901126102a257610b2f610b0e610be4565b610b16610ee4565b6001600160a01b0316610b2a811515610cb8565b611102565b15610b3657005b60405162461bcd60e51b815260206004820152601460248201527310591b5a5b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606490fd5b346102a25760203660031901126102a2576001600160a01b03610b93610be4565b16600052600360205260406000208054808352602083019160005260206000209060005b818110610bce5761049b8561048781870382610cf4565b8254845260209093019260019283019201610bb7565b600435906001600160a01b03821682036102a257565b602435906001600160a01b03821682036102a257565b906020808351928381520192019060005b818110610c2e5750505090565b82516001600160a01b0316845260209384019390920191600101610c21565b9181601f840112156102a25782359167ffffffffffffffff83116102a2576020808501948460051b0101116102a257565b60609060031901126102a2576004356001600160a01b03811681036102a257906024356001600160a01b03811681036102a2579060443590565b15610cbf57565b60405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21030b236b4b760991b6044820152606490fd5b90601f8019910116810190811067ffffffffffffffff821117610d1657604052565b634e487b7160e01b600052604160045260246000fd5b67ffffffffffffffff8111610d165760051b60200190565b8051821015610d585760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b15610d7557565b60405162461bcd60e51b815260206004820152600f60248201526e125b9d985b1a59081858d8dbdd5b9d608a1b6044820152606490fd5b9190811015610d585760051b0190565b356001600160a01b03811681036102a25790565b15610dd757565b60405162461bcd60e51b815260206004820152601060248201526f496e76616c69642063757272656e637960801b6044820152606490fd5b3d15610e4a573d9067ffffffffffffffff8211610d165760405191610e3e601f8201601f191660200184610cf4565b82523d6000602084013e565b606090565b15610e5657565b60405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b6044820152606490fd5b15610e9857565b60405162461bcd60e51b815260206004820152600c60248201526b2737ba1030b71030b236b4b760a11b6044820152606490fd5b91908115610edf57610edd92610fc0565b565b505050565b6000546001600160a01b03163303610ef857565b63118cdaa760e01b6000523360045260246000fd5b600260015414610f1e576002600155565b633ee5aeb560e01b60005260046000fd5b60405163a9059cbb60e01b60208281019182526001600160a01b0390941660248301526044808301959095529381529092600091610f6e606482610cf4565b519082855af115610296576000513d610fb757506001600160a01b0381163b155b610f965750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b60011415610f8f565b6001600160a01b031690610fd5821515610d6e565b6001600160a01b031690610fea821515610dd0565b82156110a6578060005260026020526040600020826000526020526040600020805490848201809211611090575580600052600360205261103f82604060002060019160005201602052604060002054151590565b15611073575b6040519283527f7cfff908a4b583f36430b25d75964c458d8ede8a99bd61be750e97ee1b2f3a9660203394a4565b80600052600360205261108a826040600020611302565b50611045565b634e487b7160e01b600052601160045260246000fd5b606460405162461bcd60e51b815260206004820152602060248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f6044820152fd5b8054821015610d585760005260206000200190600090565b60008181526005602052604090205480156111e35760001981018181116110905760045460001981019190821161109057818103611192575b505050600454801561117c57600019016111568160046110ea565b8154906000199060031b1b19169055600455600052600560205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b6111cb6111a36111b49360046110ea565b90549060031b1c92839260046110ea565b819391549060031b91821b91600019901b19161790565b9055600052600560205260406000205538808061113b565b5050600090565b906001820191816000528260205260406000205480151560001461129e57600019810181811161109057825460001981019190821161109057818103611267575b5050508054801561117c57600019019061124582826110ea565b8154906000199060031b1b191690555560005260205260006040812055600190565b6112876112776111b493866110ea565b90549060031b1c928392866110ea565b90556000528360205260406000205538808061122b565b50505050600090565b806000526005602052604060002054156000146112fc57600454600160401b811015610d16576112e36111b482600185940160045560046110ea565b9055600454906000526005602052604060002055600190565b50600090565b60008281526001820160205260409020546111e357805490600160401b821015610d16578261133b6111b48460018096018555846110ea565b90558054926000520160205260406000205560019056fe2717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b6398a264697066735822122089969ca657e217f93553bbf02f38d857c9ce258b212fb6266afa4be95f8001a464736f6c634300081b003300000000000000000000000042000000000000000000000000000000000000060000000000000000000000000989cd2871b36d638140354731301a32d2409c3a0000000000000000000000000989cd2871b36d638140354731301a32d2409c3a