Skip to content

Commit 9b4a71f

Browse files
rename reserve word
1 parent 84830a7 commit 9b4a71f

File tree

1 file changed

+2
-2
lines changed
  • projects/interest-protocol-stable-swap

1 file changed

+2
-2
lines changed

projects/interest-protocol-stable-swap/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const tvl = async (api) => {
2828

2929
states.forEach((state) => {
3030
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);
31+
const [pkg, module, otw] = typeName.fields.name.split('::')
32+
api.add(`${normalizeAddress(pkg)}::${module}::${otw}`, BigInt(state.fields.balances[index]) / POW_9);
3333
});
3434
});
3535
}

0 commit comments

Comments
 (0)