Skip to content

Commit ff5147a

Browse files
authored
Adding mainstreet TVL adapter. (DefiLlama#14084)
1 parent 3492824 commit ff5147a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

projects/mainstreet/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
misrepresentedTokens: true,
3+
sonic: { tvl }
4+
}
5+
6+
async function tvl(api) {
7+
const supply = await api.call({ abi: 'uint256:totalSupply', target: '0xc2896AA335BA18556c09d6155Fac7D76A4578c5A' })
8+
api.addCGToken('sonic-bridged-usdc-e-sonic', supply / 1e18)
9+
}

0 commit comments

Comments
 (0)