code-423n4 / 2022-01-livepeer-findings

0 stars 0 forks source link

wrong check #206

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

danb

Vulnerability details

https://github.com/livepeer/arbitrum-lpt-bridge/blob/main/contracts/L2/pool/DelegatorPool.sol#L60

require(
        claimedInitialStake < initialStake,
        "DelegatorPool#claim: FULLY_CLAIMED"
);

this check is wrong, it should be:

require(
        claimedInitialStake + _stake < initialStake,
        "DelegatorPool#claim: FULLY_CLAIMED"
);
yondonfu commented 2 years ago

Duplicate of https://github.com/code-423n4/2022-01-livepeer-findings/issues/190