Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collateral plugin integration tests #989

Merged
merged 10 commits into from
Nov 1, 2023
Merged

Conversation

tbrent
Copy link
Collaborator

@tbrent tbrent commented Oct 20, 2023

The wcUSDCv3 tests failed before I merged 3.0.1 in, as expected

@tbrent tbrent requested a review from pmckelvy1 October 20, 2023 23:11
const rTokenSetup: IRTokenSetup = {
assets: [],
primaryBasket: [collateral.address, pairedColl.address],
weights: [fp('0.5e-4'), fp('0.5e-4')],
Copy link
Collaborator

Choose a reason for hiding this comment

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

why e-4?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was a delicate balancing act trying to find the right RToken supply + basket weights that would work with all token decimals plus max holder balances from mainnet. This is what I found worked for all tokens. It took lots of trial and error.

@tbrent tbrent merged commit 7af3d31 into 3.1.0 Nov 1, 2023
9 checks passed
@tbrent tbrent deleted the collateral-integration-test branch November 1, 2023 16:34
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