Skip to content
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

KeeperDAO Coordination facility for mStable AMM (0 Fees Swap for KeeperDAO keepers) #356

Open
dimsome opened this issue Apr 29, 2022 · 0 comments
Labels
contract Contract work help wanted Extra attention is needed

Comments

@dimsome
Copy link
Contributor

dimsome commented Apr 29, 2022

Is your feature request related to a problem? Please describe.
Allow KeeperDAO keepers to arbitrage the AMM (mAsset). In order to give KeeperDAO an edge and to allow them to reach arbitrage price first, set fees to 0 for KeeperDAO keepers. Only whitelisted keepers can call the special function to bypass the fee.

Describe the solution you'd like

  • Requires upgrading contracts
  • adjust swap, redeem, mint, or add one function to figure out the path callable only for Keeper to set swapFee = 0 and pass it to the Logic (Library Contract).
  • Add function to set a keeper
  • Add modifier/or check in the function to check for keeper
    MassetLogic library to allow accept the swapFee from the calling function

Relevant contracts:
mStable-contracts/Masset.sol at master · mstable/mStable-contracts · GitHub mStable-contracts/MassetLogic.sol at master · mstable/mStable-contracts · GitHub

Additional context
More info: https://forum.mstable.org/t/rfc-explore-a-keeperdao-coordination-facility-for-mstable-amm/798/9

Pass Criteria

  • Working contracts
  • Unit tests
  • Fork tests including the upgrade of contracts (Ethereum mainnet) and function testing.
@dimsome dimsome added the contract Contract work label Apr 29, 2022
@dimsome dimsome added the help wanted Extra attention is needed label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract Contract work help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant