Skip to content

Commit 2b922a7

Browse files
Cattontechg1nt0ki
andauthored
Add Catton Adapter (DefiLlama#12394)
Co-authored-by: g1nt0ki <[email protected]>
1 parent 3527b18 commit 2b922a7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/catton/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { call, getJettonBalances, getTonBalance, sumTokens } = require("../helper/chain/ton");
2+
const { sleep } = require('../helper/utils')
3+
const ADDRESSES = require('../helper/coreAssets.json')
4+
5+
const TON_POOL_ADDRESS = "EQAze1aSZHY1yUGz1BFndH62k-VYpXYeDiYofCXTRZClF8Qr"
6+
const USD_POOL_ADDRESS = "EQBy7pjr6IBzqW8vuVCZ780evtnkiIF3jZSRRDxeqScfZoU9"
7+
const CTON_ADDRESS = "0:86cf8401d283627a87b58c367b440cad933ab8aa7b383419e8ff7d1a00c945f8"
8+
const CTUSDT_ADDRESS = "0:9fb449ce8fb43d0f682c713c01d9d8357c7cd0d4a49dd64dd585926990174a4e"
9+
const USDT_ADDRESS = "0:b113a994b5024a16719f69139328eb759596c38a25f59028b146fecdc3621dfe"
10+
11+
async function tvl(api) {
12+
return sumTokens({ owners: [TON_POOL_ADDRESS, USD_POOL_ADDRESS, "UQDFlyZ5zsWyowbZvZjZwIW_Vzm-1uvf8z_PUfvQtHrV14dp"], tokens: [ADDRESSES.null, USDT_ADDRESS], api, onlyWhitelistedTokens: true })
13+
}
14+
15+
module.exports = {
16+
methodology: 'Total amount of collateral locked in the Catton Protocol',
17+
timetravel: false,
18+
ton: {
19+
tvl
20+
}
21+
}

0 commit comments

Comments
 (0)