Stake / Unstake Flow
Stake
Unstake
LT accounting on stake/unstake
From LT.vy (~lines 980–1012), transferring into/out of staker:
- Stake: increase
stakedby proportional value, increaseideal_stakedproportionally. - Unstake: decrease
stakedproportionally to shares removed;ideal_stakedadjusted in same ratio.