Skip to content

Commit

Permalink
Add Réti open pooling protocol TVL calculation (#13226)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbennett authored Jan 24, 2025
1 parent 07cbe86 commit e92bbfd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions projects/reti-openpooling/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { getAppGlobalState } = require('../helper/chain/algorand')
const retiAppID = 2714516089

async function getStake () {
const state = await getAppGlobalState(retiAppID)
return {
'algorand': state['staked'] / 1e6,
}
}

module.exports = {
timetravel: false,
methodology: 'Returns total amount staked protocol-wide for the Réti open pooling protocol.',
algorand: {
tvl: async () => {
return getStake()
},
}
}

0 comments on commit e92bbfd

Please sign in to comment.