Skip to content

Commit

Permalink
Merge pull request #4 from Zodomo/main
Browse files Browse the repository at this point in the history
  • Loading branch information
carmenjiawenc authored Dec 21, 2023
2 parents 98e006c + d035477 commit 22b76ed
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion oapp/test/TestHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,20 @@ contract TestHelper is Test, OptionsHelper {

uint256 public constant TREASURY_GAS_CAP = 1000000000000;
uint256 public constant TREASURY_GAS_FOR_FEE_CAP = 100000;

uint128 public executorValueCap = 0.1 ether;

function setUp() public virtual {}

/**
* @dev set executorValueCap if more than 0.1 ether is necessary
* @dev this must be called prior to setUpEndpoints() if the value is to be used
* @param _valueCap amount executor can pass as msg.value to lzReceive()
*/
function setExecutorValueCap(uint128 _valueCap) public {
executorValueCap = _valueCap;
}

/**
* @dev setup the endpoints
* @param _endpointNum num of endpoints
Expand Down Expand Up @@ -173,7 +184,7 @@ contract TestHelper is Test, OptionsHelper {
baseGas: 5000,
multiplierBps: 10000,
floorMarginUSD: 1e10,
nativeCap: 1 gwei
nativeCap: executorValueCap
});

uint128 denominator = priceFeed.getPriceRatioDenominator();
Expand Down

0 comments on commit 22b76ed

Please sign in to comment.