0 txs
1 call
constructor
constructor(address evc)
functions
accruedFee
viewfunction accruedFee(address) view returns (uint256)
admin
viewfunction admin(address) view returns (address)
EVC
viewfunction EVC() view returns (address)
fee
viewfunction fee(address) view returns (uint256)
flowCaps
viewfunction flowCaps(address, address) view returns (uint128 maxIn, uint128 maxOut)
reallocateTo
payablefunction reallocateTo(address vault, tuple[] withdrawals, address supplyId) payable
setAdmin
nonpayablefunction setAdmin(address vault, address newAdmin)
setFee
nonpayablefunction setFee(address vault, uint256 newFee)
setFlowCaps
nonpayablefunction setFlowCaps(address vault, tuple[] config)
transferFee
nonpayablefunction transferFee(address vault, address feeRecipient)
events
PublicReallocateTo
event PublicReallocateTo(address indexed sender, address indexed vault, address indexed supplyId, uint256 suppliedAssets)
PublicWithdrawal
event PublicWithdrawal(address indexed sender, address indexed vault, address indexed id, uint256 withdrawnAssets)
SetAdmin
event SetAdmin(address indexed sender, address indexed vault, address admin)
SetAllocationFee
event SetAllocationFee(address indexed sender, address indexed vault, uint256 fee)
SetFlowCaps
event SetFlowCaps(address indexed sender, address indexed vault, (address id, (uint128 maxIn, uint128 maxOut) caps)[] config)
TransferAllocationFee
event TransferAllocationFee(address indexed sender, address indexed vault, uint256 amount, address indexed feeRecipient)
errors
AlreadySet
error AlreadySet()
ControllerDisabled
error ControllerDisabled()
DepositMarketInWithdrawals
error DepositMarketInWithdrawals()
EmptyWithdrawals
error EmptyWithdrawals()
EVC_InvalidAddress
error EVC_InvalidAddress()
FeeTransferFailed
error FeeTransferFailed(address feeRecipient)
InconsistentWithdrawals
error InconsistentWithdrawals()
IncorrectFee
error IncorrectFee()
MarketNotEnabled
error MarketNotEnabled(address id)
MaxInflowExceeded
error MaxInflowExceeded(address id)
MaxOutflowExceeded
error MaxOutflowExceeded(address id)
MaxSettableFlowCapExceeded
error MaxSettableFlowCapExceeded()
NotAdminNorVaultOwner
error NotAdminNorVaultOwner()
NotAuthorized
error NotAuthorized()
NotEnoughSupply
error NotEnoughSupply(address id)
WithdrawZero
error WithdrawZero(address id)
creation bytecode
0x60a034608a57601f6114d338819003918201601f19168301916001600160401b03831184841017608e57808492602094604052833981010312608a57516001600160a01b03811690819003608a578015607b5760805260405161143090816100a38239608051818181610391015281816111de01526113520152f35b638133abd160e01b5f5260045ffd5b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe60806040526004361015610011575f80fd5b5f803560e01c80630e4eecf814610e63578063239301af1461084957806363a846f8146108095780636fcca69b146107d057806391b114b214610797578063976ac86c146103c0578063a70354a11461037b578063c55b6bb714610242578063e55156b5146100ed5763f2dde13714610088575f80fd5b346100ea5760403660031901126100ea5760406100a3610ff9565b916100ac61100f565b9260018060a01b031681526003602052209060018060a01b03165f526020526040805f20548151906001600160801b038116825260801c6020820152f35b80fd5b50346100ea5760403660031901126100ea57610107610ff9565b6024356101126111dc565b6001600160a01b03928316808552602085905260408520549093918216911681141590816101c0575b506101b1578183526001602052806040842054146101a25781835260016020908152604084208290557f57558e67b513dda9e2670c93b6d5d474546557e950780125f538a155b32565b6906001600160a01b0361019661134f565b1692604051908152a380f35b63a741a04560e01b8352600483fd5b6326d3a7bf60e01b8352600483fd5b604051638da5cb5b60e01b8152909150602081600481875afa9081156102375785916101f9575b506001600160a01b031614155f61013b565b90506020813d60201161022f575b8161021460209383611025565b8101031261022b5761022590611047565b5f6101e7565b8480fd5b3d9150610207565b6040513d87823e3d90fd5b50346100ea5760403660031901126100ea5761025c610ff9565b61026461100f565b61026c6111dc565b6001600160a01b0392831680855260208590526040852054909391821691168114159081610308575b506101b157818352602083905260408320546001600160a01b03918216911681146101a25781835260208381526040842080546001600160a01b031916831790557fc51248b3e510a1244e01043dffdc0132d10194bd4506382cbcf83d05f6ec57ef906001600160a01b0361019661134f565b604051638da5cb5b60e01b8152909150602081600481875afa908115610237578591610341575b506001600160a01b031614155f610295565b90506020813d602011610373575b8161035c60209383611025565b8101031261022b5761036d90611047565b5f61032f565b3d915061034f565b50346100ea57806003193601126100ea576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346100ea5760403660031901126100ea576103da610ff9565b60243567ffffffffffffffff8111610793573660238201121561079357806004013567ffffffffffffffff811161078f576024820191602436916060840201011161078f576104276111dc565b6001600160a01b039384168086526020869052604086205490949182169116811415908161070d575b506106fe57835b81811061051e57506001600160a01b0361046f61134f565b1691604051918060208401602085525260408301919086905b8082106104bc5750505090807f1ce49b3d858f978a9fd8993097e165e1b0a7fa6d86aa67b29decd333fd896c76920390a380f35b90919283359060018060a01b03821680920361051a576060816001938293526001600160801b036104ef602089016111c8565b1660208201526001600160801b03610509604089016111c8565b166040820152019401920190610488565b8880fd5b61053161052c8284866111b8565b61113c565b604051630e68ec9560e01b81526001600160a01b039091166004820181905290608081602481895afa80156106f35760409188916106c5575b5001511580610683575b610671576001600160801b0361059660206105908587896111b8565b01611150565b6f7fffffffffffffffffffffffffffffff918291161190811561064f575b50610640579061063a6001926105cb8386886111b8565b90878952600360205260408920905f526020526106116040805f20926001600160801b036105fb60208301611150565b166001600160801b031985541617845501611150565b81546001600160801b031660809190911b6fffffffffffffffffffffffffffffffff1916179055565b01610457565b632e61835960e21b8652600486fd5b90506001600160801b03610669604061059086888a6111b8565b16115f6105b4565b632215cda760e01b8652600452602485fd5b506001600160801b0361069c60206105908587896111b8565b1615158061057457506001600160801b036106bd60406105908587896111b8565b161515610574565b6106e6915060803d81116106ec575b6106de8183611025565b810190611068565b5f61056a565b503d6106d4565b6040513d89823e3d90fd5b6326d3a7bf60e01b8452600484fd5b604051638da5cb5b60e01b8152909150602081600481885afa908115610784578691610746575b506001600160a01b031614155f610450565b90506020813d60201161077c575b8161076160209383611025565b810103126107785761077290611047565b5f610734565b8580fd5b3d9150610754565b6040513d88823e3d90fd5b8380fd5b8280fd5b50346100ea5760203660031901126100ea576020906040906001600160a01b036107bf610ff9565b168152600283522054604051908152f35b50346100ea5760203660031901126100ea576020906040906001600160a01b036107f8610ff9565b168152600183522054604051908152f35b50346100ea5760203660031901126100ea576020906001600160a01b0361082e610ff9565b168152808252604060018060a01b0391205416604051908152f35b506060366003190112610af85761085e610ff9565b60243567ffffffffffffffff8111610af85736602382011215610af85780600401359067ffffffffffffffff8211610af8576024810190602436918460061b010111610af8576044356001600160a01b0381169390849003610af8576001600160a01b03165f818152600160205260409020549092903403610e545734610e35575b8015610e2657604051630e68ec9560e01b815260048101859052608081602481875afa8015610abf576040915f91610e07575b50015115610df4576001810190818111610cde5761093082611100565b9161093e6040519384611025565b80835261094d601f1991611100565b015f5b818110610daa5750505f925f805b838210610b0f57505050835f52600360205260405f20855f526020526001600160801b0360405f205416926001600160801b038116809410610afc576109fd90855f52600360205260405f20875f5260205260405f206001600160801b036109c98382845416611184565b166001600160801b0319825416179055855f52600360205260405f20875f5260205261061160405f2091825460801c611164565b84610a0882846111a4565b51526020610a185f1992846111a4565b510152823b15610af85760405180916217d38b60eb1b8252602482016020600484015281518091526020604484019201905f5b818110610aca5750505090805f92038183875af18015610abf57610aaa575b507f4d8dc135b6ebc05d8f601ac5b4ea2029a2dc67a78c791053e7d4b252e78a409760206001600160a01b03610a9e61134f565b1692604051908152a480f35b610ab79194505f90611025565b5f925f610a6a565b6040513d5f823e3d90fd5b825180516001600160a01b031685526020908101518186015286955060409094019390920191600101610a4b565b5f80fd5b85632b8dbcf360e21b5f5260045260245ffd5b94610b1e61052c838686611118565b604051630e68ec9560e01b81526001600160a01b03821660048201819052919391906080816024818d5afa8015610abf576040915f91610d8c575b50015115610d7a57610b716020610590848989611118565b926001600160801b038416988915610d67576001600160a01b0316821115610d58578a8214610d4957604051636623b57560e01b8152600481018390526020816024818e5afa908115610abf575f91610d18575b508a5f52600360205260405f20835f526020528960405f205460801c10610d0557898110610cf2578a5f52600360205260405f20835f5260205260405f206001600160801b03610c188782845416611164565b166001600160801b03198254161790558a5f52600360205260405f20835f52602052610c4f60405f2061061187825460801c611184565b610c5d61052c858a8a611118565b610c67858b6111a4565b516001600160a01b039091169052898103908111610cde576001948b92610c9c926020610c94888e6111a4565b510152611164565b987f78b2730a7ba1e3759ea2e3c385e57f33707440fd42c9eda192070d7da00883876020868060a01b03610cce61134f565b1692604051908152a4019061095e565b634e487b7160e01b5f52601160045260245ffd5b82636da1ff5d60e11b5f5260045260245ffd5b8263cd47b22d60e01b5f5260045260245ffd5b90506020813d8211610d41575b81610d3260209383611025565b81010312610af857515f610bc5565b3d9150610d25565b63898ca71960e01b5f5260045ffd5b63192a4ee960e31b5f5260045ffd5b826312c3b25960e21b5f5260045260245ffd5b632215cda760e01b5f5260045260245ffd5b610da4915060803d81116106ec576106de8183611025565b5f610b59565b60405190604082019180831067ffffffffffffffff841117610de0576020926040525f81525f8382015282828701015201610950565b634e487b7160e01b5f52604160045260245ffd5b83632215cda760e01b5f5260045260245ffd5b610e20915060803d6080116106ec576106de8183611025565b5f610913565b6376da594560e01b5f5260045ffd5b825f52600260205260405f20805490348201809211610cde57556108e0565b63cd3cb2bb60e01b5f5260045ffd5b34610af8576040366003190112610af857610e7c610ff9565b6024356001600160a01b0381169190829003610af857610e9a6111dc565b6001600160a01b039182165f81815260208190526040902054909291821691168114159081610f86575b50610f77575f8181526002602052604081208054908290559080808084875af13d15610f72573d67ffffffffffffffff8111610de05760405190610f12601f8201601f191660200183611025565b81525f60203d92013e5b15610f5f577f58a1833f2aa9da924f0f2352993f183b5da2aab10182023794108e879f9d988f60206001600160a01b03610f5461134f565b1692604051908152a4005b82635438c5d760e11b5f5260045260245ffd5b610f1c565b6326d3a7bf60e01b5f5260045ffd5b604051638da5cb5b60e01b8152909150602081600481865afa908115610abf575f91610fbf575b506001600160a01b0316141583610ec4565b90506020813d602011610ff1575b81610fda60209383611025565b81010312610af857610feb90611047565b84610fad565b3d9150610fcd565b600435906001600160a01b0382168203610af857565b602435906001600160a01b0382168203610af857565b90601f8019910116810190811067ffffffffffffffff821117610de057604052565b51906001600160a01b0382168203610af857565b51908115158203610af857565b90816080910312610af857604051906080820182811067ffffffffffffffff821117610de05760405280516dffffffffffffffffffffffffffff81168103610af857825260208101519070ffffffffffffffffffffffffffffffffff82168203610af85760609160208401526110e06040820161105b565b6040840152015167ffffffffffffffff81168103610af857606082015290565b67ffffffffffffffff8111610de05760051b60200190565b91908110156111285760061b0190565b634e487b7160e01b5f52603260045260245ffd5b356001600160a01b0381168103610af85790565b356001600160801b0381168103610af85790565b906001600160801b03809116911601906001600160801b038211610cde57565b906001600160801b03809116911603906001600160801b038211610cde57565b80518210156111285760209160051b010190565b9190811015611128576060020190565b35906001600160801b0382168203610af857565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633811461121257503390565b604051633a1a3a1d60e01b8152602081600481855afa908115610abf575f9161131d575b5060ff60b81b81161580159061130e575b80156112ff575b6112ab5760405163110ac5cb60e21b81526001600160a01b039091166004820181905291602090829060249082905afa908115610abf575f916112c5575b506001600160a01b0316801515908290826112ba575b50506112ab5790565b63ea8e4eb560e01b5f5260045ffd5b14159050815f6112a2565b90506020813d6020116112f7575b816112e060209383611025565b81010312610af8576112f190611047565b5f61128c565b3d91506112d3565b5060ff60a81b8116151561124e565b5060ff60b01b81161515611247565b90506020813d602011611347575b8161133860209383611025565b81010312610af857515f611236565b3d915061132b565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316808214611385575090565b60408051630c281d0f60e11b81525f6004820152925090829060249082905afa908115610abf575f916113b6575090565b90506040813d6040116113f2575b816113d160409383611025565b81010312610af8576113ee60206113e783611047565b920161105b565b5090565b3d91506113c456fea2646970667358221220669ed21e3f35b4b7241747e276b3b750f4de2803c9e0dff8933c6bc2f63b417764736f6c634300081a0033000000000000000000000000b2e5a73cee08593d1a076a2ae7a6e02925a640ea