Skip to content

Refactored Vault Ethereum Deployment

Compare
Choose a tag to compare
@dhruvinparikh dhruvinparikh released this 23 Apr 02:02
· 750 commits to master since this release
ce01ef8

Vault Implementation Revision 3 VaultV3 ABI

Change log

  • Add whitelists for account and smart contracts at Vault level instead of Registry
  • Rebalance does not charge fees to the vault
  • Vault configuration is now bit banging style using vaultConfiguration
    • bit 0-15 deposit fee in underlying token without decimals
    • bit 16-31 deposit fee in basis points
    • bit 32-47 withdrawal fee in underlying token without decimals
    • bit 48-63 withdrawal fee in basis points
    • bit 64-79 max vault value jump allowed in basis points (standard deviation allowed for vault value)
    • bit 80-239 vault fee collection address
    • bit 240-247 risk profile code
    • bit 248 emergency shutdown flag
    • bit 249 pause flag (deposit/withdraw is pause when bit is unset, unpause otherwise)
    • bit 250 white list state flag
  • Charge flat and/or percentage fees on deposit and withdraw
  • Removes the queuing mechanism for deposit and withdraw requests. User will get the vault tokens burnt/minted right away
  • Replace discontinue with emergency shutdown.
  • The StrategyManager is now public library instead of contract
  • Removed getPricePerFullShareWrite() function
  • The vault mint and burns vault tokens now on PPS