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

Test basket #35

Merged
merged 12 commits into from
Aug 12, 2021
Merged

Test basket #35

merged 12 commits into from
Aug 12, 2021

Conversation

julianmrodri
Copy link
Contributor

@julianmrodri julianmrodri commented Aug 11, 2021

PLEASE REVIEW:

  • Makes a change to leastAndMostCollateralized function to handle difference between balance and expected correctly, and scale it so division does not return always 0. (bal / expected)
  • Adds a getter for individual basket tokens in Rtoken
  • Adds initial tests for Basket library
  • Adds tests in RToken for basket setting/updates/validation
  • Adds some utility functions for fixed points/numbers.

It took me some time to grasp all the math and deal with lots of "conversion" issues, so please review carefully.

@julianmrodri julianmrodri merged commit 6e56c4a into master Aug 12, 2021
@julianmrodri julianmrodri deleted the test-basket branch August 12, 2021 18:29
jankjr added a commit that referenced this pull request Aug 16, 2023
tbrent added a commit that referenced this pull request Aug 22, 2023
…ult checks (#899)

Co-authored-by: Taylor Brent <taylor.w.brent@gmail.com>
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.

None yet

2 participants