ravenerzz / strats

Home of Astrolab strategies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astrolab Strategies

by Astrolab

License Discord Chat Astrolab Docs

This repo holds Astrolab DAO's yield primitives.

Besides harvesting/compounding automation (cf. Astrolab Botnet), some of the strategies have off-chain components (eg. cross-chain arb, statistical arb, triangular arb, carry trading etc.), which are not part of this repository, and kept closed-source as part of our Protocol secret sauce.

Disclaimer ⚠️

Astrolab DAO and its core team members will not be held accountable for losses related to the deployment and use of this repository's codebase. As per the licence states, the code is provided as-is and is under active development. The codebase, documentation, and other aspects of the project may be subject to changes and improvements over time.

Testing

Testing As4626+StrategyV5 with Hardhat (make sure to set HARDHAT_CHAIN_ID=42161 in .env to run the below test to be successful):

yarn test-hardhat # yarn hardhat test test/Compound/CompoundV3MultiStake.test.ts --network hardhat

Testing As4626+StrategyV5 with Tenderly (make sure to set TENDERLY_CHAIN_ID=42161 and define your tenderly fork ids in .env for the below test to be successful):

yarn test-tenderly # yarn hardhat test test/Compound/CompoundV3MultiStake.test.ts --network tenderly

The repo imports @astrolabs/hardhat, therefore you can use our generic deployment functions for fine-grain partial deployments of the stack:

import { deployAll } from "@astrolabs/hardhat";

async function main() {
  await deployAll({
    name: "AsMaths", // deployment unit name
    contract: "AsMaths", // contract name
    verify: true, // automatically verify on Tenderly or relevant explorer
    export: false, // do not export abi+deployment .son
  });
}

Strategies 🚧

Integrated/Watched Protocols πŸ‘€

Staking

Primitives

Derivatives

ReStaking

Primitives

RWA

Primitives

Money Markets

Primitives

Derivatives

Spot DEXs

Primitives

Derivatives

Derivatives DEXs

Primitives

Derivatives

Structured Finance

Primitives

Derivatives

Bridges

Primitives

Derivatives

Yield Aggregators

Credits

Special thanks to peer aggregators who also open source their strategies

Contributing

Contributions are welcome, the DAO is always open to team up with like-minded builders and strategists. Find us on Discord by day or night πŸŒžπŸŒ› Up to 20% of a strategy PnL is claimable to their rightful designer.

Astrolab DAO vetting process on strategy submission is in the works, and will be similar to that of Yearn

Feel free to open an issue or create a pull request if you have any improvements or suggestions.

Started with ❀️ at DevCon/EthGlobal IST 2023

About

Home of Astrolab strategies

License:Other


Languages

Language:Solidity 73.5%Language:TypeScript 26.5%