Description: We need a dedicated Staking contract where LPs can deposit their TradeFlow LP tokens to earn a secondary governance/reward token (FLOW) over time.
Context / Motivation: To bootstrap and retain deep liquidity, we must incentivize early adopters. A robust staking mechanism will lock in Total Value Locked (TVL) and distribute governance tokens fairly based on time and amount staked.
Acceptance Criteria: - [ ] Implement deposit and withdrawal mechanisms for LP tokens using the Soroban Token interface.
Description: We need a dedicated Staking contract where LPs can deposit their TradeFlow LP tokens to earn a secondary governance/reward token (FLOW) over time.
Context / Motivation: To bootstrap and retain deep liquidity, we must incentivize early adopters. A robust staking mechanism will lock in Total Value Locked (TVL) and distribute governance tokens fairly based on time and amount staked.
Acceptance Criteria: - [ ] Implement deposit and withdrawal mechanisms for LP tokens using the Soroban Token interface.
harvesttheir rewards without withdrawing their principal.Technical Pointers: Look into standard staking math (e.g., Synthetix's
rewardPerTokenStoredmodel). UseEnv::authorize_as_client()to ensure safe token transfers from the user.