@@ -75,7 +75,9 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
7575 bytes32 public identifier = "IS_ACROSS_V2_BUNDLE_VALID " ;
7676
7777 // Interest rate payment that scales the amount of pending fees per second paid to LPs. 0.0000015e18 will pay out
78- // the full amount of fees entitled to LPs in ~ 7.72 days, just over the standard L2 7 day liveness.
78+ // the full amount of fees entitled to LPs in ~ 7.72 days assuming no contract interactions. If someone interacts
79+ // with the contract then the LP rewards are smeared sublinearly over the window (i.e spread over the remaining
80+ // period for each interaction which approximates a decreasing exponential function).
7981 uint256 public lpFeeRatePerSecond = 1500000000000 ;
8082
8183 // Mapping of l1TokenAddress to cumulative unclaimed protocol tokens that can be sent to the protocolFeeCaptureAddress
@@ -560,7 +562,7 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
560562
561563 uint32 requestExpirationTimestamp = uint32 (getCurrentTime ()) + liveness;
562564
563- delete rootBundleProposal; // Only one bundle of roots can be executed at a time.
565+ delete rootBundleProposal; // Only one bundle of roots can be executed at a time. Delete the previous bundle.
564566
565567 rootBundleProposal.requestExpirationTimestamp = requestExpirationTimestamp;
566568 rootBundleProposal.unclaimedPoolRebalanceLeafCount = poolRebalanceLeafCount;
@@ -588,7 +590,6 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
588590 * from this contract to the SpokePool designated in the leaf, and will also publish relayer refund and slow
589591 * relay roots to the SpokePool on the network specified in the leaf.
590592 * @dev In some cases, will instruct spokePool to send funds back to L1.
591- * @notice Deletes the published root bundle if this is the last leaf to be executed in the root bundle.
592593 * @param chainId ChainId number of the target spoke pool on which the bundle is executed.
593594 * @param groupIndex If set to 0, then relay roots to SpokePool via cross chain bridge. Used by off-chain validator
594595 * to organize leaves with the same chain ID and also set which leaves should result in relayed messages.
@@ -794,7 +795,7 @@ contract HubPool is HubPoolInterface, Testable, Lockable, MultiCaller, Ownable {
794795 emit ProtocolFeesCapturedClaimed (l1Token, _unclaimedAccumulatedProtocolFees);
795796 }
796797
797- /**
798+ /**master
798799 * @notice Conveniently queries which destination token is mapped to the hash of an l1 token + destination chain ID.
799800 * @param destinationChainId Where destination token is deployed.
800801 * @param l1Token Ethereum version token.
0 commit comments