Skip to content

Collateralization guardian tests#221

Merged
Joeysantoro merged 6 commits intofeat/v2-phase1-fixesfrom
feat/CR-Guardian-Tests
Oct 6, 2021
Merged

Collateralization guardian tests#221
Joeysantoro merged 6 commits intofeat/v2-phase1-fixesfrom
feat/CR-Guardian-Tests

Conversation

@Joeysantoro
Copy link
Contributor

No description provided.

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.

Looks good aside from a couple of things. I'd love to see a test that updates the cache 3-4 times in a row too though.

let guardianAddress: string;
let governorAddress: string;
let oracleWrapper: CollateralizationOracleWrapper;
let core: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

type this as Core

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Theres some issues with this because the helpers file doesn't use types. If you can make a PR to convert that we can start typing Core going forward. While you're at it try to remove dependencies on web3

@Joeysantoro
Copy link
Contributor Author

Looks good aside from a couple of things. I'd love to see a test that updates the cache 3-4 times in a row too though.

3-4 is overkill, added one with 2x

@Joeysantoro Joeysantoro merged commit fd32fc6 into feat/v2-phase1-fixes Oct 6, 2021
@Joeysantoro Joeysantoro deleted the feat/CR-Guardian-Tests branch October 12, 2021 05:20
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