Skip to content

Add regression test for protocol treasury balance unchanged after failed trade #371

@Chucks1093

Description

@Chucks1093

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions