0 txs
4 calls
constructor
constructor()
functions
assetToIndexMap
viewfunction assetToIndexMap(address asset) view returns (uint256 index)
assetToOracleMap
viewfunction assetToOracleMap(address asset) view returns (address oracle)
assetToVaultMap
viewfunction assetToVaultMap(address asset) view returns (address vault)
config
viewfunction config() view returns (address)
indexToAssetMap
viewfunction indexToAssetMap(uint256 index) view returns (address asset)
nextAssetIndex
viewfunction nextAssetIndex() view returns (uint256)
numAssets
viewfunction numAssets() view returns (uint256)
addAsset
nonpayablefunction addAsset(address asset, address vault, address oracle)
initialize
nonpayablefunction initialize(address configAddr)
removeAsset
nonpayablefunction removeAsset(address asset)
events
AssetAdded
event AssetAdded(address asset, uint256 index, address vault, address oracle)
AssetRemoved
event AssetRemoved(address asset, uint256 index)
ConfigAddrSet
event ConfigAddrSet(address indexed config)
Initialized
event Initialized(uint8 version)
errors
NotAdmin
error NotAdmin()
NotAllowedRole
error NotAllowedRole(string role)
NotManager
error NotManager()
ZeroAddressNotAllowed
error ZeroAddressNotAllowed()
creation bytecode
0x6080604052348015600e575f80fd5b5060156019565b60d3565b5f54610100900460ff161560835760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b5f5460ff9081161460d1575f805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b6107f6806100e05f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806390f9cf431161006357806390f9cf4314610136578063a44e03c91461015e578063a46fe83b1461017d578063bc77081e14610186578063c4d66de8146101ae575f80fd5b80634a5e42b11461009f5780634e9f79ff146100b457806358e1d06d146100f957806379502c55146101105780638ebdc8b114610123575b5f80fd5b6100b26100ad366004610685565b6101c1565b005b6100dc6100c2366004610685565b60696020525f90815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010260665481565b6040519081526020016100f0565b6033546100dc906001600160a01b031681565b6100b26101313660046106a5565b610303565b6100dc6101443660046106e5565b60676020525f90815260409020546001600160a01b031681565b61010261016c366004610685565b60686020525f908152604090205481565b61010260655481565b6100dc610194366004610685565b606a6020525f90815260409020546001600160a01b031681565b6100b26101bc366004610685565b610485565b603354604051632474521560e21b81525f60048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa15801561020d573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061023191906106fc565b61024e57604051637bfa4b9f60e01b815260040160405180910390fd5b6001600160a01b0381165f8181526068602090815260408083208054908490558084526067835281842080546001600160a01b031990811690915594845260698352818420805486169055606a90925282208054909316909255606580549091906102b89061072f565b90915550604080516001600160a01b0384168152602081018390527f3406221f53114f44c9a1bb93d08ee55735f39bf235a54741684a52501207bb5491015b60405180910390a15050565b603354604051632474521560e21b81525f60048201523360248201526001600160a01b03909116906391d1485490604401602060405180830381865afa15801561034f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061037391906106fc565b61039057604051637bfa4b9f60e01b815260040160405180910390fd5b606680546001600160a01b038581165f8181526068602090815260408083208690559482526067815284822080546001600160a01b031990811685179091559282526069815284822080548416898616179055606a90529283208054909116918516919091179055815461040390610744565b90915550606580545f9061041690610744565b909155506066547f6728278045eb00be24cd01ecf1db3dddd7bed3ddd43773165dbe59a45eba7e4b90849061044d9060019061075c565b604080516001600160a01b039384168152602081019290925282861690820152908316606082015260800160405180910390a1505050565b5f54610100900460ff16158080156104a357505f54600160ff909116105b806104bc5750303b1580156104bc57505f5460ff166001145b6105245760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b5f805460ff191660011790558015610545575f805461ff0019166101001790555b61054e82610598565b60016066558015610594575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020016102f7565b5050565b5f54610100900460ff166105be5760405162461bcd60e51b815260040161051b90610775565b6105c781610618565b6105cf610642565b603380546001600160a01b0319166001600160a01b0383169081179091556040517f13e7b1b1807ef4da70016f0f80d2f42c6395aba727a454e104a2ddb63baf1601905f90a250565b6001600160a01b03811661063f576040516342bcdf7f60e11b815260040160405180910390fd5b50565b5f54610100900460ff166106685760405162461bcd60e51b815260040161051b90610775565b565b80356001600160a01b0381168114610680575f80fd5b919050565b5f60208284031215610695575f80fd5b61069e8261066a565b9392505050565b5f805f606084860312156106b7575f80fd5b6106c08461066a565b92506106ce6020850161066a565b91506106dc6040850161066a565b90509250925092565b5f602082840312156106f5575f80fd5b5035919050565b5f6020828403121561070c575f80fd5b8151801515811461069e575f80fd5b634e487b7160e01b5f52601160045260245ffd5b5f8161073d5761073d61071b565b505f190190565b5f600182016107555761075561071b565b5060010190565b8181038181111561076f5761076f61071b565b92915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220c7ce77216a15c28e5198e010ad05dc141ceb9725579a4b4c214e5627be292b3264736f6c634300081a0033