Skip to content

Commit

Permalink
Update sip-2036.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleb-keny committed Oct 12, 2023
1 parent b9a3558 commit f3e5bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/sips/sip-2036.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `RewardsDistribution` contract currently ignores errors when it attempts to

<!--This is the problem statement. This is the *why* of the SIP. It should clearly explain *why* the current state of the protocol is inadequate. It is critical that you explain *why* the change is needed, if the SIP proposes changing how something is calculated, you must address *why* the current calculation is innaccurate or wrong. This is not the place to describe how the SIP will address the issue!-->

In reference to [SCCP-2051](https://sips.synthetix.io/sccp/sccp-2051), as can be seen in the [minting transaction](https://etherscan.io/tx/0x9db69f2f9d9782e003eae79da083088355d2729a123e3897bf5a3f1a46072832) the inflation destined for L2 were printed, but were never relayed over to optimism. This is because of a check by the optimism's [ResourceMetering.sol](https://github.com/ethereum-optimism/optimism/blob/ac2df11b30aca5cb95fc823ddc8966bd1a570c0e/packages/contracts-bedrock/src/L1/ResourceMetering.sol#L144) that asserts that a transaction exceeds a certain minimum, the minimum depends on the length of the contract call.
In reference to [SCCP-2051](https://sips.synthetix.io/sccp/sccp-2051), as can be seen in the [minting transaction](https://etherscan.io/tx/0x9db69f2f9d9782e003eae79da083088355d2729a123e3897bf5a3f1a46072832) the inflation destined for L2 were printed, but were never relayed over to optimism. This is because of a check by the optimism's [ResourceMetering.sol](https://github.com/ethereum-optimism/optimism/blob/ac2df11b30aca5cb95fc823ddc8966bd1a570c0e/packages/contracts-bedrock/src/L1/ResourceMetering.sol#L144) that asserts that a transaction's gas limit exceeds a minimum, the latter depends on the length of the contract call.

This SIP proposes to incorporate of a revert, that throws the entire minting transaction in case the distribution of rewards to L2 stakers fails. Hence, keeper would be incentivized to boost the gas limit to the point where the transaction doesn't revert in order to earn the subsidized 100 snx per week in keeping fee.

Expand Down

0 comments on commit f3e5bdd

Please sign in to comment.