DeFi Llama
Search…
Fork helpers

Olympus DAO

1
const { ohmTvl } = require("../helper/ohm");
Copied!
DefiLlama-Adapters/index.js at main · DefiLlama/DefiLlama-Adapters
GitHub
Example Olympus DAO Adapter

Compound

1
const { usdCompoundExports } = require("../helper/compound");
Copied!
DefiLlama-Adapters/index.js at main · DefiLlama/DefiLlama-Adapters
GitHub
Example Compound Fork Adapter

MasterChefs

For MasterChef's we recommend using masterChefExports, but in some more complicated scenarios you may need to use addFundsInMasterChef.
1
const { masterChefExports } = require("../helper/masterchef");
2
const { addFundsInMasterChef } = require('../helper/masterchef');
Copied!
DefiLlama-Adapters/index.js at main · DefiLlama/DefiLlama-Adapters
GitHub
Example masterChefExports adapter

Uniswap V2

There are a few different helpers for Uni V2 forks but we recommend using calculateUsdUniTvl.
1
const { calculateUsdUniTvl } = require("../helper/getUsdUniTvl");
Copied!
DefiLlama-Adapters/solarflare.js at main · DefiLlama/DefiLlama-Adapters
GitHub
Example Uni V2 Adapter