Skip to content

Commit

Permalink
Submit Pool Stake Baryon
Browse files Browse the repository at this point in the history
  • Loading branch information
khiemsoft committed Nov 27, 2023
1 parent 602c6e4 commit 0767e87
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions projects/baryon/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
const utils = require('../helper/utils');
const { stakings, staking } = require('../helper/staking');
const { getUniTVL } = require('../helper/unknownTokens')

async function fetchData(chain) {
const { data } = await utils.fetchURL('https://rapid.coin98.com/baryon-stake.json')

return data[chain]
}

async function stakingTomo(...args) {
const lpTokenTomo = await fetchData('tomo')

return stakings(lpTokenTomo.stakeContract, lpTokenTomo.lpToken)(...args)
}

async function stakingBsc(...args) {
const lpTokenTomo = await fetchData('binanceSmart')

return stakings(lpTokenTomo.stakeContract, lpTokenTomo.lpToken)(...args)
}

module.exports = {
bsc: {
misrepresentedTokens: true,
staking: stakingBsc,
tvl: getUniTVL({
factory: '0x03879e2a3944fd601e7638dfcbc9253fb793b599',
useDefaultCoreAssets: true,
})
},
tomo: {
tomochain: {
misrepresentedTokens: true,
staking: stakingTomo,
tvl: getUniTVL({
factory: '0xFe48A2E66EE2f90334d3565E56E0c9d0081447e8',
useDefaultCoreAssets: true,
})
}),
}
}

0 comments on commit 0767e87

Please sign in to comment.