Working base matcher.

This commit is contained in:
2026-01-05 10:18:17 -06:00
parent 2e9b2c83de
commit e0f06f6980

View File

@ -148,6 +148,7 @@ async def take_spread_bet(
# Create transactions
creator_tx = Transaction(
user_id=bet.creator_id,
wallet_id=creator_wallet.id,
type=TransactionType.ESCROW_LOCK,
amount=-bet.stake_amount,
balance_after=creator_wallet.balance,
@ -157,6 +158,7 @@ async def take_spread_bet(
)
taker_tx = Transaction(
user_id=current_user.id,
wallet_id=taker_wallet.id,
type=TransactionType.ESCROW_LOCK,
amount=-bet.stake_amount,
balance_after=taker_wallet.balance,