Skip to content

Conversation

@PrathmeshRanjan
Copy link
Contributor

Removed unnecessary approval step before testing collateral deposit.

Since amountCollateral = 0, the moreThanZero modifier fails immediately, so:

  • The function never reaches the transferFrom() call
  • No token approval is needed because the transfer never happens
  • The revert occurs at the modifier level

Removed unnecessary approval step before testing collateral deposit.

Since amountCollateral = 0, the moreThanZero modifier fails immediately, so:

- The function never reaches the transferFrom() call
- No token approval is needed because the transfer never happens
- The revert occurs at the modifier level
@EngrPips
Copy link

EngrPips commented Oct 5, 2025

Hello @PrathmeshRanjan, Thanks for the contribution. This will be attended to appropriately as soon as possible.

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