GMXOracle
oracle has a function getLpTokenAmount which is in scope. This is Used in keeper script to calculate how much LP tokens for given USD value.
This function returns the lpTokenAmount
with 30 decimal places instead of 18 as the function assumes.
Lets look at the function getLpTokenAmount
SAFE_MULTIPLIER is in 18 decimal places.
The values returned from the function _lpTokenValue
is in 18 decimal places. Refer the line
So the final returned value from the function getLpTokenAmount
is (1e30 * 1e18) / 1e18 = 1e30
Overestimating the lpToken amount for the given USD value.
Manual review.
Update the function getLpTokenAmount
as shown below.
Impact: Low This is a view function and the impact is very limited because there is no direct usage of this function in other functions.
Impact: Low This is a view function and the impact is very limited because there is no direct usage of this function in other functions.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.