dexorder
This commit is contained in:
19
test/TestSinglePool.sol
Normal file
19
test/TestSinglePool.sol
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
pragma solidity 0.8.26;
|
||||
|
||||
import "@forge-std/console2.sol";
|
||||
import "@forge-std/Test.sol";
|
||||
import "./MockEnv.sol";
|
||||
|
||||
|
||||
contract TestSinglePool is MockEnv, Test {
|
||||
function setUp() public {
|
||||
initNoFees();
|
||||
}
|
||||
|
||||
function testSwap() public {
|
||||
COIN.mint(address(this), 1 * 10**18);
|
||||
uint256 usd = swap(COIN, USD, 1 * 10**18);
|
||||
console2.log(usd);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user