Vault.sol
Accounting
Available = balance[user] - locked[user]Functions
depositFor(user, amount) (PROTOCOL_ROLE only)
depositFor(user, amount) (PROTOCOL_ROLE only)withdrawTo(user, amount) (PROTOCOL_ROLE only)
withdrawTo(user, amount) (PROTOCOL_ROLE only)lock(user, amount) / unlock(user, amount) (PROTOCOL_ROLE only)
lock(user, amount) / unlock(user, amount) (PROTOCOL_ROLE only)settleFill(user, marketId, toPool, feeCollector, protocolFee, unlockAmount, withdrawUser) (PROTOCOL_ROLE only)
settleFill(user, marketId, toPool, feeCollector, protocolFee, unlockAmount, withdrawUser) (PROTOCOL_ROLE only)redeemFromPool(marketId, user, amount) (PROTOCOL_ROLE only)
redeemFromPool(marketId, user, amount) (PROTOCOL_ROLE only)emergencyWithdraw()
emergencyWithdraw()Integration Points
Security
Events
Last updated