Skip to content

Commit

Permalink
fix: remove bonded CACAO from MAYAChain staking tvl (DefiLlama#8073)
Browse files Browse the repository at this point in the history
  • Loading branch information
zilayo authored Nov 14, 2023
1 parent fbdcddc commit e9636ff
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions projects/mayachain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,12 @@ async function tvl(_, _1, _2, { api }) {
}
}

async function staking() {
var res = await get("https://midgard.mayachain.info/v2/network");
const { totalActiveBond, totalStandbyBond } = res.bondMetrics;
return {
cacao: (Number(totalActiveBond) + Number(totalStandbyBond)) / 1e10,
};
}

module.exports = {
timetravel: false,
methodology:
"Counts bonded CACAO on Mayachain + assets locked in Asgard vaults on other chains + CACAO in LPs on Mayachain",
"Counts assets locked in Asgard vaults on other chains + CACAO in LPs on Mayachain",
mayachain: {
tvl,
staking,
},
};

Expand Down

0 comments on commit e9636ff

Please sign in to comment.