Skip to content

Commit

Permalink
docs: add natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Jan 14, 2024
1 parent b0df40d commit 1fb8b5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AvailBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,11 @@ contract AvailBridge is
return input.leafProof.verify(input.bridgeRoot, input.leafIndex, input.leaf);
}

/**
* @notice Returns the minimum fee for a given message length
* @param length Length of the message (in bytes)
* @return uint256 The minimum fee
*/
function getFee(uint256 length) public view returns (uint256) {
return length * feePerByte;
}
Expand Down

0 comments on commit 1fb8b5a

Please sign in to comment.