Working base matcher.
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user