Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Jun 17, 2024
1 parent bb8c4d9 commit 2cf24c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/apps/layerzero/IncentivizedLayerZeroEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract ExecutorZero is ILayerZeroExecutor {
}

/**
* @title Incentivized LayerZero Messag Escrow
* @title Incentivized LayerZero Message Escrow
* @notice Provides an alternative pathway to incentivize LayerZero message relaying.
* While Layer Zero has a native way to incentivize message relaying, it lacks:
* - Gas refunds of unspent gas.
Expand Down Expand Up @@ -129,7 +129,7 @@ contract IncentivizedLayerZeroEscrow is IncentivizedMessageEscrow, ExecutorZero
* a new receiveLibrary. When they do this, they invalidate the previous receiveLibrary and
* any associated proofs. As a result, the owners of the endpoint can determine when and if
* proofs should be invalidated.
* On one hand, you could arguemt that this warrant a timeout of 0, since these messages could
* On one hand, you could argument that this warrant a timeout of 0, since these messages could
* be recovered and ordinary usage would imply unlimited. However, since the structure of
* LayerZero generally does not encorage 'recovery', it has been set to 30 days ≈ 1 month.
*/
Expand Down Expand Up @@ -172,11 +172,11 @@ contract IncentivizedLayerZeroEscrow is IncentivizedMessageEscrow, ExecutorZero

/**
* @notice Block any calls from the LZ endpoint so that no messages can ever get "verified" on the endpoint.
* This contract relies on a `verifiyable` call on the LZ receiveULN. In an ordinary config, when
* `verifiyable` returns true, the package state can progress by calling `commitVerification` and
* `verifiyable` switched from true to false. This breaks our flow. The LZ Endpoint calls `allowInitializePath`
* This contract relies on a `verifiable` call on the LZ receiveULN. In an ordinary config, when
* `verifiable` returns true, the package state can progress by calling `commitVerification` and
* `verifiable` switched from true to false. This breaks our flow. The LZ Endpoint calls `allowInitializePath`
* during this flow and this function is intended to break that.
* As a result, when `verifiyable` switches from false => true it cannot be switched true => false.
* As a result, when `verifiable` switches from false => true it cannot be switched true => false.
*/
function allowInitializePath(Origin calldata /* _origin */) external pure returns(bool) {
return false;
Expand Down Expand Up @@ -209,7 +209,7 @@ contract IncentivizedLayerZeroEscrow is IncentivizedMessageEscrow, ExecutorZero
*/
function estimateAdditionalCost(bytes32 destinationChainId) public view returns(address asset, uint256 amount) {
amount = _estimateAdditionalCost(uint32(uint256(destinationChainId)));
asset = address(0);
asset = address(0);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/apps/layerzero/interfaces/IUlnBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ struct UlnConfig {
uint8 requiredDVNCount; // 0 indicate DEFAULT, NIL_DVN_COUNT indicate NONE (to override the value of default)
uint8 optionalDVNCount; // 0 indicate DEFAULT, NIL_DVN_COUNT indicate NONE (to override the value of default)
uint8 optionalDVNThreshold; // (0, optionalDVNCount]
address[] requiredDVNs; // no duplicates. sorted an an ascending order. allowed overlap with optionalDVNs
address[] optionalDVNs; // no duplicates. sorted an an ascending order. allowed overlap with requiredDVNs
address[] requiredDVNs; // no duplicates. sorted in an ascending order. allowed overlap with optionalDVNs
address[] optionalDVNs; // no duplicates. sorted in an ascending order. allowed overlap with requiredDVNs
}

struct Verification {
Expand Down

0 comments on commit 2cf24c6

Please sign in to comment.