Skip to content

Commit

Permalink
Merge pull request #311 from pods-finance/hotfix/call-immunefi-vulner…
Browse files Browse the repository at this point in the history
…ability

Removed strike asset from the Call option unmint interest calculation
  • Loading branch information
Robsonsjre committed Nov 1, 2021
2 parents f945434 + 93fa12a commit 1dd7bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/options/PodOption.sol
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ abstract contract PodOption is IPodOption, ERC20, RequiredDecimals, CappedOption
}
} else {
uint256 underlyingAssetDeposited = totalSupply();
uint256 currentUnderlyingAmount = underlyingReserves().add(strikeReserves().div(_strikePrice));
uint256 currentUnderlyingAmount = underlyingReserves();
uint256 totalInterest = 0;

if (currentUnderlyingAmount > underlyingAssetDeposited) {
Expand Down

0 comments on commit 1dd7bfe

Please sign in to comment.