You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transfer rewards to a token account owned by program
ClaimRewards
arguments
reserve: Pubkey
reward_id: u64
Modifying existing instructions
Deposit, Repay, Borrow, WIthdraw, Liquidate now all affect rewards calculations, so reward variables have to be "refreshed" at the start of each instruction now.
I think easiest way is to modify _refresh_reserve_interest to also refresh the rewards
how to handle cases when the lm reward duration is finished? rewards can't accumulate forever. maybe best to have a cancelRewards function so the owner can withdraw
should we have a way to permissionlessly crank LM rewards? in case reward refreshing causes compute issues. Compute issues are scary because they can break liquidations.
The text was updated successfully, but these errors were encountered:
Instructions
New Instructions
AddLiquidityMiningRewards
arguments
behavior
ClaimRewards
arguments
Modifying existing instructions
Deposit, Repay, Borrow, WIthdraw, Liquidate now all affect rewards calculations, so reward variables have to be "refreshed" at the start of each instruction now.
I think easiest way is to modify _refresh_reserve_interest to also refresh the rewards
State
RewardInfo
Other considerations:
The text was updated successfully, but these errors were encountered: