Skip to content

fix(svm): use bytes32 for foreign amounts #1045

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

Merged
merged 4 commits into from
Jun 18, 2025

Conversation

Reinis-FRP
Copy link
Contributor

@Reinis-FRP Reinis-FRP commented Jun 11, 2025

Across on SVM should support foreign token amounts that could potentially not fit in the u64 type. This changes the type to [u8; 32] which would now apply to output_amount for deposits and input_amount for fills and slow fills. The proposed implementation uses these same raw values in event logs and it is expected that Across protocol UMIP would dictate to use big-endianess encoding for these types when matching deposits/fills on EVM chains.

Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
@Reinis-FRP Reinis-FRP marked this pull request as ready for review June 11, 2025 20:51
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
@Reinis-FRP Reinis-FRP changed the base branch from master to oz-review-june-25 June 18, 2025 08:30
@Reinis-FRP Reinis-FRP merged commit 9dbc340 into oz-review-june-25 Jun 18, 2025
17 checks passed
@Reinis-FRP Reinis-FRP deleted the reinis-frp/bytes32-amounts branch June 18, 2025 08:32
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