Problem
The liquidity pool has total_shares and total_deposits
but no mechanism to calculate the actual share price.
This breaks the yield mechanism entirely.
What To Build
- Add share price calculation
- Fix deposit() to issue shares at current price
- Fix withdraw() to calculate USDC from shares
- Add accumulate_interest()
Files To Touch
- contracts/liquidity-pool-contract/src/lib.rs
- contracts/liquidity-pool-contract/src/types.rs
- contracts/liquidity-pool-contract/src/storage.rs
- contracts/liquidity-pool-contract/src/tests.rs
Acceptance Criteria
Mandatory Checks Before PR
Problem
The liquidity pool has total_shares and total_deposits
but no mechanism to calculate the actual share price.
This breaks the yield mechanism entirely.
What To Build
Files To Touch
Acceptance Criteria
Mandatory Checks Before PR