-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: make fee collector open and competitive #12
base: main
Are you sure you want to change the base?
Conversation
05d7e48
to
8c726da
Compare
New fee collector implementation where anyone can make any calls from the collector in return for a specific amount of the fee token. Searchers can then compete to execute based on the current balance of tokens and the best route
8c726da
to
4409111
Compare
currently this is like $XYZ for the sum balance of all tokens on the fee collector |
9c7e13d
to
421cf9b
Compare
/// @dev as long as they pay `feeTokenAmount` per token taken to the `feeRecipient` | ||
/// this creates a competitive auction as the balances of this contract increase | ||
/// to find the optimal path for the swap | ||
function swapBalances(ERC20[] memory tokens, bytes calldata call) external { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems unnecessary to pass through this call info, why not just have a shared interface for the callback?
New fee collector implementation where anyone can make any calls from
the collector in return for a specific amount of the fee token.
Searchers can then compete to execute based on the current balance of
tokens and the best route