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

Trst m 14 #982

Merged
merged 13 commits into from
Oct 24, 2023
Merged

Trst m 14 #982

merged 13 commits into from
Oct 24, 2023

Conversation

tbrent
Copy link
Collaborator

@tbrent tbrent commented Oct 17, 2023

  • Move oracle timeout buffer into constructor of contract and out of deployment scripts
  • Change buffer from 60s to 300s
  • Kruft cleanup: delete curve/convex volatile collateral scripts

A lot of the test changes come from the fact that tests need to both be able to instantiate a new asset (use pre-buffer oracleTimeout) and also need to be able to fast-forward to the end of the oracleTimeout to cause an oracle to become stale. It would be nice to just always read this value off of an asset, but often we're fast forwarding outside of the context of any single asset.

@@ -3248,7 +3249,6 @@ describe(`Recollateralization - P${IMPLEMENTATION}`, () => {
collateral1.address,
collateral0.address,
issueAmount,
config.minTradeVolume,
Copy link
Collaborator

Choose a reason for hiding this comment

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

kind of worried about this change since the function is not edited in this pr, meaning there might have been something wrong with this test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lol looks like config.minTradeVolume was set to fp('1e-2') and config.maxTradeSlippage set to fp('0.01'), so we're all good here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I also confirmed by hand this test was running properly

@pmckelvy1
Copy link
Collaborator

lgtm

@tbrent tbrent merged commit c1e9f04 into 3.1.0 Oct 24, 2023
9 checks passed
@tbrent tbrent deleted the trst-m-14 branch October 24, 2023 00:50
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