Skip to content

LBPSwapper deploy script#249

Merged
Joeysantoro merged 9 commits intodevelopfrom
feat/TribeBuybacks
Oct 18, 2021
Merged

LBPSwapper deploy script#249
Joeysantoro merged 9 commits intodevelopfrom
feat/TribeBuybacks

Conversation

@Joeysantoro
Copy link
Contributor

@Joeysantoro Joeysantoro commented Oct 17, 2021

This deploy script includes the DAO actions for fully setting up the automated TRIBE buyback flow

TODO:

  • Swap admin role?
  • Check if oracle in right direction
  • ORACLE_ADMIN role?
  • Update TRIBE amount for DAO action

5. Set ORACLE_ADMIN role to admin for CR Oracle
6. Set ORACLE_ADMIN role to admin for CR Oracle Wrapper
7. Grant Oracle Admin role to Collateralization Oracle Guardian
8. TODO ORACLE admin to OA ??
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to decide if we want OA to have admin powers on the oracles. It kind of makes sense because they may add new FEI deployments that need to be added

Copy link
Contributor

@xklob xklob Oct 17, 2021

Choose a reason for hiding this comment

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

@Joeysantoro what can oracle-admins affect, specifically, within the oracles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On CR Oracle admins can add/remove deposits and oracles
On CR Oracle Wrapper admins can set the deviation threshold and cache values

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems okay for now. We may want to discuss this more as a team since this is a lot of power.

const CR_KEEPER_INCENTIVE = ethers.constants.WeiPerEther.mul(1000); // 1000 FEI

// CR oracle guardian
const CR_GUARDIAN_FREQUENCY = 12 * 60 * 60; // 12 hours
Copy link
Contributor

Choose a reason for hiding this comment

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

nit but shouldn't this be period instead of frequency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shit

@xklob
Copy link
Contributor

xklob commented Oct 17, 2021

See comments. Don't have the energy to do a fully thorough review of the actual DAO commands and a fully-in-depth review of the rest of it, but will do so tomorrow.

xklob
xklob previously approved these changes Oct 17, 2021
@xklob
Copy link
Contributor

xklob commented Oct 17, 2021

Approved but what about the 3 remaining check marks @Joeysantoro ?

@Joeysantoro
Copy link
Contributor Author

Approved but what about the 3 remaining check marks @Joeysantoro ?

Fixed 2 of them and added integration tests. Lets discuss OA one as a team

xklob
xklob previously approved these changes Oct 18, 2021
@Joeysantoro Joeysantoro merged commit e0f5bd1 into develop Oct 18, 2021
@Joeysantoro Joeysantoro deleted the feat/TribeBuybacks branch October 18, 2021 02:15
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

Comments