-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: thawing tokens #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Check that unit tests failed in GitHub Actions.
string internal _chainId2; | ||
uint256 internal _currentEpoch; | ||
uint256 internal _blockNumber; | ||
|
||
uint96 public currentNonce; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I purposely made all variables within IntegrationBase
internal
so they could be easily differentiated from the public
ones inherited from Deploy
(which account for all its variables).
uint256 _availableTokens = | ||
_provisionData.tokens > _provisionData.tokensThawing ? _provisionData.tokens - _provisionData.tokensThawing : 0; | ||
if (_amount > _availableTokens) revert HorizonAccountingExtension_InsufficientTokens(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I can't come up with a reason why tokensThawing
would ever be greater than tokens
, other than rounding issues.
@@ -49,6 +49,18 @@ contract IntegrationBondEscalation is IntegrationBase { | |||
// Do not pass the dispute deadline nor the tying buffer | |||
vm.warp(disputeDeadline); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cant find the inssuficientBondedTokens error in the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one!
🤖 Linear
Closes GRT-210