Skip to content

Comments

FIP-10b - Curve deposit#137

Merged
Joeysantoro merged 18 commits intofei-protocol:feat/v2from
eswak:feature-curve-deposit
Sep 11, 2021
Merged

FIP-10b - Curve deposit#137
Joeysantoro merged 18 commits intofei-protocol:feat/v2from
eswak:feature-curve-deposit

Conversation

@eswak
Copy link
Contributor

@eswak eswak commented Aug 20, 2021

This proposal adds a new StableSwapOperatorV1 contract to the protocol.

It is a PCVDeposit used to manage liquidity in the Curve metapool [3crv, FEI]. No reweights, no FEI minting, and all state-changing functions are access-controlled. The idea is to reduce the attack surface in this first version, and keep it as simple as possible.

The assumption is that 50M DAI have been raised through the bonding curve deployed in FIP-10a, and that the protocol owns 50M DAI deposited in Compound.

Short term actions :

  • Discuss with the community whether all of the 50M DAI should be moved to the metapool
  • Possibly include the opening of a new DAI bonding curve in this same proposal, to get more DAI ?
  • In-depth review & audit of the StableSwapOperatorV1 @Joeysantoro

Copy link
Contributor

@Joeysantoro Joeysantoro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass only on the main solidity

eswak added 2 commits August 25, 2021 14:17
- _lpToWithdraw capped at the total balance of the pcv deposit
- Add Curve contracts in mainnetAddresses.json
- migrate withdraw/deposit tests to e2e.spec.ts
@Joeysantoro Joeysantoro changed the base branch from master to feat/v2 September 11, 2021 07:30
@Joeysantoro Joeysantoro merged commit b93d2e0 into fei-protocol:feat/v2 Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants