Skip to content

Commit cc10dde

Browse files
Added xu3o8 project. (DefiLlama#14243)
1 parent f86b8b4 commit cc10dde

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

projects/uranium.io/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const BigNumber = require("bignumber.js");
2+
const XU3O8_CONTRACT = '0x79052Ab3C166D4899a1e0DD033aC3b379AF0B1fD';
3+
4+
async function tvl(api) {
5+
6+
const [totalSupply] = await Promise.all([
7+
api.call({ abi: "uint256:totalSupply", target: XU3O8_CONTRACT }),
8+
]);
9+
10+
const value = parseInt(totalSupply)
11+
api.add(XU3O8_CONTRACT, value)
12+
}
13+
14+
module.exports = {
15+
methodology: 'Counts the balance of tokens in the XU3O8 contract',
16+
etlk: {
17+
tvl,
18+
},
19+
};

0 commit comments

Comments
 (0)