Skip to content

Commit

Permalink
update yay #13217
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Jan 26, 2025
1 parent 5eb02bc commit 65cef2a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
3 changes: 3 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ const fixBalancesTokens = {
sui: {
'0xf4530aa5ef8af33c497ec38f54ff9dd45fad9157264efae9693eb62faf8667b5::coin::COIN': { coingeckoId: 'dinero-staked-eth', decimals: 8 },
},
soneium: {
'0x60336f9296c79da4294a19153ec87f8e52158e5f': { coingeckoId: 'bifrost-voucher-astr', decimals: 18 },
}
}

ibcChains.forEach(chain => fixBalancesTokens[chain] = { ...ibcMappings, ...(fixBalancesTokens[chain] || {}) })
Expand Down
29 changes: 18 additions & 11 deletions projects/yay-staking/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
const yayStoneAddress = '0xe86142af1321eaac4270422081c1EdA31eEcFf0c'
const yayAgETHAddress = '0x0341d2c2CE65B62aF8887E905245B8CfEA2a3b97'
const { sumTokensExport } = require('../helper/unwrapLPs')

const tvl = async (api) => {
return api.sumTokens({
tokensAndOwners: [
['0x7122985656e38bdc0302db86685bb972b145bd3c', yayStoneAddress],
['0xe1b4d34e8754600962cd944b535180bd758e6c2e', yayAgETHAddress],
]
})
const config = {
ethereum: [
['0x7122985656e38bdc0302db86685bb972b145bd3c', '0xe86142af1321eaac4270422081c1EdA31eEcFf0c'], // stone
['0xe1b4d34e8754600962cd944b535180bd758e6c2e', '0x0341d2c2CE65B62aF8887E905245B8CfEA2a3b97'], // eth
],
soneium: [
['0x2CAE934a1e84F693fbb78CA5ED3B0A6893259441', '0xc8809C9f811324F4c196eb44C20555D4663Aa6c0'], // astar
['0x60336f9296C79dA4294A19153eC87F8E52158e5F', '0xea7Cf5C2D2509f7A4281F6E8378eaC30420f4206'], // vastar
]
}

module.exports = {
start: '2024-08-01',
ethereum: { tvl },
}
}

Object.keys(config).forEach(chain => {
const tokensAndOwners = config[chain]
module.exports[chain] = {
tvl: sumTokensExport({ tokensAndOwners })
}
})

0 comments on commit 65cef2a

Please sign in to comment.