Skip to content

script: verification of vault capacity migration#569

Merged
sander2 merged 1 commit intomasterfrom
scripts/verify-vault-capacity
Feb 22, 2023
Merged

script: verification of vault capacity migration#569
sander2 merged 1 commit intomasterfrom
scripts/verify-vault-capacity

Conversation

@sander2
Copy link
Copy Markdown
Member

@sander2 sander2 commented Feb 22, 2023

This script is quite ugly in places but I didn't want to spend time on making it prettier. Committing because it might be useful in hacking together future scripts

let n = JSON.stringify(vaultJSON.secureCollateralThreshold).includes("null");

let vaultId = vaultJSON.id;
let collateral = new BN((await apiAt.query.vaultStaking.totalCurrentStake(0, vaultId)).toString());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't see where the capacity pool stake is queried, is it this one?

Copy link
Copy Markdown
Member Author

@sander2 sander2 Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capacity pool stake is not queried at all. The script outputs the expected capacity stakes, and then you need to manually compare that to the migrated storage

@sander2 sander2 merged commit 416222c into master Feb 22, 2023
@peterslany peterslany deleted the scripts/verify-vault-capacity branch June 12, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants