Axis-Fi / axis-core

Axis Protocol
https://axis.finance
Other
6 stars 1 forks source link

EMPAM.settle fixes #63

Closed Oighty closed 5 months ago

Oighty commented 6 months ago

We recently found some edge cases with the settle logic. This branch implements updates to:

  1. Determine if a price between two bids can clear an auction before considering the next bid.
  2. Use bidID as a tie-breaker when more than one bid exists at the marginal price
  3. Handle case similar to 1, but when the next bid is below the marginal price
Oighty commented 6 months ago

See more refined updates in the SETTLE_LOGIC.md file.