The Vault
What is the Vault?
It is a single contract that holds and manages all the assets added by all Holdr pools. This allows Holdr to take full advantage of its multi-pool trading routing in order to offer the best trade routing options.
How does the Vault work?
Holdr separates the Automated Market Maker (AMM) logic from the token management and accounting. Token management/accounting is done by the Vault while the AMM logic is individual to each pool.
Because pools are contracts external to the Vault, they can implement any arbitrary, customized AMM logic.
What are Internal User Balances?
Important: DO NOT blindly transfer tokens to the Vault expecting to get a User Balance. They must be added through the UserBalance smart contract. Any tokens sent directly to the Vault or a pool contract will be irretrievably lost.
Internal user token balances are tokens that belong to you that are kept inside the Vault. They are useful for high-frequency trading since they require no external token transfers. The only ERC20 token transfers you need to perform are when you're initially putting your tokens in the Vault and withdrawing them later. (This feature is available at the contract level.)
Last updated