• Mark Tyneway's avatar
    contracts-bedrock: seize and split gas management · 4440ecbf
    Mark Tyneway authored
    Ensure that a constant amount of gas is passed to each account
    when splitting up the seized bond. We can assume that the recipients
    will be able to receive ether with 30,000 gas. It is the end user's
    fault if they do funny business in a fallback function and cannot
    receive the ether. We also cannot revert if the transfer fails
    because a malicious entity could prevent all other entities from
    receiving their funds. Previously, the amount of gas sent to each
    recipient was different and also based on the amount of gasleft
    in the execution. The problem with using gasleft here is that
    gas estimation will result in enough gas being used for the most
    gas guzzling call to be used for each of the calls.
    4440ecbf
Name
Last commit
Last update
..
contracts Loading commit data...
deploy Loading commit data...
deploy-config Loading commit data...
deployments Loading commit data...
invariant-docs Loading commit data...
scripts Loading commit data...
src Loading commit data...
tasks Loading commit data...
test-case-generator Loading commit data...
.env.example Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gas-snapshot Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc.js Loading commit data...
.solhint.json Loading commit data...
.solhintignore Loading commit data...
.storage-layout Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
echidna.yaml Loading commit data...
foundry.toml Loading commit data...
hardhat.config.ts Loading commit data...
layout-lock.json Loading commit data...
package.json Loading commit data...
slither.config.json Loading commit data...
slither.db.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...