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

feat: swapper no-non-null-asserts #8919

Open
wants to merge 4 commits into
base: feat_non_null_assert_2
Choose a base branch
from

Conversation

gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Feb 21, 2025

Description

The same as before, but in swapper.
Note, this does not bring additional actual safety, only runtime safety against exceptions. We should probably do another pass after this gets merged, and convert the naive tackling
to a more carefully thought one, which instead of just ensuring crashes don't happen, allow sub-optimal user states not to happen, either.

Issue (if applicable)

relates to #8909

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Theoretically because it does bring safety. In effect, medium, touches all swapper.

Testing

  • Do a full e2e test of all swapper, including limit, which is swapper

Engineering

  • ^

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)
  • ^

Screenshots (if applicable)

E2E p1

https://jam.dev/c/f619e639-83e8-4093-b24f-efc2e2fe32b7

E2E p2

https://jam.dev/c/020681d2-4fa2-4347-ba53-b4ffe938e1e3

@gomesalexandre gomesalexandre changed the title [skip ci] wip: swapper no-non-null-asserts [skip ci] feat: swapper no-non-null-asserts Feb 21, 2025
@gomesalexandre gomesalexandre marked this pull request as ready for review February 21, 2025 15:03
@gomesalexandre gomesalexandre requested a review from a team as a code owner February 21, 2025 15:03
@gomesalexandre gomesalexandre changed the title [skip ci] feat: swapper no-non-null-asserts feat: swapper no-non-null-asserts Feb 25, 2025
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.

1 participant