Skip to content

Commit

Permalink
add usdx.money USDX (#11776)
Browse files Browse the repository at this point in the history
Co-authored-by: brucelsoon <[email protected]>
  • Loading branch information
brucelsoon and brucelsoon authored Oct 11, 2024
1 parent e5cefac commit 5f2f78d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions projects/usdx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const sdk = require("@defillama/sdk");
const usdxAddress = "0xf3527ef8dE265eAa3716FB312c12847bFBA66Cef";
const chains = ["ethereum", "bsc", "arbitrum"];

chains.forEach((chain) => {
module.exports[chain] = {
tvl: async (api, block) => {
const res = await sdk.api.erc20.totalSupply({
target: usdxAddress,
block,
chain: chain,
decimals: 18,
});
return {
"usdx-money-usdx": res.output,
};
},
};
});

0 comments on commit 5f2f78d

Please sign in to comment.