Skip to content

Commit 713ab55

Browse files
committed
chore: documentation updates
1 parent 0695ac1 commit 713ab55

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/apps/polymer/IncentivizedPolymerEscrow.sol

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ import {
1212
IbcUniversalPacketReceiver
1313
} from "vibc-core-smart-contracts/IbcMiddleware.sol";
1414

15-
// This is an example contract which exposes an onReceive interface. This is for messaging protocols
16-
// where messages are delivered directly to the messaging protocol's contract rather than this contract.
17-
// Comments marked by * imply that an integration point should be changed by external contracts.
15+
/// @notice Polymer implementation of the Generalised Incentives based on vIBC.
1816
contract IncentivizedPolymerEscrow is IMETimeoutExtension, IbcMwUser {
1917
error NotEnoughGasProvidedForVerification();
2018
error NonVerifiableMessage();
@@ -58,6 +56,8 @@ contract IncentivizedPolymerEscrow is IMETimeoutExtension, IbcMwUser {
5856
);
5957
}
6058

59+
/// @notice This function is used to allow acks to be executed twice (if the first one ran out of gas)
60+
/// This is not intended to allow processPacket to work.
6161
function _verifyPacket(bytes calldata, /* _metadata */ bytes calldata _message)
6262
internal
6363
view
@@ -72,9 +72,7 @@ contract IncentivizedPolymerEscrow is IMETimeoutExtension, IbcMwUser {
7272
message_ = _message;
7373
}
7474

75-
/// @dev This is an example of how this function can be disabled.
76-
/// This doesn't have to be how it is done. This implementation works
77-
/// fine with and without (There is even a test for that).
75+
/// @dev Disable processPacket
7876
function processPacket(
7977
bytes calldata, /* messagingProtocolContext */
8078
bytes calldata, /* rawMessage */
@@ -108,7 +106,7 @@ contract IncentivizedPolymerEscrow is IMETimeoutExtension, IbcMwUser {
108106
return AckPacket({success: true, data: receiveAck});
109107
}
110108

111-
// The escrow manages acks, so any message can be directly provided to _onReceive.
109+
// The escrow manages acks, so any message can be directly provided to _handleAck.
112110
function onUniversalAcknowledgement(UniversalPacket calldata packet, AckPacket calldata ack) external onlyIbcMw {
113111
uint256 gasLimit = gasleft();
114112
bytes32 feeRecipitent = bytes32(uint256(uint160(tx.origin)));

0 commit comments

Comments
 (0)