Skip to content

Commit ded0e58

Browse files
committed
fmt
1 parent 75a84e4 commit ded0e58

File tree

1 file changed

+33
-27
lines changed

1 file changed

+33
-27
lines changed

src/evm/tokens/mod.rs

+33-27
Original file line numberDiff line numberDiff line change
@@ -613,20 +613,22 @@ mod tests {
613613
// !!!!! Following Tests are for debugging purpose only !!!!!
614614
// #[test]
615615
// fn test_buy_single_hop() {
616-
// let token = EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").unwrap();
617-
// let amount = EVMU256::from_str("2000000000000000000").unwrap();
618-
// // dpr => weth
616+
// let token =
617+
// EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").
618+
// unwrap(); let amount =
619+
// EVMU256::from_str("2000000000000000000").unwrap(); // dpr => weth
619620
// trade("buy", token, amount, 1, 19044110, &EVMAddress::zero());
620621
// }
621622
//
622623
// const DPR_RICH: &str = "0x1959f0401e101620dd7e2ab5456f4b4a6e289aaf";
623624
//
624625
// #[test]
625626
// fn test_sell_single_hop() {
626-
// let token = EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").unwrap();
627-
// let amount = EVMU256::from_str("20000000000000000000000").unwrap();
628-
// // dpr => weth
629-
// trade(
627+
// let token =
628+
// EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").
629+
// unwrap(); let amount =
630+
// EVMU256::from_str("20000000000000000000000").unwrap(); // dpr =>
631+
// weth trade(
630632
// "sell",
631633
// token,
632634
// amount,
@@ -638,36 +640,40 @@ mod tests {
638640
//
639641
// #[test]
640642
// fn test_buy_two_hop() {
641-
// let token = EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").unwrap();
642-
// let amount = EVMU256::from_str("2000000000000000000").unwrap();
643-
// // dpr => usdc => weth
644-
// trade("buy", token, amount, 0, 19044110, &EVMAddress::zero());
645-
// }
643+
// let token =
644+
// EVMAddress::from_str("0xf3ae5d769e153ef72b4e3591ac004e89f48107a1").
645+
// unwrap(); let amount =
646+
// EVMU256::from_str("2000000000000000000").unwrap(); // dpr => usdc
647+
// => weth trade("buy", token, amount, 0, 19044110,
648+
// &EVMAddress::zero()); }
646649
//
647650
// // https://www.tdly.co/shared/simulation/c1d5d70f-8718-4740-961a-3f789a0834c1
648651
// #[test]
649652
// fn test_buy_one_hop_with_fee() {
650-
// let token = EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").unwrap();
651-
// let amount = EVMU256::from_str("2000000000000000000").unwrap();
652-
// // HarryPotterObamaSonic10Inu => weth
653-
// trade("buy", token, amount, 0, 19044110, &EVMAddress::zero());
654-
// }
653+
// let token =
654+
// EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").
655+
// unwrap(); let amount =
656+
// EVMU256::from_str("2000000000000000000").unwrap(); // HarryPotterObamaSonic10Inu
657+
// => weth trade("buy", token, amount, 0, 19044110,
658+
// &EVMAddress::zero()); }
655659
//
656660
// // https://www.tdly.co/shared/simulation/83d283d4-b367-4893-85a4-4af19fc9a80b
657661
// #[test]
658662
// fn test_buy_two_hop_with_fee() {
659-
// let token = EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").unwrap();
660-
// let amount = EVMU256::from_str("2000000000000000000").unwrap();
661-
// // HarryPotterObamaSonic10Inu => OSAK => weth
662-
// trade("buy", token, amount, 1, 19044110, &EVMAddress::zero());
663-
// }
663+
// let token =
664+
// EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").
665+
// unwrap(); let amount =
666+
// EVMU256::from_str("2000000000000000000").unwrap(); // HarryPotterObamaSonic10Inu
667+
// => OSAK => weth trade("buy", token, amount, 1, 19044110,
668+
// &EVMAddress::zero()); }
664669
//
665670
// #[test]
666671
// fn test_buy_three_hop_with_fee() {
667672
// // expected to fail
668-
// let token = EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").unwrap();
669-
// let amount = EVMU256::from_str("2000000000000000000").unwrap();
670-
// // HarryPotterObamaSonic10Inu => weth
671-
// trade("buy", token, amount, 2, 19044110, &EVMAddress::zero());
672-
// }
673+
// let token =
674+
// EVMAddress::from_str("0x72e4f9F808C49A2a61dE9C5896298920Dc4EEEa9").
675+
// unwrap(); let amount =
676+
// EVMU256::from_str("2000000000000000000").unwrap(); // HarryPotterObamaSonic10Inu
677+
// => weth trade("buy", token, amount, 2, 19044110,
678+
// &EVMAddress::zero()); }
673679
}

0 commit comments

Comments
 (0)