DeFi Llama
Search…
⌃K

Fork helpers

Uniswap V2

There are a few different helpers for Uni V2 forks but we recommend using uniTvlExport.
const { uniTvlExport } = require('../helper/unknownTokens')
const chain = 'yourChain'
const factory = '0x...' // v2 factory address
module.exports = uniTvlExport(chain, factory)

GMX

const { gmxExports } = require('../helper/gmx')
module.exports = {
bsc: {
tvl: gmxExports({ vault: '0x...', })
}
}

Aave

const { aaveExports } = require("../helper/aave")

Compound

const { compoundExports } = require("../helper/compound");
module.exports = {
polygon: compoundExports(controller, chain, cETHAddress, '0x0000000000000000000000000000000000000000'),
};

MasterChefs

For MasterChef's we recommend using masterChefExports, but in some more complicated scenarios you may need to use addFundsInMasterChef.
const { masterchefExports } = require("../helper/unknownTokens")
const { addFundsInMasterChef } = require('../helper/masterchef');

Olympus DAO

const { ohmTvl } = require("../helper/ohm");

tomb

const { unknownTombs } = require("../helper/unknownTokens")