Summary
When a trade fails, no fees should be transferred to the protocol treasury. A regression test that records the treasury balance before a failed trade and asserts it is unchanged afterward confirms no partial fee transfer occurs on failure.
Scope
- add a regression test that records the protocol treasury balance before a trade that is expected to fail
- trigger the failing trade
- assert the treasury balance is identical after the failed call
Acceptance Criteria
- the treasury balance is unchanged after a failed trade
- the test covers at least one buy failure and one sell failure
- the assertion uses the read-only treasury address and balance check
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg
Summary
When a trade fails, no fees should be transferred to the protocol treasury. A regression test that records the treasury balance before a failed trade and asserts it is unchanged afterward confirms no partial fee transfer occurs on failure.
Scope
Acceptance Criteria
Contributor coordination: if you pick this up, reach out in Telegram for updates or clarification: https://t.me/accesslayerorg