We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84830a7 commit 9b4a71fCopy full SHA for 9b4a71f
projects/interest-protocol-stable-swap/index.js
@@ -28,8 +28,8 @@ const tvl = async (api) => {
28
29
states.forEach((state) => {
30
state.fields.coins.forEach((typeName, index) => {
31
- const [package, module, otw] = typeName.fields.name.split('::')
32
- api.add(`${normalizeAddress(package)}::${module}::${otw}`, BigInt(state.fields.balances[index]) / POW_9);
+ const [pkg, module, otw] = typeName.fields.name.split('::')
+ api.add(`${normalizeAddress(pkg)}::${module}::${otw}`, BigInt(state.fields.balances[index]) / POW_9);
33
});
34
35
}
0 commit comments