Implemented batchMatchOrders

This commit is contained in:
James Towle
2019-06-24 14:44:35 -05:00
committed by Amir Bandeali
parent c61df50167
commit f289b3112b
3 changed files with 178 additions and 0 deletions

View File

@@ -24,6 +24,13 @@ import "@0x/contracts-utils/contracts/src/SafeMath.sol";
contract LibFillResults is
SafeMath
{
struct BatchMatchedFillResults {
FillResults[] left; // Fill results for left orders
FillResults[] right; // Fill results for right orders
uint256 profitInLeftMakerAsset; // Profit taken from left makers
uint256 profitInRightMakerAsset; // Profit taken from right makers
}
struct FillResults {
uint256 makerAssetFilledAmount; // Total amount of makerAsset(s) filled.
uint256 takerAssetFilledAmount; // Total amount of takerAsset(s) filled.