Skip to content

Add regression test for slippage protection on sell passing when proceeds equal min_proceeds exactly #500

Description

@Chucks1093

Summary

The sell slippage check should revert only when proceeds fall strictly below min_proceeds. When proceeds equal min_proceeds exactly the transaction must succeed. This boundary condition needs an explicit regression test mirroring the buy-side slippage boundary test.

Scope

  • Get the sell quote for a given supply and amount
  • Call sell with min_proceeds set to exactly the quoted proceeds
  • Assert the sell succeeds
  • Call sell with min_proceeds set to one stroop above the quoted proceeds
  • Assert the sell reverts with SlippageExceeded

Acceptance Criteria

  • Sell succeeds when min_proceeds equals actual proceeds exactly
  • Sell reverts when min_proceeds is one stroop above actual proceeds
  • No state change occurs after the revert

ETA: 12 hours


Coordinate on Telegram

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