Descriptions:
Issue #9:
Developer Goal: Allow markets to be denominated in USDC, XLM, or any external SAC token.
Detailed Logic:
-
Storage: Update
Market to include token_address: Address.
-
Validation: In
place_bet, verify the token_address passed by the user matches the market's configured asset.
-
Precision Handling: Use
i128 for all math. Multiply by $10^{decimals}$ to maintain precision before dividing.
Verification Checklist:
Descriptions:
Issue #9:
Developer Goal: Allow markets to be denominated in USDC, XLM, or any external SAC token.
Detailed Logic:
Marketto includetoken_address: Address.place_bet, verify thetoken_addresspassed by the user matches the market's configured asset.i128for all math. Multiply byVerification Checklist:
USDC(6 decimals) and another withXLM(7 decimals).total_stakedcorrectly reflects the raw atomic amounts.git checkout -b features/issue-1-advanced-payout-rewardsdevelopbranch