Contract Functions

SVY Contract

The ERC20 contract for the SVY token which is the utility and governance token of the Savvy Protocol. See Tokenomics and Utility for more information.

veSVY Contract

This is the ERC20 contract for the non-transferable veSVY token. Users stake SVY tokens in this contract and then continuously claim veSVY tokens that accrue over time until the max cap is reached. If a user unstakes their SVY tokens from this contract, the entire veSVY balance in their wallet is burned.

Savvy Sage Contracts

Acts as an Automated Market Operator to rebalance the Savvy Stable Pools by making single-side deposits and withdrawals of svTokens and base tokens using yield from the Savvy Position Manager. Manages liquidity and the exchange rate of svTokens to base tokens for the Savvy Swaps based on the flow rate. An instance of the contract is deployed for every supported svToken.

Savvy Swap Contracts

Exchanges svTokens for base tokens at a guaranteed but non-instantaneous 1-to-1 redemption, essentially serving as a price correlation mechanism. Users deposit svTokens and gradually claim the corresponding amount of base tokens until their entire balance is converted. These contracts determine the rate of exchange by using a base token buffer and swapping the synthetic proportionally to the percentage ownership of the "swap pool." The buffer is managed by the Savvy Sage Contracts and supplied with incoming yield from the Savvy Position Managers. An instance of the contract is deployed for every supported base token.

svToken Contracts

svTokens are synthetic DeFi primitives that are interchangeable representations of a claim on the deposited collateral. The svTokens play a critical role in the Savvy protocol by making it possible to eliminate liquidation. These are the ERC20 contracts for svTokens. An instance is deployed for every supported unit of account.

Savvy Position Manager Contracts

The external-facing contract of the Savvy CDP that coordinates actions between users and the Yield Strategy Manager. These contracts handle user actions to deposit, withdraw, borrow, and repay. They also track user data such as debt balance and yield strategy deposits. Harvested yield is sent to the Savvy Swap, the Savvy Treasury, and towards reducing user debt balances. An instance of the contract is deployed for every supported svToken.

Yield Strategy Manager Contracts

The internal-facing contract of the Savvy CDP that coordinates actions between the Savvy Position Manager and external yield strategies via Savvy Adapters. These contracts maintain parameter configurations for base tokens and yield tokens. They deposits collateral into external strategies and harvest yield from them. They also manage borrow and repay limiters for each base token as a safety measure to ensure protocol stability. An instance of the contract is deployed for every supported svToken.

Savvy Loan Migrator Contracts

Users can easily switch external yield strategies without unwinding their Savvy CDP as long as the base token of the new strategy is the same.

Savvy Adapter Contracts

Custom adapters to interoperate with third-party protocols that generate yield for the Savvy CDPs. These contracts deposit in and withdraw from external yield strategies by wrapping base tokens into shares of yield tokens and vice versa. An instance of the contract is deployed for every supported DeFi partner. Not required for yield tokens that adopt the ERC4626 standard.

SVY Booster

The Boosting Pool operates differently than the Base SVY Pool because its liquidity emission depends on staking SVY tokens. To mine SVY tokens in the Boosting Pool, individuals must first stake SVY tokens to begin receiving veSVY. This staking requirement helps to counteract the negative effects of increased market supply by limiting the overall supply of SVY tokens in the market. Incentivizes borrowers who stake SVY long-term. Users claim additional SVY rewards based on their debt and veSVY balances in relation to the total debt and veSVY balances of the Savvy Protocol. The boost calculation is refreshed for users every time their debt or veSVY balances change.

Info Aggregators

Batches ready-only functions to aggregate information. Renders front-end interfaces with faster latency and less RPC burden.

Last updated