The unstakeVested()
function handles both partial and full unstaking of vested tokens. However, if the function is called with a partial amount, it does not transfer the tokens back. The function only initiates a token transfer if it is fully unstaking vested tokens. This means that in the case of partial unstaking, the tokens remain locked within the contract.
suppose onSteamCanceled
is called by Sliber Contract and they choose less amount so inside of onStreamCancled
function _unstakeVested()
will be called
so because it does not fully amount to the unstakeVested
the function will not transfer any amount
FJO token can be locked in the contract
a mechanism should be added to the unstakeVested()
function that allows for the transfer of tokens even when the user is not fully unstaking.
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.