forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read the Tobin tax amount from the Reserve smart contract and use in …
…TobinTransfer function (ethereum#138) * Create TobinTransfer function * Import log and hexutil * Make sure to charge gas everywhere, create function selector for getTobinTax, and add/improve comments * Still complete transfer if getTobinTax doesn't work * Complete transfer if TobinTransfer amount is zero * Refactor the way precompiled contracts are run to properly charge gas when calling TobinTransfer in contracts.go * Refactor hasEnoughGas function * Use debitRequiredGas function when running precompiled contracts and refactor output order of Run functions to (ret, gas, err) * Change caller in TobinTransfer to sender, check for call error, and refactor minor things * Add comments and logs * Simplify logic for TobinTransfer and charge gas in RunPrecompiledContract * Change tobin transfer error log
- Loading branch information
Showing
4 changed files
with
154 additions
and
57 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.