@@ -155,9 +155,7 @@ func TobinTransfer(evm *vm.EVM, sender, recipient common.Address, amount *big.In
155
155
}
156
156
157
157
// Only deduct tobin tax before the g hardfork
158
- if evm .ChainConfig ().IsGFork (evm .Context .BlockNumber ) {
159
- Transfer (evm .StateDB , sender , recipient , amount )
160
- } else {
158
+ if ! evm .ChainConfig ().IsGFork (evm .Context .BlockNumber ) {
161
159
if amount .Cmp (big .NewInt (0 )) != 0 {
162
160
caller := & SharedEVMRunner {evm }
163
161
tax , taxRecipient , err := reserve .ComputeTobinTax (caller , sender , amount )
@@ -169,9 +167,8 @@ func TobinTransfer(evm *vm.EVM, sender, recipient common.Address, amount *big.In
169
167
log .Error ("Failed to get tobin tax" , "error" , err )
170
168
}
171
169
}
172
-
173
- // Complete a normal transfer if the amount is 0 or the tobin tax value is unable to be fetched and parsed.
174
- // We transfer even when the amount is 0 because state trie clearing [EIP161] is necessary at the end of a transaction
175
- Transfer (evm .StateDB , sender , recipient , amount )
176
170
}
171
+ // Complete a normal transfer if we're past the g fork, the amount is 0 or the tobin tax value is unable to be fetched and parsed.
172
+ // We transfer even when the amount is 0 because state trie clearing [EIP161] is necessary at the end of a transaction
173
+ Transfer (evm .StateDB , sender , recipient , amount )
177
174
}
0 commit comments