Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sunce86 committed Apr 2, 2024
1 parent 0c95ee7 commit 1212696
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/tests/balancer/market_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ async fn sell() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -243,7 +242,6 @@ async fn buy() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "1000000000000000000",
"buyAmount": "100000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/balancer/not_found.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ async fn test() {
"buyToken": "0x2222222222222222222222222222222222222222",
"sellAmount": "1000000000000000000",
"buyAmount": "1000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/balancer/out_of_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ async fn sell() {
"sellAmount": "1000000000000000000",
// Way too much...
"buyAmount": "1000000000000000000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -167,7 +166,6 @@ async fn buy() {
// Way too little...
"sellAmount": "1",
"buyAmount": "100000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
6 changes: 0 additions & 6 deletions src/tests/dex/partial_fill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ endpoint = 'http://{}/sor'
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "16000000000000000000",
"buyAmount": "3630944624685908136768",
"feeAmount": "0",
"kind": "sell",
"partiallyFillable": true,
"class": "limit",
Expand Down Expand Up @@ -367,8 +366,6 @@ async fn tested_amounts_wrap_around() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "60000000000000000",
"buyAmount": "16000000000000000000",
// Let's just assume 0 fee to not further complicate the math.
"feeAmount": "0",
"kind": "buy",
"partiallyFillable": true,
"class": "limit",
Expand Down Expand Up @@ -506,7 +503,6 @@ endpoint = 'http://{}/sor'
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "2000000000000000000",
"buyAmount": "1",
"feeAmount": "0",
"kind": "sell",
"partiallyFillable": true,
"class": "limit",
Expand Down Expand Up @@ -684,7 +680,6 @@ async fn insufficient_room_for_surplus_fee() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "1000000000000000000",
"buyAmount": "227598784442065388110",
"feeAmount": "10000000000000000",
"kind": "sell",
"partiallyFillable": true,
"class": "limit",
Expand Down Expand Up @@ -790,7 +785,6 @@ async fn market() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "1000000000000000000",
"buyAmount": "227598784442065388110",
"feeAmount": "10000000000000000",
"kind": "sell",
"partiallyFillable": true,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/dex/wrong_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ async fn test() {
"buyToken": "0xba100000625a3754423978a60c9317c58a424e3D",
"sellAmount": "1000000000000000000",
"buyAmount": "227598784442065388110",
"feeAmount": "10000000000000000",
"kind": side,
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/oneinch/market_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ async fn sell() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -296,7 +295,6 @@ async fn buy_not_supported() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/oneinch/not_found.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ async fn test() {
"buyToken": "0x2222222222222222222222222222222222222222",
"sellAmount": "1000000000000000000",
"buyAmount": "1000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/oneinch/out_of_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ async fn sell() {
"sellAmount": "1000000000000000000",
// Way too much...
"buyAmount": "1000000000000000000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/paraswap/market_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ async fn sell() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -444,7 +443,6 @@ async fn buy() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "200000000000000000",
"buyAmount": "1000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/paraswap/not_found.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ async fn test() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/paraswap/out_of_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ async fn sell() {
"sellAmount": "1000000000000000000",
// Way too much...
"buyAmount": "1000000000000000000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -391,7 +390,6 @@ async fn buy() {
// Way too little...
"sellAmount": "1",
"buyAmount": "1000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/zeroex/market_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ async fn sell() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "200000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -311,7 +310,6 @@ async fn buy() {
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "200000000000000000",
"buyAmount": "1000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/zeroex/not_found.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ async fn test() {
"buyToken": "0x2222222222222222222222222222222222222222",
"sellAmount": "1000000000000000000",
"buyAmount": "1000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
1 change: 0 additions & 1 deletion src/tests/zeroex/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ enable-slippage-protection = true
"buyToken": "0xe41d2489571d322189246dafa5ebde1f4699f498",
"sellAmount": "1000000000000000000",
"buyAmount": "5000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down
2 changes: 0 additions & 2 deletions src/tests/zeroex/out_of_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ async fn sell() {
"sellAmount": "1000000000000000000",
// Way too much...
"buyAmount": "1000000000000000000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "sell",
"partiallyFillable": false,
"class": "market",
Expand Down Expand Up @@ -229,7 +228,6 @@ async fn buy() {
// Way too little...
"sellAmount": "1",
"buyAmount": "1000000000000000000000",
"feeAmount": "1000000000000000",
"kind": "buy",
"partiallyFillable": false,
"class": "market",
Expand Down

0 comments on commit 1212696

Please sign in to comment.