Skip to content

Commit 37d15d8

Browse files
g1nt0kiBooyoun-Kim
andauthored
Goldstation (DefiLlama#12004)
Co-authored-by: Booyoun <[email protected]>
1 parent c96297b commit 37d15d8

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

projects/goldstation-dex/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { getUniTVL } = require('../helper/unknownTokens');
2+
const { sumTokensExport } = require('../helper/unwrapLPs');
3+
4+
module.exports = {
5+
misrepresentedTokens: true,
6+
klaytn: {
7+
tvl: getUniTVL({ factory: '0x347E5ce6764DF9DF85487BEA523D3e242762aE88', useDefaultCoreAssets: true }),
8+
staking: sumTokensExport({ tokensAndOwners: [
9+
['0x4836cc1f355bb2a61c210eaa0cd3f729160cd95e', '0x4d55B04AC52b2CA41ad04337FF13CbAefbdC8954'],
10+
]})
11+
}
12+
}
13+

projects/goldstation-rwa/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { sumUnknownTokens } = require('../helper/unknownTokens');
2+
3+
const GPC = '0x27397bfbefd58a437f2636f80a8e70cfc363d4ff';
4+
5+
async function tvl(api) {
6+
const supply = await api.call({ abi: 'erc20:totalSupply', target: GPC })
7+
api.add(GPC, supply)
8+
9+
const lps = ['0xCd13CD31fb61345Abe7B7376A4664784622817EE']
10+
return sumUnknownTokens({ api, lps, useDefaultCoreAssets: true })
11+
}
12+
13+
module.exports = {
14+
misrepresentedTokens: true,
15+
klaytn: {
16+
tvl,
17+
}
18+
}
19+

projects/goldstation-staking/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const klayStakingContract = '0x6569B14043c03537B5B125F5Ac5De3605a47dC76';
2+
3+
async function tvl(api) {
4+
const totalStaked = await api.call({ target: klayStakingContract, abi: "uint256:totalStaked", });
5+
api.addGasToken(totalStaked);
6+
}
7+
8+
module.exports = {
9+
klaytn: { tvl }
10+
}
11+

projects/helper/coreAssets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@
439439
},
440440
"klaytn": {
441441
"WKLAY": "0x57d1a61e4fd09fbf16e35b04959e94dcf2032974",
442+
"WKLAY_1": "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432",
442443
"BORA": "0x02cbe46fb8a1f579254a9b485788f2d86cad51aa",
443444
"DAI": "0xcb2c7998696ef7a582dfd0aafadcd008d03e791a",
444445
"USDC": "0x608792deb376cce1c9fa4d0e6b7b44f507cffa6a",

0 commit comments

Comments
 (0)