Lucene search

K
code423n4Code4renaCODE423N4:2023-06-LYBRA-FINDINGS-ISSUES-962
HistoryJul 03, 2023 - 12:00 a.m.

maxSupply in esLBR.sol is wrong

2023-07-0300:00:00
Code4rena
github.com
3
eslbr.sol
maxsupply
hardcoded
vulnerability
documentation
mitigation

Lines of code

Vulnerability details

Impact

Proof of Concept

As mentioned in the docs in line 6 in esLBR.sol contract , the maximum supply will be 55 million .
<https://github.com/code-423n4/2023-06-lybra/blob/main/contracts/lybra/token/esLBR.sol#L6&gt;

    • The maximum amount that can be minted through the esLBRMinter contract is 55 million.

But the maximum supply is hardcoded 100 million in line 20 , which wrong according the docs provided <https://github.com/code-423n4/2023-06-lybra/blob/main/contracts/lybra/token/esLBR.sol#L20&gt;

uint256 maxSupply = 100_000_000 * 1e18;

Tools Used

Manual Review

Recommended Mitigation Steps

Rewrite it as below :
uint256 maxSupply = 55_000_000 * 1e18;

Assessed type

Context


The text was updated successfully, but these errors were encountered:

All reactions