Skip to content

Conversation

@ratik
Copy link
Collaborator

@ratik ratik commented Nov 19, 2025

No description provided.

@ratik ratik changed the base branch from main to v1 November 19, 2025 14:38
block.timestamp - lastUpdated < config.exchangeRateStalePeriod,
ExchangeRateStale()
);
uint256 maxBTCToMint = (amount * 1e18) / exchangeRate;

Choose a reason for hiding this comment

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

@ratik

The deposit() function doesn't normalize deposit amounts by token decimals before calculating mint amounts, which will cause massive over-minting when users deposit WBTC (8 decimals) or USDC (6 decimals).

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