Closed c4-submissions closed 12 months ago
https://github.com/GoodEntry-io/ge/blob/3b80be0e86e1c01cd85906e9892e06540e12a842/contracts/GeVault.sol#L452
To find a tick that's above price (ie its only underlying is the base token), getActiveTickIndex should not
getActiveTickIndex
if( (baseTokenIsToken0 && amt0 == 0) || (!baseTokenIsToken0 && amt0 == 0) ) return tickIndex;
it should
if( (baseTokenIsToken0 && amt1 == 0) || (!baseTokenIsToken0 && amt0 == 0) ) return tickIndex;
Context
gzeon-c4 marked the issue as duplicate of #43
gzeon-c4 changed the severity to 2 (Med Risk)
gzeon-c4 marked the issue as satisfactory
Lines of code
https://github.com/GoodEntry-io/ge/blob/3b80be0e86e1c01cd85906e9892e06540e12a842/contracts/GeVault.sol#L452
Vulnerability details
To find a tick that's above price (ie its only underlying is the base token),
getActiveTickIndex
should notit should
Assessed type
Context