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

Fix Multitoken VP to avoid overflow #2443

Merged
merged 4 commits into from
Jan 26, 2024
Merged

Fix Multitoken VP to avoid overflow #2443

merged 4 commits into from
Jan 26, 2024

Conversation

yito88
Copy link
Member

@yito88 yito88 commented Jan 25, 2024

Describe your changes

The diff had only I256 type, however, it could be an overflow because post and pre is Amount (U256).

Indicate on which release or other PRs this topic is based on

v0.30.1

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@yito88 yito88 changed the title Fix Multitoken VP to avoid underflow Fix Multitoken VP to avoid overflow Jan 25, 2024
@yito88 yito88 requested a review from Fraccaman January 25, 2024 13:27
@tzemanovic tzemanovic mentioned this pull request Jan 25, 2024
Fraccaman
Fraccaman previously approved these changes Jan 25, 2024
tzemanovic
tzemanovic previously approved these changes Jan 25, 2024
tzemanovic added a commit that referenced this pull request Jan 25, 2024
* yuji/fix-multitoken-vp:
  vp/multitoken: refactor maps and sets usage
  add changelog
  fix all tokens
  check diffs
tzemanovic added a commit that referenced this pull request Jan 25, 2024
* yuji/fix-multitoken-vp:
  vp/multitoken: refactor maps and sets usage
  add changelog
  fix all tokens
  check diffs
tzemanovic added a commit that referenced this pull request Jan 25, 2024
* yuji/fix-multitoken-vp:
  vp/multitoken: refactor maps and sets usage
  add changelog
  fix all tokens
  check diffs
@tzemanovic tzemanovic merged commit a2cf85f into main Jan 26, 2024
15 checks passed
@tzemanovic tzemanovic deleted the yuji/fix-multitoken-vp branch January 26, 2024 10:43
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