remove _noTakerFee (i.e. disallow StaticCall takerFeeAssetData)
This commit is contained in:
@@ -319,7 +319,7 @@ blockchainTests('Forwarder integration tests', env => {
|
||||
const fillableOrder = await maker.signOrderAsync();
|
||||
await testFactory.marketSellTestAsync([cancelledOrder, fillableOrder], 1.5, { noopOrders: [0] });
|
||||
});
|
||||
for (const orderAssetData of ['makerAssetData', 'makerFeeAssetData', 'takerFeeAssetData']) {
|
||||
for (const orderAssetData of ['makerAssetData', 'makerFeeAssetData']) {
|
||||
it(`should fill an order with StaticCall ${orderAssetData} if the StaticCall succeeds`, async () => {
|
||||
const staticCallOrder = await maker.signOrderAsync({
|
||||
[orderAssetData]: staticCallSuccessAssetData,
|
||||
|
@@ -246,10 +246,7 @@ export class ForwarderTestFactory {
|
||||
const makerFeeFilled = takerAssetFilled.times(order.makerFee).dividedToIntegerBy(order.takerAssetAmount);
|
||||
makerFee = BigNumber.max(makerFee.minus(makerFeeFilled), 0);
|
||||
const takerFeeFilled = takerAssetFilled.times(order.takerFee).dividedToIntegerBy(order.takerAssetAmount);
|
||||
takerFee =
|
||||
hexUtils.slice(order.takerFeeAssetData, 0, 4) === AssetProxyId.StaticCall
|
||||
? constants.ZERO_AMOUNT
|
||||
: BigNumber.max(takerFee.minus(takerFeeFilled), 0);
|
||||
takerFee = BigNumber.max(takerFee.minus(takerFeeFilled), 0);
|
||||
|
||||
makerAssetAmount = makerAssetAmount.plus(bridgeExcessBuyAmount);
|
||||
let wethSpentAmount = takerAssetAmount.plus(DeploymentManager.protocolFee);
|
||||
|
Reference in New Issue
Block a user