-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use external prices for conversion of fees in autopilot (#2863)
# Description Related to discussion in the issue: #2862 (comment) Use external price vector to convert "fee in surplus token" into "fee in sell token" (instead of uniform clearing prices). This is important so that we make sure that it's always true: `total_fee = executed_surplus_fee + protocol fees` If we use uniform clearing prices for `executed_surplus_fee` and external prices for `protocol fees` I think above equation won't stand. ## How to test Existing unit test
- Loading branch information
Showing
3 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters