Boost _ Folks Finance 33787 - [Smart Contract - Low] Function PythNodeprocess doesnt handle correctl
Description
Vulnerability Details
int256 factor = PRECISION + pythData.expo;
uint256 price = factor > 0
? pythData.price.toUint256() * (10 ** factor.toUint256())
: pythData.price.toUint256() / (10 ** factor.toUint256()); function toUint256(int256 value) internal pure returns (uint256) {
if (value < 0) {
revert SafeCastOverflowedIntToUint(value);
}
return uint256(value);
}Impact Details
Proof of concept
POC
PreviousBoost _ Folks Finance 33780 - [Smart Contract - Critical] Zero deposits can be used to artificiallyNextBoost _ Folks Finance 33807 - [Smart Contract - Low] updateInterestRate uses incorrect reference of
Last updated
Was this helpful?