Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect liquidity in new driver #428

Merged
merged 8 commits into from
Aug 10, 2022
Merged

Conversation

MartinquaXD
Copy link
Contributor

@MartinquaXD MartinquaXD commented Aug 9, 2022

This should mostly conclude step 6 in #337

This PR adds liquidity collection to the AuctionConverter in the new driver enabling the solvers to actually compute solutions.
Following steps were needed:

  • create LiquidityCollecting trait (for testing purposes)
  • add CLI arguments to new driver
  • increase the allowed payload size for /solve (auctions are quite big)

I was so far not able to get a solution which actually simulates. I will delay debugging that (if that was even caused by a bug in the new driver) to a follow up PR where I focus on logging errors with tenderly links like the current driver does it.

Test Plan

Added unit test for liquidity collection in AuctionConverter.

manual test piping a real auction to quasimodo through the new driver

During this test UniswapV3 liquidity was disabled because I was not sure if that might lead to problems in Quasimodo.
curl "https://api.cow.fi/mainnet/api/v1/auction" > current_auction; curl -X POST -H "Content-Type: application/json" -d @./current_auction localhost:8080/api/quasimodo/solve

yielded output:

2022-08-09T08:59:25.789Z ERROR request{id=10}:solver{name="quasimodo"}: driver::auction_converter: error normalizing limit order err=but_amount or sell_amount is 0
2022-08-09T08:59:25.790Z  INFO request{id=10}:solver{name="quasimodo"}: driver::auction_converter: got 13 orders orders=[Limit Order 0xc68315ab20b4b382fbd3ff49c59bfbd84c3b7c14e1de9a0c4b2fa4855a8bc7b4fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca962f50b60, Limit Order 0x11a5f436c93e1931c2ce46da6d5aa49721856f0dd8ecfa07f4001527ed4dec3bfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca962f50b60, Limit Order 0x4cb394ea56c8069eb6dd6106f1e751aa3e3233d2f2894ffbdafc878c64cad419937a0c4697e5551ba3a50f8beb279ed0a71d08b562f2224c, Limit Order 0xc250eecfc5d6d40aaaf75ca05c249677a3d817f95717262e90f5122ee5069b963cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, Limit Order 0x44248911e610cd5337aea6073e568e4b0e8b5fbec89840ed491960c24f3eee4c3cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, Limit Order 0xb7045247e9327d1160c2fbe2263814123ec319190d521040193eedab1e79fae2b00098ba6eedaed1d4ab31e7fa14cb969ccce65362f22233, Limit Order 0xff635534c66928ba13a5034bfcc6d7ea04de1d3d85b7d45e1c4f69ca0894df1a6880f5334158980ecfded17ae18b455efce1c0b562f22239, Limit Order 0x9a5190c30629422166997eee1acf61ac0dadb9b0adf5214a8dcf7e652099735a359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2f, Limit Order 0xbca6439b6ab8cabb4cf4e072eefa9bca9a631c8de5d8e22d452856ce9167999a359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2f, Limit Order 0x41630f68b96d1b6a7450608cac0940a304ab0375a59b37e2ec2fb93a1f9d644c359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2e, Limit Order 0x07f959904bb81686e6c9a9a47045d303ac8e2834f9b2a4fa4e94867553092635b0a9d7d6db9d58fd1cf528353a746d4b126c8b1362f22234, Limit Order 0x8fd32de5483ef4d582b2de0d620a3e969a6d86398c56866a07f40e89b6c91c183cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, Limit Order 0xcd0ddf2b266afbcd7fb176892cc2ecf0ded4b715403606a0c6ed85da4be3ffb40e7854240f7760b0af10619b689ef10631b636a762f228e0]
2022-08-09T08:59:26.427Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Querying 0x API: https://api.0x.org/orderbook/v1/orders?taker=0x0000000000000000000000000000000000000000&sender=0x0000000000000000000000000000000000000000&verifyingContract=0xdef1c0ded9bec7f1a1670819833240f027b25eff&page=1&perPage=1000
2022-08-09T08:59:26.428Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Querying 0x API: https://api.0x.org/orderbook/v1/orders?taker=0x0000000000000000000000000000000000000000&sender=0x9008d19f58aabd9ed0d60971565aa8510560ab41&verifyingContract=0xdef1c0ded9bec7f1a1670819833240f027b25eff&page=1&perPage=1000
2022-08-09T08:59:27.089Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Response from 0x API: {"total":0,"page":1,"perPage":1000,"records":[]}
2022-08-09T08:59:27.666Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Response from 0x API: {"total":3116,"page":1,"perPage":1000,"records":[omitted]}
2022-08-09T08:59:27.750Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Querying 0x API: https://api.0x.org/orderbook/v1/orders?taker=0x0000000000000000000000000000000000000000&sender=0x0000000000000000000000000000000000000000&verifyingContract=0xdef1c0ded9bec7f1a1670819833240f027b25eff&page=2&perPage=1000
2022-08-09T08:59:29.012Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Response from 0x API: {"total":3117,"page":2,"perPage":1000,"records":[omitted]}
2022-08-09T08:59:29.100Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Querying 0x API: https://api.0x.org/orderbook/v1/orders?taker=0x0000000000000000000000000000000000000000&sender=0x0000000000000000000000000000000000000000&verifyingContract=0xdef1c0ded9bec7f1a1670819833240f027b25eff&page=3&perPage=1000
2022-08-09T08:59:29.547Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Response from 0x API: {"total":3098,"page":3,"perPage":1000,"records":[omitted]}
2022-08-09T08:59:29.631Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Querying 0x API: https://api.0x.org/orderbook/v1/orders?taker=0x0000000000000000000000000000000000000000&sender=0x0000000000000000000000000000000000000000&verifyingContract=0xdef1c0ded9bec7f1a1670819833240f027b25eff&page=4&perPage=1000
2022-08-09T08:59:29.841Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::zeroex_api: Response from 0x API: {"total":3098,"page":4,"perPage":1000,"records":[omitted]}
2022-08-09T08:59:29.887Z DEBUG request{id=10}:solver{name="quasimodo"}: driver::auction_converter: estimated prices external_prices=ExternalPrices({0x2a54ba2964c8cd459dc568853f79813a60761b58: Ratio { numer: 279640983364671, denom: 500000000000000000 }, 0x3472a5a71965499acd81997a54bba8d852c6e53d: Ratio { numer: 2855399420951159, denom: 1000000000000000000 }, 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf: Ratio { numer: 357182183738529, denom: 200000000000000000 }, 0xdac17f958d2ee523a2206206994597c13d831ec7: Ratio { numer: 430518749182838177792, denom: 762939453125 }, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2: Ratio { numer: 1, denom: 1 }, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84: Ratio { numer: 1507807035789271, denom: 1562500000000000 }, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48: Ratio { numer: 86054666080831143936, denom: 152587890625 }, 0x853d955acef822db058eb8505911ed77f175b99e: Ratio { numer: 140971474107929, denom: 250000000000000000 }, 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab: Ratio { numer: 10369116048299, denom: 125000000000000000 }, 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee: Ratio { numer: 1, denom: 1 }, 0x6b175474e89094c44da98b954eedeac495271d0f: Ratio { numer: 112762363847007, denom: 200000000000000000 }})
2022-08-09T08:59:29.999Z DEBUG request{id=10}:solver{name="quasimodo"}: driver::auction_converter: solving with gas price of GasPrice1559 { base_fee_per_gas: 0.0, max_fee_per_gas: 8979839058.0, max_priority_fee_per_gas: 8979839058.0 }
2022-08-09T08:59:30.255Z DEBUG request{id=10}:solver{name="quasimodo"}: shared::http_solver: http solver instance name is 2022-08-09_08:59:30.255694_UTC_1_1_14979
2022-08-09T08:59:30.496Z DEBUG request{id=10}:solver{name="quasimodo"}: driver::commit_reveal: received solutions solutions=[Settlement { encoder: SettlementEncoder { tokens: [0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab], clearing_prices: {0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2: 1000000000000000000, 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab: 83699998879092}, order_trades: [OrderTrade { trade: Trade { order: Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:14.151226Z, owner: 0x0e7854240f7760b0af10619b689ef10631b636a7, uid: 0xcd0ddf2b266afbcd7fb176892cc2ecf0ded4b715403606a0c6ed85da4be3ffb40e7854240f7760b0af10619b689ef10631b636a762f228e0, available_balance: Some(200000000000000000), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 3527343295840539, is_liquidity_order: false }, data: OrderData { sell_token: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, buy_token: 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab, receiver: Some(0x0e7854240f7760b0af10619b689ef10631b636a7), sell_amount: 168252429845741086, buy_amount: 2000000000000000000000, valid_to: 1660037344, app_data: 0x22bba2ad8ea0c3032edce4390498463a1de76d9ae91b8080468c31f32f04d78c, fee_amount: 3086419753086419, kind: Buy, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: Eip712("0x81d09cf606104bf32addc34dac410b9a66551a898ab28dd39a6782439425e9ea55922ca7896fc7a954a51b2076d05ec804373080dd7b6cafa1cce9163346dec51b") }, sell_token_index: 0, executed_amount: 2000000000000000000000, scaled_unsubsidized_fee: 3527343295840539 }, buy_token_index: 1 }], liquidity_order_trades: [], execution_plan: [ZeroExInteraction { order: Order { chain_id: 1, expiry: 1660080152, fee_recipient: 0x86003b044f70dac0abc80ac8957305b6370893ed, maker: 0x34cae1d9e2d014b7b9e6295c66c554d7e79713d3, maker_amount: 249958689129995257283504, maker_token: 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab, pool: 0x0000000000000000000000000000000000000000000000000000000000000000, salt: 1659993752, sender: 0x0000000000000000000000000000000000000000, signature: ZeroExSignature { r: 0xf15ea4893f67ae6b2bfdd5ba61292a74d17761edaceba795260d58be3356ef5f, s: 0x249859543378e9a32ac3c642f6ae6846366df541b887513d0ed6e96c68f40a43, v: 27, signature_type: 3 }, taker: 0x0000000000000000000000000000000000000000, taker_amount: 20921542000000000000, taker_token: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, taker_token_fee_amount: 0, verifying_contract: 0xdef1c0ded9bec7f1a1670819833240f027b25eff }, taker_token_fill_amount: 167399997758184732, zeroex: IZeroEx(0xdef1c0ded9bec7f1a1670819833240f027b25eff) }], unwraps: [] } }]
2022-08-09T08:59:30.763Z DEBUG request{id=10}:solver{name="quasimodo"}: driver::commit_reveal: settlement rating yielded 0 successes and 1 errors
2022-08-09T08:59:30.765Z  WARN request{id=10}:solver{name="quasimodo"}: driver::api::solve: post_solve error err=Other(could not compute a valid solution) auction=Auction { block: 15307065, latest_settlement_block: 15307051, next_solver_competition: 14979, orders: [Order { metadata: OrderMetadata { creation_date: 2022-08-04T15:27:47.510396Z, owner: 0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9, uid: 0xc68315ab20b4b382fbd3ff49c59bfbd84c3b7c14e1de9a0c4b2fa4855a8bc7b4fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca962f50b60, available_balance: Some(190305082163142283773127), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 0, is_liquidity_order: true }, data: OrderData { sell_token: 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9), sell_amount: 95152330000000000000000, buy_amount: 335888000000, valid_to: 1660226400, app_data: 0x0000000000000000000000000000000000000000000000000000000000000000, fee_amount: 0, kind: Sell, partially_fillable: true, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-04T15:27:30.436052Z, owner: 0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9, uid: 0x11a5f436c93e1931c2ce46da6d5aa49721856f0dd8ecfa07f4001527ed4dec3bfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca962f50b60, available_balance: Some(190305082163142283773127), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 0, is_liquidity_order: true }, data: OrderData { sell_token: 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9), sell_amount: 95152330000000000000000, buy_amount: 321329000000, valid_to: 1660226400, app_data: 0x0000000000000000000000000000000000000000000000000000000000000000, fee_amount: 0, kind: Sell, partially_fillable: true, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-04T15:27:12.529440Z, owner: 0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9, uid: 0xdcb5921ee9cb5e3124e84c1c7ce0f24ec097ca86179704cfbebbc2c6eff00aa8fc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca962f50b60, available_balance: Some(190305082163142283773127), executed_buy_amount: 306676000015, executed_sell_amount: 95152329999999999986574, executed_sell_amount_before_fees: 95152329999999999986574, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 0, is_liquidity_order: true }, data: OrderData { sell_token: 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0xfc78f8e1af80a3bf5a1783bb59ed2d1b10f78ca9), sell_amount: 95152330000000000000000, buy_amount: 306676000000, valid_to: 1660226400, app_data: 0x0000000000000000000000000000000000000000000000000000000000000000, fee_amount: 0, kind: Sell, partially_fillable: true, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:01.533567Z, owner: 0x937a0c4697e5551ba3a50f8beb279ed0a71d08b5, uid: 0x4cb394ea56c8069eb6dd6106f1e751aa3e3233d2f2894ffbdafc878c64cad419937a0c4697e5551ba3a50f8beb279ed0a71d08b562f2224c, available_balance: Some(10954866266), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 7291043, is_liquidity_order: true }, data: OrderData { sell_token: 0xdac17f958d2ee523a2206206994597c13d831ec7, buy_token: 0x6b175474e89094c44da98b954eedeac495271d0f, receiver: Some(0x937a0c4697e5551ba3a50f8beb279ed0a71d08b5), sell_amount: 10948530432, buy_amount: 10955094853043200458752, valid_to: 1660035660, app_data: 0xdadada0000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5469568, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x4aaf925ca7b6395e613a24545b82ab29d0675730b7339a204052f9511358fc2d6d51e07cf25ca22c1392f02e181eae17242abda55f7461a6fc8066443cf06cdd1b") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:13.811228Z, owner: 0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8, uid: 0xc250eecfc5d6d40aaaf75ca05c249677a3d817f95717262e90f5122ee5069b963cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, available_balance: Some(15862076434142590334608), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 6389670816972652544, is_liquidity_order: true }, data: OrderData { sell_token: 0x2a54ba2964c8cd459dc568853f79813a60761b58, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8), sell_amount: 7000000000000000000000, buy_amount: 7049000000, valid_to: 1660035911, app_data: 0x0000000000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5518539728959382528, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x1aa3bb657d150f1402042a54f245ac0f6bd37758cd57aeb5be098049242b8f820d55e9174c15d9221fa724cde43c97c8d07de3af4f1a9ae7f9dc7aedaea87c1c1c") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:20.024550Z, owner: 0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8, uid: 0x44248911e610cd5337aea6073e568e4b0e8b5fbec89840ed491960c24f3eee4c3cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, available_balance: Some(52346870214107141909), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 3552436458705559, is_liquidity_order: true }, data: OrderData { sell_token: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, buy_token: 0xae7ab96520de3a18e5e111b5eaab095312d7fe84, receiver: Some(0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8), sell_amount: 10000000000000000000, buy_amount: 11111111111111110656, valid_to: 1660035911, app_data: 0x0000000000000000000000000000000000000000000000000000000000000ccc, fee_amount: 3086419753086419, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x9210624ffe84730d79c86601fc1eacb25a878220017cd4be078ccb44fa048f1d7cf8433d6a818bbc09da39e9c4514cad727a0f6e16469cde152cde5a480a89e41c") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:58:35.724359Z, owner: 0xb00098ba6eedaed1d4ab31e7fa14cb969ccce653, uid: 0xb7045247e9327d1160c2fbe2263814123ec319190d521040193eedab1e79fae2b00098ba6eedaed1d4ab31e7fa14cb969ccce65362f22233, available_balance: Some(15326559224369797870628), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 4821608758444649472, is_liquidity_order: true }, data: OrderData { sell_token: 0x6b175474e89094c44da98b954eedeac495271d0f, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0xb00098ba6eedaed1d4ab31e7fa14cb969ccce653), sell_amount: 15321079189281478641664, buy_amount: 15328084022, valid_to: 1660035635, app_data: 0xdadada0000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5472725088317896704, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x093e7193fcb08560d46eb8a39d201ebe4c636ea557afc61cd512fd3a09dad1e51d05c55ee07eecaa01ee40659ee5ddeb578af5dca4f97c45c38854ba4fa1ae251b") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:58:42.630951Z, owner: 0x6880f5334158980ecfded17ae18b455efce1c0b5, uid: 0xff635534c66928ba13a5034bfcc6d7ea04de1d3d85b7d45e1c4f69ca0894df1a6880f5334158980ecfded17ae18b455efce1c0b562f22239, available_balance: Some(10001104743872200575395), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 6736006143744568320, is_liquidity_order: true }, data: OrderData { sell_token: 0x853d955acef822db058eb8505911ed77f175b99e, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0x6880f5334158980ecfded17ae18b455efce1c0b5), sell_amount: 9995528597216507927552, buy_amount: 10001999552, valid_to: 1660035641, app_data: 0xdadada0000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5471402783492072448, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x77828fe76d3c720d56a1416857e2189621bd12e62572458779922719e4191c332bd713e0f7a12812699d915784db8544ab1724bbc19b3ab26d27dc747943e8601b") }, Order { metadata: OrderMetadata { creation_date: 2022-08-08T13:52:48.048303Z, owner: 0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6, uid: 0x9a5190c30629422166997eee1acf61ac0dadb9b0adf5214a8dcf7e652099735a359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2f, available_balance: Some(5325000000000000000000), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 3883889587255817728, is_liquidity_order: true }, data: OrderData { sell_token: 0x3472a5a71965499acd81997a54bba8d852c6e53d, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6), sell_amount: 1996458835641308226048, buy_amount: 11942600294, valid_to: 1661176367, app_data: 0x009ed88702d60a3132aabd826d5344234f39bd84313fd63ef2e0756e1264cda5, fee_amount: 3541164358691773952, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-08T13:52:47.394670Z, owner: 0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6, uid: 0xbca6439b6ab8cabb4cf4e072eefa9bca9a631c8de5d8e22d452856ce9167999a359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2f, available_balance: Some(5325000000000000000000), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 2063748663071000832, is_liquidity_order: true }, data: OrderData { sell_token: 0x3472a5a71965499acd81997a54bba8d852c6e53d, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6), sell_amount: 998882143973833927680, buy_amount: 5721119492, valid_to: 1661176367, app_data: 0x009ed88702d60a3132aabd826d5344234f39bd84313fd63ef2e0756e1264cda5, fee_amount: 1117856026166072320, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-08T13:52:46.605004Z, owner: 0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6, uid: 0x41630f68b96d1b6a7450608cac0940a304ab0375a59b37e2ec2fb93a1f9d644c359d3a470f56bf21efff36fdf5f178dbd0f75ec663038a2e, available_balance: Some(5325000000000000000000), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 3282665405292551680, is_liquidity_order: true }, data: OrderData { sell_token: 0x3472a5a71965499acd81997a54bba8d852c6e53d, buy_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, receiver: Some(0x359d3a470f56bf21efff36fdf5f178dbd0f75ec6), sell_amount: 997696805234671853056, buy_amount: 5477002336, valid_to: 1661176366, app_data: 0x009ed88702d60a3132aabd826d5344234f39bd84313fd63ef2e0756e1264cda5, fee_amount: 2303194765328146944, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: PreSign }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:58:37.240994Z, owner: 0xb0a9d7d6db9d58fd1cf528353a746d4b126c8b13, uid: 0x07f959904bb81686e6c9a9a47045d303ac8e2834f9b2a4fa4e94867553092635b0a9d7d6db9d58fd1cf528353a746d4b126c8b1362f22234, available_balance: Some(11072332489), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 8029861, is_liquidity_order: true }, data: OrderData { sell_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, buy_token: 0xdac17f958d2ee523a2206206994597c13d831ec7, receiver: Some(0xb0a9d7d6db9d58fd1cf528353a746d4b126c8b13), sell_amount: 11066527444, buy_amount: 11073106652, valid_to: 1660035636, app_data: 0xdadada0000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5472556, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x2af1fd45922d33214a4988aec9d5b48a9eead9b0d4b218cd2579e77fe69b10692465907352ae88bbc507dfd7ba13a25423f100e402fee933f81165ea26a0af5b1b") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:17.192958Z, owner: 0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8, uid: 0x8fd32de5483ef4d582b2de0d620a3e969a6d86398c56866a07f40e89b6c91c183cbc3bed185b837d79ba18d36a3859ecbcfc3dc862f22347, available_balance: Some(178445460593), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 10817905, is_liquidity_order: true }, data: OrderData { sell_token: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, buy_token: 0x2a54ba2964c8cd459dc568853f79813a60761b58, receiver: Some(0x3cbc3bed185b837d79ba18d36a3859ecbcfc3dc8), sell_amount: 7000000000, buy_amount: 7048999999999998689280, valid_to: 1660035911, app_data: 0x0000000000000000000000000000000000000000000000000000000000000ccc, fee_amount: 5472556, kind: Sell, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: EthSign("0x98a24c624541e289904c30aee975a6522d220e8f636961f333177a54b14fe74256ad452957301dcca97da4cf37a132b62d9fcc1c6d794263a65f2d2e26a5ac4d1c") }, Order { metadata: OrderMetadata { creation_date: 2022-08-09T08:59:14.151226Z, owner: 0x0e7854240f7760b0af10619b689ef10631b636a7, uid: 0xcd0ddf2b266afbcd7fb176892cc2ecf0ded4b715403606a0c6ed85da4be3ffb40e7854240f7760b0af10619b689ef10631b636a762f228e0, available_balance: Some(200000000000000000), executed_buy_amount: 0, executed_sell_amount: 0, executed_sell_amount_before_fees: 0, executed_fee_amount: 0, invalidated: false, status: Open, settlement_contract: 0x9008d19f58aabd9ed0d60971565aa8510560ab41, full_fee_amount: 3527343295840539, is_liquidity_order: false }, data: OrderData { sell_token: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, buy_token: 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab, receiver: Some(0x0e7854240f7760b0af10619b689ef10631b636a7), sell_amount: 168252429845741086, buy_amount: 2000000000000000000000, valid_to: 1660037344, app_data: 0x22bba2ad8ea0c3032edce4390498463a1de76d9ae91b8080468c31f32f04d78c, fee_amount: 3086419753086419, kind: Buy, partially_fillable: false, sell_token_balance: Erc20, buy_token_balance: Erc20 }, signature: Eip712("0x81d09cf606104bf32addc34dac410b9a66551a898ab28dd39a6782439425e9ea55922ca7896fc7a954a51b2076d05ec804373080dd7b6cafa1cce9163346dec51b") }], prices: {0x2a54ba2964c8cd459dc568853f79813a60761b58: 559281966729342, 0x3472a5a71965499acd81997a54bba8d852c6e53d: 2855399420951159, 0x6b175474e89094c44da98b954eedeac495271d0f: 563811819235035, 0x853d955acef822db058eb8505911ed77f175b99e: 563885896431716, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48: 563967859627334984898969600, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84: 964996502905133440, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2: 1000000000000000000, 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf: 1785910918692645, 0xdac17f958d2ee523a2206206994597c13d831ec7: 564289534928929656395530240, 0xdef1ca1fb7fbcdc777520aa7f396b4e015f497ab: 82952928386392} }
2022-08-09T08:59:30.780Z ERROR request{id=10}:solver{name="quasimodo"}: shared::api: internal server error error=could not compute a valid solution
2022-08-09T08:59:30.780Z  INFO request{id=10}: driver::api::request_summary: 127.0.0.1:65190 "POST /api/quasimodo/solve HTTP/1.1" 500 "-" "curl/7.79.1" 4.995305583s

@MartinquaXD MartinquaXD requested a review from a team as a code owner August 9, 2022 09:26
Base automatically changed from convert-auction to main August 9, 2022 10:13
@MartinquaXD MartinquaXD force-pushed the driver-liquidity-collection branch from c403f45 to cb029c5 Compare August 9, 2022 10:33
@codecov-commenter
Copy link

Codecov Report

Merging #428 (cb029c5) into main (a8f75dd) will decrease coverage by 0.28%.
The diff coverage is 34.35%.

@@            Coverage Diff             @@
##             main     #428      +/-   ##
==========================================
- Coverage   63.83%   63.54%   -0.29%     
==========================================
  Files         227      228       +1     
  Lines       43788    44232     +444     
==========================================
+ Hits        27950    28109     +159     
- Misses      15838    16123     +285     

@MartinquaXD MartinquaXD enabled auto-merge (squash) August 10, 2022 10:29
@MartinquaXD MartinquaXD merged commit 6c9e70a into main Aug 10, 2022
@MartinquaXD MartinquaXD deleted the driver-liquidity-collection branch August 10, 2022 10:32
@github-actions github-actions bot locked and limited conversation to collaborators Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants