Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Jun 26, 2024
1 parent e2c4db9 commit f1587cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sql/orderbook/barn_order_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ select
cast(oq.buy_amount as numeric(78, 0)) :: text as quote_buy_amount,
oq.gas_amount * oq.gas_price as quote_gas_cost,
oq.sell_token_price as quote_sell_token_price,
opfp.partner_fee,
cast(coalesce(opfp.partner_fee, 0) as numeric(78, 0)) :: text as partner_fee,
opfp.partner_fee_recipient,
opfp.protocol_fee_kind
from
Expand Down
2 changes: 1 addition & 1 deletion src/sql/orderbook/prod_order_rewards.sql
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ select
cast(oq.buy_amount as numeric(78, 0)) :: text as quote_buy_amount,
oq.gas_amount * oq.gas_price as quote_gas_cost,
oq.sell_token_price as quote_sell_token_price,
opfp.partner_fee,
cast(coalesce(opfp.partner_fee, 0) as numeric(78, 0)) :: text as partner_fee,
opfp.partner_fee_recipient,
opfp.protocol_fee_kind
from
Expand Down
14 changes: 14 additions & 0 deletions tests/integration/test_fetch_orderbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ def test_get_order_rewards(self):
1.0,
1.0,
],
"partner_fee": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
],
"partner_fee_recipient": [
None,
None,
Expand Down Expand Up @@ -395,6 +404,11 @@ def test_get_order_rewards_with_integrator_fee(self):
0.000234609143374563,
0.000160802298220274,
],
"partner_fee": [
"346011",
"0",
"0",
],
"partner_fee_recipient": [
"0x9FA3c00a92Ec5f96B1Ad2527ab41B3932EFEDa58",
None,
Expand Down

0 comments on commit f1587cc

Please sign in to comment.