Claim Float Tokens
Claiming Float tokens is done at the beginning of the SystemStateUpdated event handler if a flag is set. The flag will be set if an initial token stake, staked token withdraw, or staked token shift happened during the last event handler. The token claim is done in order to trigger a call to _calculateAccumulatedFloatAndExecuteOutstandingActions in the Staker contract. This will update the long and short userAmountStaked token amounts in that contract. It's important that this is done before the next step, Read Contract Data, so that the correct amounts are returned from that step.
Last updated