Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions contracts/RelayerV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ contract RelayerV2 is ReentrancyGuard, OwnableUpgradeable, Proxied, ILayerZeroRe
}

function getFee(uint16 _dstChainId, uint16 _outboundProofType, address _userApplication, uint _payloadSize, bytes calldata _adapterParams) external view override returns (uint) {
require(_payloadSize <= 10000, "Relayer: _payloadSize tooooo big");
(uint basePrice, uint pricePerByte) = _getPrices(_dstChainId, _outboundProofType, _userApplication, _adapterParams);
return basePrice.add(_payloadSize.mul(pricePerByte));
}
Expand All @@ -148,7 +147,6 @@ contract RelayerV2 is ReentrancyGuard, OwnableUpgradeable, Proxied, ILayerZeroRe

function assignJob(uint16 _dstChainId, uint16 _outboundProofType, address _userApplication, uint _payloadSize, bytes calldata _adapterParams) external override returns (uint) {
require(msg.sender == address(uln), "Relayer: invalid uln");
require(_payloadSize <= 10000, "Relayer: _payloadSize tooooo big");
(uint basePrice, uint pricePerByte) = _getPrices(_dstChainId, _outboundProofType, _userApplication, _adapterParams);
uint totalFee = basePrice.add(_payloadSize.mul(pricePerByte));
emit AssignJob(totalFee);
Expand Down