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

Fei/Volt Swap #719

Merged
merged 11 commits into from
Apr 25, 2022
Merged

Fei/Volt Swap #719

merged 11 commits into from
Apr 25, 2022

Conversation

ElliotFriedman
Copy link
Contributor

@ElliotFriedman ElliotFriedman commented Apr 21, 2022

DAO Steps:

  1. Mint 10.17m FEI into the timelock
  2. Approve OTC escrow contract to spend 10.17m FEI
  3. Call swap on the escrow contract to send the 10.17m FEI
    to the VOLT PCV Deposit so that the funds do not get invested into fuse
  4. Add OPT as the oracle for Volt in the CR Oracle
  5. Add Volt ERC20PCVDepositWrapper to the CR Oracle so that the Volt value
    will be reflected in the PCV
  6. Add turboFusePCVDeposit as a safe address in the PCV Guardian

@ElliotFriedman ElliotFriedman requested a review from a team as a code owner April 21, 2022 15:55
Copy link
Contributor

@thomas-waite thomas-waite left a comment

Choose a reason for hiding this comment

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

Looks good to me, small points

proposals/dao/fip_98.ts Outdated Show resolved Hide resolved
protocol-configuration/mainnetAddresses.ts Outdated Show resolved Hide resolved
Comment on lines 1594 to 1598
voltFusePCVDeposit: {
artifactName: 'ERC20CompoundPCVDeposit',
address: '0xFeBDf448C8484834bb399d930d7E1bdC773E23bA',
category: AddressCategory.PCV
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Tbh I don't love the intermingling here. Lets think about having a parallel mainnetAddresses configuration in volt or even rewriting the proposal flow in forge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I already did a simulation in the volt repo with forge, but it's not the same thing as writing out the calldata steps here. https://github.com/volt-protocol/volt-protocol-core/pull/70/files

kryptoklob
kryptoklob previously approved these changes Apr 25, 2022
export const deploy: DeployUpgradeFunc = async (deployAddress, addresses, logging = false) => {
const TOKEN_DEPOSIT = process.env.TOKEN_DEPOSIT;
const TOKEN = process.env.TOKEN;
const IS_PROTOCOL_FEI_DEPOSIT =
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like adding new env vars that need to be set for deployment scripts that will be re-used; this is fine for now but in the future I want to move to hardhat tasks so that we can pass in these parameters via CLI.

@ElliotFriedman ElliotFriedman merged commit 90229b8 into develop Apr 25, 2022
@ElliotFriedman ElliotFriedman deleted the feat/volt-fei-swap branch April 25, 2022 23:22
Copy link
Contributor

@thomas-waite thomas-waite left a comment

Choose a reason for hiding this comment

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

Thanks for adding the TurboPCVDeposit to the Guardian for me

proposals/description/fip_98.ts Show resolved Hide resolved
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.

4 participants