Skip to content

Conversation

@aalavandhan
Copy link
Member

@aalavandhan aalavandhan commented Jul 26, 2024

  • Fixed couple of minor bugs in the wampl-weth vault manager implementation. 1) Force rebalancing when limit ranges change. 2) Handling invalid oracle data, winding down to inf range. 3) Removing limit ranges completely instead of narrow/wide
  • Added a new auto manager for the SPOT-USDC charm vault. (mostly similar to wampl-weth, but adjusts liquidity based on SPOT's deviation from FMV)

@aalavandhan aalavandhan requested review from brandoniles and nms-7 July 26, 2024 20:41
@openzeppelin-code
Copy link

openzeppelin-code bot commented Jul 26, 2024

Charm Vault manager update

Generated at commit: 14aeb18e890a1b75dff27293e4fb88568b46e60a

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
0
0
0
3
23
26
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector


VAULT = vault_;
POOL = vault_.pool();
USDC = vault_.token0();
Copy link
Member

Choose a reason for hiding this comment

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

Probably better style to hardcode the expected token addresses, then do a require check on the vault properties on init.

Nothing inherently incorrect with this approach, provided we do a manual spot check on deployment.

Copy link
Member

@brandoniles brandoniles left a comment

Choose a reason for hiding this comment

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

LGTM, just the comment update and looks good

@aalavandhan aalavandhan merged commit 654ffc5 into main Aug 7, 2024
@aalavandhan aalavandhan deleted the vault-update branch August 7, 2024 13:36
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