remove console logs
This commit is contained in:
parent
e5b5fbfc71
commit
07558de31c
|
@ -8,7 +8,6 @@ import "../../interfaces/relayer/IDeliveryProviderTyped.sol";
|
||||||
import "../../interfaces/relayer/TypedUnits.sol";
|
import "../../interfaces/relayer/TypedUnits.sol";
|
||||||
import "../../libraries/relayer/ExecutionParameters.sol";
|
import "../../libraries/relayer/ExecutionParameters.sol";
|
||||||
import {IWormhole} from "../../interfaces/IWormhole.sol";
|
import {IWormhole} from "../../interfaces/IWormhole.sol";
|
||||||
import "forge-std/console.sol";
|
|
||||||
|
|
||||||
contract DeliveryProvider is DeliveryProviderGovernance, IDeliveryProvider {
|
contract DeliveryProvider is DeliveryProviderGovernance, IDeliveryProvider {
|
||||||
using WeiLib for Wei;
|
using WeiLib for Wei;
|
||||||
|
@ -38,8 +37,6 @@ contract DeliveryProvider is DeliveryProviderGovernance, IDeliveryProvider {
|
||||||
LocalNative costIfFullGasLimitUsed = quoteGasCost(targetChain, gasLimit);
|
LocalNative costIfFullGasLimitUsed = quoteGasCost(targetChain, gasLimit);
|
||||||
LocalNative receiverValueCost = quoteAssetCost(targetChain, receiverValue);
|
LocalNative receiverValueCost = quoteAssetCost(targetChain, receiverValue);
|
||||||
nativePriceQuote = quoteDeliveryOverhead(targetChain) + costIfFullGasLimitUsed + receiverValueCost;
|
nativePriceQuote = quoteDeliveryOverhead(targetChain) + costIfFullGasLimitUsed + receiverValueCost;
|
||||||
console.log(costIfNoGasLimitUsed.unwrap());
|
|
||||||
console.log(costIfFullGasLimitUsed.unwrap());
|
|
||||||
require(costIfNoGasLimitUsed.unwrap() <= costIfFullGasLimitUsed.unwrap(), "target chain refund per gas unused is too high");
|
require(costIfNoGasLimitUsed.unwrap() <= costIfFullGasLimitUsed.unwrap(), "target chain refund per gas unused is too high");
|
||||||
require(targetCostIfNoGasLimitUsed.unwrap() <= targetCostIfFullGasLimitUsed.unwrap(), "target chain refund per gas unused is too high");
|
require(targetCostIfNoGasLimitUsed.unwrap() <= targetCostIfFullGasLimitUsed.unwrap(), "target chain refund per gas unused is too high");
|
||||||
require(
|
require(
|
||||||
|
|
|
@ -308,8 +308,6 @@ contract TestDeliveryProvider is Test {
|
||||||
uint256(dstNativeCurrencyPrice) * (uint256(dstGasPrice) * gasOverhead) + (srcNativeCurrencyPrice - 1)
|
uint256(dstNativeCurrencyPrice) * (uint256(dstGasPrice) * gasOverhead) + (srcNativeCurrencyPrice - 1)
|
||||||
) / srcNativeCurrencyPrice;
|
) / srcNativeCurrencyPrice;
|
||||||
|
|
||||||
console.log(expectedOverhead);
|
|
||||||
|
|
||||||
LocalNative deliveryOverhead = deliveryProvider.quoteDeliveryOverhead(dstChainId);
|
LocalNative deliveryOverhead = deliveryProvider.quoteDeliveryOverhead(dstChainId);
|
||||||
|
|
||||||
require(expectedOverhead == LocalNative.unwrap(deliveryOverhead), "deliveryProvider overhead quote is not what is expected");
|
require(expectedOverhead == LocalNative.unwrap(deliveryOverhead), "deliveryProvider overhead quote is not what is expected");
|
||||||
|
|
Loading…
Reference in New Issue