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

hack3r-0m - Mispricing in issue and redeem during ongoing rebalance #58

Open
sherlock-admin2 opened this issue Oct 21, 2024 · 0 comments

Comments

@sherlock-admin2
Copy link

sherlock-admin2 commented Oct 21, 2024

hack3r-0m

Medium

Mispricing in issue and redeem during ongoing rebalance

Summary

when doing iterateRebalance, it can last over long period of time where instantaneous leverage is out of bounds of expected leverage.

When user mints or redeems set token, they are either paying and premium or receiving a discount due to position not being in ideal state and hence not accounting for cost to reach there (slippage, lever/delever fees, etc.)

Root Cause

  • issue and burn are allowed during iterateRebalance

Internal pre-conditions

  • IterateRebalance is ongoing when user is minting or redeeming

External pre-conditions

  • N/A

Attack Path

  • iterateRebalance followed by burn or mint

Impact

  • A user might be able to redeem at a premium price on set token temporarily
  • A user might be able to mint set token at discount temporarily

PoC

N/A

Mitigation

  • lock and unlock in setToken when iterate rebalance is in progress
  • any other mechanism which prevents minting from debt issuance module when rebalance is in progress
@sherlock-admin2 sherlock-admin2 changed the title Silly Slate Goblin - Mispricing in issue and redeem during ongoing rebalance hack3r-0m - Mispricing in issue and redeem during ongoing rebalance Oct 28, 2024
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

No branches or pull requests

1 participant