diff --git a/projects/chateau/index.js b/projects/chateau/index.js new file mode 100644 index 0000000000..0a13a70f01 --- /dev/null +++ b/projects/chateau/index.js @@ -0,0 +1,13 @@ +module.exports = { + methodology: + "chUSD TVL is tracked via totalSupply().", + plasma: { + tvl: async (api) => { + const rawSupply = await api.call({ + target: '0x22222215d4Edc5510d23D0886133E7eCE7f5fdC1', + abi: "erc20:totalSupply" + }); + api.addCGToken("usd-coin", rawSupply / 1e18); + }, + }, +}; \ No newline at end of file