Skip to content

Commit

Permalink
quote requests
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Aug 21, 2024
1 parent 9bc80c8 commit 66cfe8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/IIsmpModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ abstract contract BaseIsmpModule is IIsmpModule {

// @dev returns the quoted fee for a dispatch
function quote(DispatchPost memory post) internal view returns (uint256) {
return post.body.length * IIsmpHost(host()).perByteFee();
return post.fee + (post.body.length * IIsmpHost(host()).perByteFee());
}

// @dev returns the quoted fee for a dispatch
function quote(DispatchPostResponse memory res) internal view returns (uint256) {
return res.response.length * IIsmpHost(host()).perByteFee();
return post.fee + (res.response.length * IIsmpHost(host()).perByteFee());
}

// @dev returns the quoted fee for a dispatch
Expand Down

0 comments on commit 66cfe8c

Please sign in to comment.