Publish (#296)
- @0x/contracts-integrations@2.7.60 - @0x/asset-swapper@16.23.0 Co-authored-by: Github Actions <github-actions@github.com>
This commit is contained in:
		@@ -1,4 +1,13 @@
 | 
				
			|||||||
[
 | 
					[
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        "version": "16.23.1",
 | 
				
			||||||
 | 
					        "changes": [
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                "note": "Fix fill amount rounding error when covnerting fills to orders.",
 | 
				
			||||||
 | 
					                "pr": 296
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        ]
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        "version": "16.23.0",
 | 
					        "version": "16.23.0",
 | 
				
			||||||
        "changes": [
 | 
					        "changes": [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -480,9 +480,9 @@ export const BRIDGE_ENCODERS: {
 | 
				
			|||||||
function getFillTokenAmounts(fill: CollapsedFill, side: MarketOperation): [BigNumber, BigNumber] {
 | 
					function getFillTokenAmounts(fill: CollapsedFill, side: MarketOperation): [BigNumber, BigNumber] {
 | 
				
			||||||
    return [
 | 
					    return [
 | 
				
			||||||
        // Maker asset amount.
 | 
					        // Maker asset amount.
 | 
				
			||||||
        side === MarketOperation.Sell ? fill.output : fill.input,
 | 
					        side === MarketOperation.Sell ? fill.output.integerValue(BigNumber.ROUND_DOWN) : fill.input,
 | 
				
			||||||
        // Taker asset amount.
 | 
					        // Taker asset amount.
 | 
				
			||||||
        side === MarketOperation.Sell ? fill.input : fill.output,
 | 
					        side === MarketOperation.Sell ? fill.input : fill.output.integerValue(BigNumber.ROUND_UP),
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user