Skip to content

[FIP-41] LUSD Auction#313

Merged
Joeysantoro merged 11 commits intodevelopfrom
feat/lusd-lbp
Nov 11, 2021
Merged

[FIP-41] LUSD Auction#313
Joeysantoro merged 11 commits intodevelopfrom
feat/lusd-lbp

Conversation

@eswak
Copy link
Contributor

@eswak eswak commented Nov 9, 2021

Auction 100M FEI for LUSD using a Balancer LBP, over 2 weeks.

Note: Fei Labs will spend 1,100,000 FEI to get LUSD, and send those to the swapper.
The DAO proposal includes a refund of this FEI.

Snapshot: https://snapshot.org/#/fei.eth/proposal/0x0e5f05a0c51938b904d9932849251ae920403b75301f90567da9d1ed857965c3

⚠️ I'm not 100% sure of the fLUSD-91 token address (0x5052BfbB7972E702179f3Eeed43B9213819b681a), to be confirmed with Liquity/Rari team.

This function does not have the afterTime modifier, and is governor only. This allows to start auctions from DAO proposals, without relying on external contracts to manage them.
xklob
xklob previously requested changes Nov 11, 2021
Copy link
Contributor

@xklob xklob left a comment

Choose a reason for hiding this comment

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

Overall it looks fine, but for a PR with potential impact of this magnitude, I'd like to specifically see some integration tests (even if they're throwaway-after-this-is-executed!) that test swaps after the PR executes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Comment is wrong

Copy link
Contributor

Choose a reason for hiding this comment

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

fixed

target: 'lusd',
values: '0',
method: 'transfer(address,uint256)',
arguments: ['{feiLusdLBPSwapper}', '1089000000000000000000000'],
Copy link
Contributor

Choose a reason for hiding this comment

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

we'll need to make sure we submit the dao-execute transaction via flashbots protect, or someone could grief this swap

},
ethers.constants.WeiPerEther.mul(200_000),
ethers.constants.WeiPerEther // huge deadline
);
Copy link
Contributor

Choose a reason for hiding this comment

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

would be good to check balances in between each swap. doesn't have to be exact, just asset that the balance of the swapped-in asset increases in the bool and the balance of the swapped-out asset decreases.

Copy link
Contributor

Choose a reason for hiding this comment

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

added test

@Joeysantoro Joeysantoro merged commit dcc4e07 into develop Nov 11, 2021
@Joeysantoro Joeysantoro deleted the feat/lusd-lbp branch November 11, 2021 19:49
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.

3 participants

Comments