Skip to content

Commit f5b23c4

Browse files
GhostOfMcAfeeGhostOfMcafee
andauthored
feat: add Tardly No Loss Lottery adapter (DefiLlama#14271)
Co-authored-by: GhostOfMcafee <[email protected]>
1 parent 6cce9ed commit f5b23c4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

projects/tardly/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { getAppGlobalState } = require('../helper/chain/algorand')
2+
const TardlyAppID = 2724605419
3+
4+
async function getStake() {
5+
const state = await getAppGlobalState(TardlyAppID)
6+
return {
7+
'algorand': state['staked'] / 1e6,
8+
}
9+
}
10+
11+
module.exports = {
12+
timetravel: false,
13+
methodology: 'Returns total amount staked in the Tardly No Loss Lottery.',
14+
algorand: {
15+
tvl: async () => {
16+
return getStake()
17+
},
18+
}
19+
}

0 commit comments

Comments
 (0)