- Replace
<RPC_URL>
in./utils/web3.js
with a valid RPC url - run
npm install
- run
node main.js
- output will be saved in:
seed-stalk-discrepancies.json
andseed-stalk-discrepancies.csv
-
deposits.js
-> Get all deposits from events and outputs indeposits/deposits-events.json
-
depositsOnChain.js
-> Get all deposits on-chain using all non-zero deposits determined indeposits.js
and outputs indeposits/deposits-onchain.json
-
checkDeposits.js
-> Check that the sum of all amounts in Deposits equals the total Deposited amount for each token -
stalkSeedsOnChain.js
-> Get the Stalk, Grown Stalk, Earned Stalk and Seeds for each account with at least 1 Deposit.countedStalk
andcountedSeeds
are the values that should be used to compare. Outputs instalkSeeds-onchain.json
-
calcStalkSeedDiscrencies.js
-> Compute the discrepancies between the Stalk/Seed on-chain balances and the computed Stalk/Seed balances