Skip to content

Commit

Permalink
fix: added netspec
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSolDev committed Feb 20, 2025
1 parent fb17c3d commit 7b33f95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LPToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ contract LPToken is Initializable, OwnableUpgradeable, ILPToken {
/**
* @notice This function is called only by a stableSwap pool to decrease
* the total supply of LPToken by lost amount.
* @param _amount The amount of lost tokens.
* @param isBuffer The flag to indicate whether to use the buffer or not.
* @param withDebt The flag to indicate whether to add the lost amount to the buffer bad debt or not.
*/
function removeTotalSupply(uint256 _amount, bool isBuffer, bool withDebt) external {
require(pools[msg.sender], NoPool());

Check warning on line 392 in src/LPToken.sol

View workflow job for this annotation

GitHub Actions / lint

Use Custom Errors instead of require statements
Expand Down

0 comments on commit 7b33f95

Please sign in to comment.