/sandclock-contracts

Sandclock V2 Monorepo

Primary LanguageSolidityGNU Affero General Public License v3.0AGPL-3.0

Sandclock V2

🪃 Sandclock V2 🪃 is a set of yield strategies on mainnet, implemented as ERC4626-compliant tokenized vaults.

Coverage Status

Strategies

  • scWETH - Deposit WETH/ETH and have it enter a leveraged staked ETH position with additional borrow/supply returns. Receive scWETH shares which appreciate over time when the vault is profitable and can be redeemed for WETH. A keeper bot regularly rebalances the position against a target loan to value ratio in order to compound profits or de-risk position. Strategy has exposure to Lido finance, Curve stETH-ETH LP, Balancer, Aave V3 and the Chainlink stETH/ETH price feed.
  • scUSDC - Deposit USDC and over-collateralize it against WETH which will be deposited into scWETH strategy. Receive scUSDC shares which appreciate over time when the vault is profitable and can be redeemed for USDC. A keeper bot regularly rebalances the position against a target loan to value ratio in order to compound profits or de-risk position. Strategy has exposure to scWETH, Aave V3, Balancer, Uniswap V3 and the Chainlink USDC/ETH price feed.

Installation

To install with Foundry:

forge install lindy-labs/sandclock-contracts

Local development

This project uses Foundry as the development framework.

Dependencies

forge install

Compilation

forge build

Testing

forge test

Contract deployment

Please create a .env file before deployment. An example can be found in .env.example.

Dryrun

forge script script/Deploy.s.sol -f [network]

Live

forge script script/Deploy.s.sol -f [network] --verify --broadcast