mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-30 05:45:32 +08:00
Add emberswap
This commit is contained in:
25
projects/emberswap/index.js
Normal file
25
projects/emberswap/index.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const { calculateUsdUniTvl } = require("../helper/getUsdUniTvl");
|
||||
const { stakingPricedLP } = require('../helper/staking')
|
||||
|
||||
const EMBER = "0x6BAbf5277849265b6738e75AEC43AEfdde0Ce88D";
|
||||
const VAULT = "0xFFbE92fDA81f853bcf00d3c7686d5DAd5A6600bB";
|
||||
const WBCH = "0x3743eC0673453E5009310C727Ba4eaF7b3a1cc04";
|
||||
const FACTORY = "0xE62983a68679834eD884B9673Fb6aF13db740fF0";
|
||||
|
||||
const EMBER_WBCH_PAIR = "0x52c656FaF57DCbDdDd47BCbA7b2ab79e4c232C28"
|
||||
|
||||
module.exports = {
|
||||
misrepresentedTokens: true,
|
||||
methodology:
|
||||
"Factory address (0xE62983a68679834eD884B9673Fb6aF13db740fF0) is used to find the LP pairs. TVL is equal to the liquidity on the AMM. Ember tokens sent to vault are counted towards staking.",
|
||||
smartbch: {
|
||||
tvl: calculateUsdUniTvl(
|
||||
FACTORY,
|
||||
"smartbch",
|
||||
WBCH,
|
||||
[EMBER],
|
||||
"bitcoin-cash"
|
||||
),
|
||||
staking: stakingPricedLP(VAULT, EMBER, "smartbch", EMBER_WBCH_PAIR, "bitcoin-cash", 18)
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user