orderlib uses reverts instead of returned errors; Dexorder.sol

This commit is contained in:
Tim Olson
2023-10-18 16:18:14 -04:00
parent 7c79e9f98e
commit 510aede125
7 changed files with 90 additions and 72 deletions

View File

@@ -10,6 +10,8 @@ import "forge-std/console2.sol";
contract Vault {
// represents the interests of its owner client
using OrderLib for OrderLib.OrdersInfo;
uint8 public immutable version;
@@ -67,9 +69,8 @@ contract Vault {
}
function execute(uint64 orderIndex, uint8 tranche_index, OrderLib.PriceProof memory proof) public
returns (string memory error)
{
return orderList.execute(orderIndex, tranche_index, proof);
orderList.execute(owner, orderIndex, tranche_index, proof);
}
modifier onlyOwner() {