vault deployment, query helper, bug fixes

This commit is contained in:
Tim Olson
2023-10-06 19:48:39 -04:00
parent 2925a1cc0c
commit 52069cfe0b
14 changed files with 215 additions and 36 deletions

29
test/TestOrder.sol Normal file
View File

@@ -0,0 +1,29 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
pragma abicoder v2;
import "./MockEnv.sol";
import "forge-std/Test.sol";
import "../src/Factory.sol";
contract TestOrder is MockEnv, Test {
Factory public factory;
Vault public vault;
// vault gets 100,000 COIN and 100,000 USD
function setUp() public {
factory = new Factory();
vault = Vault(factory.deployVault(address(this)));
uint256 coinAmount = 100_000 * 10 ** COIN.decimals();
COIN.mint(address(vault), coinAmount);
uint256 usdAmount = 100_000 * 10 ** USD.decimals();
USD.mint(address(vault), usdAmount);
}
function testOrder() public {
}
}