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

Fixed a redeem bug and added more Homa lite tests #1619

Merged
merged 7 commits into from
Nov 18, 2021
Merged

Conversation

syan095
Copy link
Contributor

@syan095 syan095 commented Nov 17, 2021

Fixed a bug where when redeeming with available staking balance the staking total is not updated
Refactored the code so all redeem logic shares the same code
Added a new mock that have no fees to test economic model
Added tests to ensure that when no fees are charged, the exchange rate says the same throughout all operations.
Modified RedeemRequested event to include the fee being charged.

Roy Yang added 4 commits November 16, 2021 18:32
…c model more easily for HomaLite

Added basic unit tests using the feeless mock.
…ailable-staking-balances

Added more tests and modified existing tests
@syan095 syan095 requested a review from xlc November 17, 2021 23:29
modules/homa-lite/src/lib.rs Show resolved Hide resolved
modules/homa-lite/src/lib.rs Outdated Show resolved Hide resolved
modules/homa-lite/src/lib.rs Outdated Show resolved Hide resolved
Roy Yang added 2 commits November 18, 2021 19:25
…alance, mint/adjust_available_staking_balance will not fail, and will skip the request instead

Added corresponding unit test.
@xlc xlc requested a review from wangjj9219 November 18, 2021 08:46
@xlc xlc merged commit 0319705 into master Nov 18, 2021
@xlc xlc deleted the homa-lite-add-tests branch November 18, 2021 20:34
syan095 pushed a commit that referenced this pull request Nov 20, 2021
…edeem-match

* origin/master:
  Add more test cases (#1620)
  bump (#1622)
  update protocolId and bootnode
  Fixed a redeem bug and added more Homa lite tests (#1619)
  Add module asset registry (#1598)
  MaxAuctions count to 50 (#1617)
  Cdp Treasury Bench update (#1609)
  Bump @openzeppelin/contracts from 4.3.2 to 4.3.3 in /ts-tests (#1612)

# Conflicts:
#	modules/homa-lite/src/lib.rs
#	modules/homa-lite/src/tests_no_fees.rs
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.

3 participants