Skip to content

Commit c4d7d15

Browse files
committed
fix: address 3 improved return value check
1 parent adf6944 commit c4d7d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contracts/extensions/static-a-token/ERC4626StataTokenUpgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ abstract contract ERC4626StataTokenUpgradeable is ERC4626Upgradeable, IERC4626St
180180
// return remaining supply cap margin
181181
uint256 currentSupply = (IAToken(reserveData.aTokenAddress).scaledTotalSupply() +
182182
reserveData.accruedToTreasury).mulDiv(_rate(), RAY, Math.Rounding.Ceil);
183-
return currentSupply > supplyCap ? 0 : supplyCap - currentSupply;
183+
return currentSupply >= supplyCap ? 0 : supplyCap - currentSupply;
184184
}
185185

186186
///@inheritdoc IERC4626StataToken

0 commit comments

Comments
 (0)