0 txs
48 calls
constructor
No constructor.
functions
getNetAssets
viewfunction getNetAssets() view returns (uint256)
netAssets
viewfunction netAssets() view returns (uint256)
owner
viewfunction owner() view returns (address)
rebalancer
viewfunction rebalancer() view returns (address)
safeWallet
viewfunction safeWallet() view returns (address)
vault
viewfunction vault() view returns (address)
VERSION
viewfunction VERSION() view returns (string)
initialize
nonpayablefunction initialize(bytes _initBytes)
onTransferIn
nonpayablefunction onTransferIn(address _token, uint256 _amount) returns (bool)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
transferToSafeWallet
nonpayablefunction transferToSafeWallet(address _token, uint256 _amount)
transferToVault
nonpayablefunction transferToVault(address _token, uint256 _amount)
updateNetAssets
nonpayablefunction updateNetAssets(uint256 _newNetAssets)
updateRebalancer
nonpayablefunction updateRebalancer(address _newRebalancer)
updateSafeWallet
nonpayablefunction updateSafeWallet(address _newSafeWallet)
events
Initialized
event Initialized(uint64 version)
OnTransferIn
event OnTransferIn(address token, uint256 amount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
TransferToSafeWallet
event TransferToSafeWallet(address token, uint256 amount)
TransferToVault
event TransferToVault(address token, uint256 amount)
UpdateNetAssets
event UpdateNetAssets(uint256 oldNetAssets, uint256 newNetAssets)
UpdateRebalancer
event UpdateRebalancer(address oldRebalancer, address newRebalancer)
UpdateSafeWallet
event UpdateSafeWallet(address oldWallet, address newWallet)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
CallerNotRebalancer
error CallerNotRebalancer()
CallerNotVault
error CallerNotVault()
FailedInnerCall
error FailedInnerCall()
IncorrectState
error IncorrectState()
InvalidAdmin
error InvalidAdmin()
InvalidInitialization
error InvalidInitialization()
InvalidRebalancer
error InvalidRebalancer()
NotInitializing
error NotInitializing()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
UnSupportedOperation
error UnSupportedOperation()
creation bytecode
0x6080604052348015600e575f80fd5b50610ca88061001c5f395ff3fe608060405234801561000f575f80fd5b50600436106100dd575f3560e01c80638da5cb5b116100845780638da5cb5b1461018f5780639c2ec92314610197578063b046a449146101aa578063b39618f5146101bd578063b88de063146101d0578063f2fde38b146101e3578063fbfa77cf146101f6578063ffa1ad7414610208575f80fd5b806301d22ccd146100e15780630782d4211461010a57806308bb5fb014610121578063439fab911461012957806356f4edaf1461013e578063715018a61461016157806388cfce561461016957806389a71faa1461017c575b5f80fd5b6001546100f4906001600160a01b031681565b6040516101019190610ac8565b60405180910390f35b61011360035481565b604051908152602001610101565b600354610113565b61013c610137366004610adc565b610235565b005b61015161014c366004610b5c565b6103d1565b6040519015158152602001610101565b61013c610453565b6002546100f4906001600160a01b031681565b61013c61018a366004610b5c565b610466565b6100f46104e7565b61013c6101a5366004610b86565b610515565b61013c6101b8366004610b9d565b61057e565b61013c6101cb366004610b5c565b610619565b61013c6101de366004610b9d565b6106b8565b61013c6101f1366004610b9d565b610765565b5f546100f4906001600160a01b031681565b610228604051806040016040528060018152602001603160f81b81525081565b6040516101019190610bb8565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f8115801561027a5750825b90505f8267ffffffffffffffff1660011480156102965750303b155b9050811580156102a4575080155b156102c25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156102ec57845460ff60401b1916600160401b1785555b5f806102fa888a018a610bed565b90925090506001600160a01b03821661032657604051630b5eba9f60e41b815260040160405180910390fd5b6001600160a01b038116610350576040516001626bbab960e11b0319815260040160405180910390fd5b610359826107ab565b600180546001600160a01b039092166001600160a01b03199283161790555f8054909116331790555083156103c857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b5f80546001600160a01b031633146103fc5760405163edd7338f60e01b815260040160405180910390fd5b6104116001600160a01b0384163330856107bc565b7f062da72b38d21d7e3e03c3fadd2657b56825f0daa8cede05226b526a3b0558018383604051610442929190610c24565b60405180910390a150600192915050565b61045b610829565b6104645f61085b565b565b6001546001600160a01b031633146104915760405163bd72e29160e01b815260040160405180910390fd5b5f546104aa906001600160a01b038481169116836108cb565b7fbd641e36a684e9917ba831e1a6fd82514a1d7b6bcc7703fa37a935a9e98d40f382826040516104db929190610c24565b60405180910390a15050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b61051d610829565b805f0361053d57604051630508c93960e41b815260040160405180910390fd5b60035460408051918252602082018390527f4629147ebf0fea0171d6f68be1802a709922ce8bc6517788340afefe3e5e4c43910160405180910390a1600355565b610586610829565b6001600160a01b0381166105b0576040516001626bbab960e11b0319815260040160405180910390fd5b600154604080516001600160a01b03928316815291831660208301527fe2eeab472f89ac267be30e463da684fb96f56cc8e947839361fdf45bf6a3458e910160405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146106445760405163bd72e29160e01b815260040160405180910390fd5b6002546001600160a01b031661066d5760405163e9ec812960e01b815260040160405180910390fd5b600254610687906001600160a01b038481169116836108cb565b7fcd6afb46969bc9f4b8c53db03175e9312ddc54b08e4ca1c6003f959e21376ca682826040516104db929190610c24565b6106c0610829565b6001600160a01b0381163b15806106de57506001600160a01b038116155b156106fc5760405163e9ec812960e01b815260040160405180910390fd5b600254604080516001600160a01b03928316815291831660208301527f1fe0b709bb9e10c9cda36f5053f68cfc82fb77633755c02d857b2874a0bf55f9910160405180910390a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b61076d610829565b6001600160a01b03811661079f575f604051631e4fbdf760e01b81526004016107969190610ac8565b60405180910390fd5b6107a88161085b565b50565b6107b36108f6565b6107a88161093f565b6040516001600160a01b0384811660248301528381166044830152606482018390526108239186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610947565b50505050565b336108326104e7565b6001600160a01b031614610464573360405163118cdaa760e01b81526004016107969190610ac8565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6108f183846001600160a01b031663a9059cbb85856040516024016107f1929190610c24565b505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661046457604051631afcd79f60e31b815260040160405180910390fd5b61076d6108f6565b5f61095b6001600160a01b0384168361099f565b905080515f1415801561097f57508080602001905181019061097d9190610c3d565b155b156108f15782604051635274afe760e01b81526004016107969190610ac8565b60606109ac83835f6109b3565b9392505050565b6060814710156109d8573060405163cd78605960e01b81526004016107969190610ac8565b5f80856001600160a01b031684866040516109f39190610c5c565b5f6040518083038185875af1925050503d805f8114610a2d576040519150601f19603f3d011682016040523d82523d5f602084013e610a32565b606091505b5091509150610a42868383610a4c565b9695505050505050565b606082610a6157610a5c82610a9f565b6109ac565b8151158015610a7857506001600160a01b0384163b155b15610a985783604051639996b31560e01b81526004016107969190610ac8565b50806109ac565b805115610aaf5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b0391909116815260200190565b5f8060208385031215610aed575f80fd5b823567ffffffffffffffff80821115610b04575f80fd5b818501915085601f830112610b17575f80fd5b813581811115610b25575f80fd5b866020828501011115610b36575f80fd5b60209290920196919550909350505050565b6001600160a01b03811681146107a8575f80fd5b5f8060408385031215610b6d575f80fd5b8235610b7881610b48565b946020939093013593505050565b5f60208284031215610b96575f80fd5b5035919050565b5f60208284031215610bad575f80fd5b81356109ac81610b48565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f8060408385031215610bfe575f80fd5b8235610c0981610b48565b91506020830135610c1981610b48565b809150509250929050565b6001600160a01b03929092168252602082015260400190565b5f60208284031215610c4d575f80fd5b815180151581146109ac575f80fd5b5f82518060208501845e5f92019182525091905056fea264697066735822122059afb9720ab7c1313b495b83160976c964f66dcff721719b593c6bd95ee88d6064736f6c63430008190033