Skip to content

Conversation

@blockgroot
Copy link

No description provided.

Copy link
Contributor

@manoj9april manoj9april left a comment

Choose a reason for hiding this comment

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

Looks good.
Lets simulate and test once


// Calculate BNB amount based on snapshot exchange rate
// Exchange rate = totalBnbUndelegated / totalBnbxSupplyAtUndelegation
uint256 amountInBnb = (_amountInBnbX * totalBnbUndelegated) / totalBnbxSupplyAtUndelegation;
Copy link
Contributor

Choose a reason for hiding this comment

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

would abstract totalBnbUndelegated) / totalBnbxSupplyAtUndelegation; as snapshotEr.

Make this be returned when redemptionsenabled inside convertBnbxtobNb and the convertBNBtobnbx

Copy link
Author

Choose a reason for hiding this comment

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

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.

4 participants