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)
Example Uni V2 Adapter

Uniswap V3

There are a few different helpers for Uni V3 forks but we recommend using uniTvlExport.

Example Uni V3 Adapter

GMX

Example GMX Adapter

Aave

Example Aave Fork Adapter

Compound

Example Compound Fork Adapter

Liquity

Example Liquity Fork Adapter

Balancer V2

Example Balancer V2 Fork Adapter

Last updated

Was this helpful?