Skip to content

Commit

Permalink
Fix fee
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniezka1927 committed Dec 2, 2024
1 parent e9957ef commit eb91572
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/eclipse/full_mainnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion data/eclipse/full_testnet.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eclipse/snap.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export NODE_OPTIONS="--max-old-space-size=8192"

npx tsx ./src/snap.ts
# npx tsx ./src/snap.ts
# npx tsx ./src/ticks.ts
# npx tsx ./src/pool_apy.ts
npx tsx ./src/full-snap.ts
3 changes: 2 additions & 1 deletion eclipse/src/full-snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ export const createSnapshotForNetwork = async (network: Network) => {
: 0,
tokenX: poolsDataObject[address].tokenX.toString(),
tokenY: poolsDataObject[address].tokenY.toString(),
fee: +printBN(poolsDataObject[address].fee, DECIMAL - 2),
// @ts-expect-error
fee: +printBN(poolsDataObject[address].fee.v, DECIMAL - 2),
apy: poolsApy[address]?.apy ?? 0,
poolAddress: new PublicKey(address).toString(),
liquidityX: lastSnapshot.liquidityX.usdValue24,
Expand Down

0 comments on commit eb91572

Please sign in to comment.