@0x/contracts-erc20-bridge-sampler
: Cache DevUtils
address in getOrderFillableTakerAssetAmounts
.
This commit is contained in:
parent
7775541eed
commit
36267746da
@ -93,6 +93,7 @@ contract ERC20BridgeSampler is
|
|||||||
returns (uint256[] memory orderFillableTakerAssetAmounts)
|
returns (uint256[] memory orderFillableTakerAssetAmounts)
|
||||||
{
|
{
|
||||||
orderFillableTakerAssetAmounts = new uint256[](orders.length);
|
orderFillableTakerAssetAmounts = new uint256[](orders.length);
|
||||||
|
address devUtilsAddress = _devUtilsAddress;
|
||||||
for (uint256 i = 0; i != orders.length; i++) {
|
for (uint256 i = 0; i != orders.length; i++) {
|
||||||
// Ignore orders with no signature or empty maker/taker amounts.
|
// Ignore orders with no signature or empty maker/taker amounts.
|
||||||
if (orderSignatures[i].length == 0 ||
|
if (orderSignatures[i].length == 0 ||
|
||||||
@ -103,11 +104,11 @@ contract ERC20BridgeSampler is
|
|||||||
}
|
}
|
||||||
// solhint-disable indent
|
// solhint-disable indent
|
||||||
(bool didSucceed, bytes memory resultData) =
|
(bool didSucceed, bytes memory resultData) =
|
||||||
_devUtilsAddress
|
devUtilsAddress
|
||||||
.staticcall
|
.staticcall
|
||||||
.gas(DEV_UTILS_CALL_GAS)
|
.gas(DEV_UTILS_CALL_GAS)
|
||||||
(abi.encodeWithSelector(
|
(abi.encodeWithSelector(
|
||||||
IDevUtils(_devUtilsAddress).getOrderRelevantState.selector,
|
IDevUtils(devUtilsAddress).getOrderRelevantState.selector,
|
||||||
orders[i],
|
orders[i],
|
||||||
orderSignatures[i]
|
orderSignatures[i]
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user