Transaction Hash:
Block:
15230107 at Jul-28-2022 09:07:59 AM +UTC
Transaction Fee:
0.00193027439336175 ETH
$5.15
Gas Used:
171,225 Gas / 11.27332103 Gwei
Emitted Events:
432 |
GGold.Transfer( from=[Sender] 0x178d010632f4a263596ecbcf17c216a37a8110ef, to=UniswapV2Pair, value=556297621005531615641409 )
|
433 |
GGold.Approval( owner=[Sender] 0x178d010632f4a263596ecbcf17c216a37a8110ef, spender=[Receiver] AggregationRouter, value=115792089237316195423570985008687907853269984665640563483159963002381513998526 )
|
434 |
WETH9.Transfer( src=UniswapV2Pair, dst=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, wad=24437812416467595 )
|
435 |
UniswapV2Pair.Sync( reserve0=30189607656386967484100759, reserve1=1305690158439823549 )
|
436 |
UniswapV2Pair.Swap( sender=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amount0In=556297621005531615641409, amount1In=0, amount0Out=0, amount1Out=24437812416467595, to=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 )
|
437 |
0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48( 0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48, 000000000000000000000000b0eeb9e5c9cb1703c5ac7c3729d233ed88757ae8, 0000000000000000000000000000000000000000000000000056d20f982bd28b, 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 )
|
438 |
WETH9.Withdrawal( src=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, wad=24437812416467595 )
|
439 |
AggregationRouter.Swapped( sender=[Sender] 0x178d010632f4a263596ecbcf17c216a37a8110ef, srcToken=GGold, dstToken=0xEeeeeEee...eeeeeEEeE, dstReceiver=[Sender] 0x178d010632f4a263596ecbcf17c216a37a8110ef, spentAmount=556297621005531615641409, returnAmount=24364498979218193 )
|
440 |
AggregationRouter.Exchange( pair=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amountOut=24364498979218193, output=WETH9 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x178d0106...37a8110eF |
0.009521739253850088 Eth
Nonce: 282
|
0.031955963839706531 Eth
Nonce: 283
| 0.022434224585856443 | ||
0x5B56F09e...0c5Bb302b
Miner
| (Miner: 0x5b5...02b) | 8.755170496529570662 Eth | 8.755414519646285437 Eth | 0.000244023116714775 | |
0x5c2E129e...C29db915f | |||||
0x96c195F6...76D51b5F3 | 0.647090512565621534 Eth | 0.647163826002870936 Eth | 0.000073313437249402 | ||
0xB0eEb9e5...D88757Ae8 | |||||
0xC02aaA39...83C756Cc2 | 4,280,741.851041679338345676 Eth | 4,280,741.826603866921878081 Eth | 0.024437812416467595 |
Execution Trace
AggregationRouter.swap( caller=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, desc=[{name:srcToken, type:address, order:1, indexed:false, value:0x5c2E129ec58563c7206229fFb1aDb9dC29db915f, valueString:0x5c2E129ec58563c7206229fFb1aDb9dC29db915f}, {name:dstToken, type:address, order:2, indexed:false, value:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, valueString:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE}, {name:srcReceivers, type:address[], order:3, indexed:false, value:[], valueString:[]}, {name:srcAmounts, type:uint256[], order:4, indexed:false, value:[], valueString:[]}, {name:dstReceiver, type:address, order:5, indexed:false, value:0x178d010632F4A263596EcbcF17c216A37a8110eF, valueString:0x178d010632F4A263596EcbcF17c216A37a8110eF}, {name:amount, type:uint256, order:6, indexed:false, value:556297621005531615641409, valueString:556297621005531615641409}, {name:minReturnAmount, type:uint256, order:7, indexed:false, value:24122669220284837, valueString:24122669220284837}, {name:flags, type:uint256, order:8, indexed:false, value:32, valueString:32}, {name:permit, type:bytes, order:9, indexed:false, value:0x00000000000000000000000096C195F6643A3D797CB90CB6BA0AE2776D51B5F30000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001E, valueString:0x00000000000000000000000096C195F6643A3D797CB90CB6BA0AE2776D51B5F30000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001E}], data=0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000A000000000000000000000000000000000000000000000000000000000000000E00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000001824422159500000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000B0EEB9E5C9CB1703C5AC7C3729D233ED88757AE800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000075CCF457A16A5A04BF410000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C0000000000000000000000000B0EEB9E5C9CB1703C5AC7C3729D233ED88757AE80000000000000000000000005C2E129EC58563C7206229FFB1ADB9DC29DB915F000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000D12BCDFB9A39BE79DA3BDF02557EFDCD5CA59E7700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000096C195F6643A3D797CB90CB6BA0AE2776D51B5F30000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000001E ) => ( returnAmount=24364498979218193 )
-
GGold.transferFrom( sender=0x178d010632F4A263596EcbcF17c216A37a8110eF, recipient=0xB0eEb9e5C9cb1703C5AC7c3729D233ED88757Ae8, amount=556297621005531615641409 ) => ( True )
0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.8b674f5d( )
FireBirdFormula.getFactoryReserveAndWeights( factory=0x59a16EcE7143459801C3B3F24DC8a0CDfb956571, pair=0xB0eEb9e5C9cb1703C5AC7c3729D233ED88757Ae8, tokenA=0x5c2E129ec58563c7206229fFb1aDb9dC29db915f, dexId=1 ) => ( tokenB=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, reserveA=29633310035381435868459350, reserveB=1330127970856291144, tokenWeightA=50, tokenWeightB=50, swapFee=30 )
-
UniswapV2Pair.STATICCALL( )
-
UniswapV2Pair.STATICCALL( )
-
UniswapV2Pair.STATICCALL( )
-
-
GGold.balanceOf( account=0xB0eEb9e5C9cb1703C5AC7c3729D233ED88757Ae8 ) => ( 30189607656386967484100759 )
-
FireBirdFormula.getAmountOut( amountIn=556297621005531615641409, reserveIn=29633310035381435868459350, reserveOut=1330127970856291144, tokenWeightIn=50, tokenWeightOut=50, swapFee=30 ) => ( amountOut=24437812416467595 )
-
WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=0, amount1Out=24437812416467595, to=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, data=0x )
-
WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 24437812416467595 )
0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.774b6b7e( )
-
WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 24437812416467595 )
WETH9.withdraw( wad=24437812416467595 )
- ETH 0.024437812416467595
0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.CALL( )
- ETH 0.024437812416467595
- ETH 0.000073313437249402
0x96c195f6643a3d797cb90cb6ba0ae2776d51b5f3.CALL( )
- ETH 0.024364498979218193
0x178d010632f4a263596ecbcf17c216a37a8110ef.CALL( )
-
GGold.balanceOf( account=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
-
swap[AggregationRouter (ln:393)]
swapSimpleMode[AggregationRouter (ln:404)]
_isETH[AggregationRouter (ln:512)]
_permit[AggregationRouter (ln:514)]
safeTransferFrom[AggregationRouter (ln:524)]
call[TransferHelper (ln:94)]
encodeWithSelector[TransferHelper (ln:94)]
decode[TransferHelper (ln:96)]
_getBalance[AggregationRouter (ln:536)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
_swapMultiSequencesWithSimpleMode[AggregationRouter (ln:538)]
decode[AggregationRouter (ln:578)]
safeTransferFrom[AggregationRouter (ln:588)]
call[TransferHelper (ln:94)]
encodeWithSelector[TransferHelper (ln:94)]
decode[TransferHelper (ln:96)]
call[AggregationRouter (ln:600)]
encodeWithSelector[AggregationRouter (ln:601)]
revert[AggregationRouter (ln:607)]
call[AggregationRouter (ln:615)]
encodeWithSelector[AggregationRouter (ln:616)]
revert[AggregationRouter (ln:625)]
sub[AggregationRouter (ln:547)]
_getBalance[AggregationRouter (ln:547)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
Swapped[AggregationRouter (ln:554)]
Exchange[AggregationRouter (ln:562)]
_isETH[AggregationRouter (ln:565)]
_isETH[AggregationRouter (ln:412)]
_isETH[AggregationRouter (ln:417)]
_isETH[AggregationRouter (ln:428)]
_permit[AggregationRouter (ln:429)]
safeTransferFrom[AggregationRouter (ln:431)]
call[TransferHelper (ln:94)]
encodeWithSelector[TransferHelper (ln:94)]
decode[TransferHelper (ln:96)]
_isETH[AggregationRouter (ln:440)]
safeTransferETH[AggregationRouter (ln:443)]
_getBalance[AggregationRouter (ln:453)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
_getBalance[AggregationRouter (ln:454)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
_getBalance[AggregationRouter (ln:459)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
call[AggregationRouter (ln:462)]
encodeWithSelector[AggregationRouter (ln:463)]
revert[AggregationRouter (ln:466)]
sub[AggregationRouter (ln:471)]
_getBalance[AggregationRouter (ln:471)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
sub[AggregationRouter (ln:474)]
add[AggregationRouter (ln:474)]
_getBalance[AggregationRouter (ln:475)]
_isETH[AggregationRouter (ln:635)]
balanceOf[AggregationRouter (ln:638)]
mul[AggregationRouter (ln:478)]
mul[AggregationRouter (ln:479)]
Swapped[AggregationRouter (ln:489)]
Exchange[AggregationRouter (ln:497)]
_isETH[AggregationRouter (ln:500)]
File 1 of 5: AggregationRouter
File 2 of 5: UniswapV2Pair
File 3 of 5: GGold
File 4 of 5: WETH9
File 5 of 5: FireBirdFormula
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity >=0.7.6;pragma abicoder v2;interface IERC20 {event Approval(address indexed owner,address indexed spender,uint256 value);event Transfer(address indexed from, address indexed to, uint256 value);function name() external view returns (string memory);function symbol() external view returns (string memory);
File 2 of 5: UniswapV2Pair
12345678910111213141516// File: contracts/interfaces/IUniswapV2Pair.solpragma solidity >=0.5.0;interface IUniswapV2Pair {event Approval(address indexed owner, address indexed spender, uint value);event Transfer(address indexed from, address indexed to, uint value);function name() external pure returns (string memory);function symbol() external pure returns (string memory);function decimals() external pure returns (uint8);function totalSupply() external view returns (uint);function balanceOf(address owner) external view returns (uint);function allowance(address owner, address spender) external view returns (uint);function approve(address spender, uint value) external returns (bool);
File 3 of 5: GGold
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.9;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@openzeppelin/contracts/access/Ownable.sol";contract GGold is ERC20("GGold", "GGOLD"), Ownable {mapping(address => bool) public managers;function addManager(address _address) external onlyOwner {managers[_address] = true;}function removeManager(address _address) external onlyOwner {managers[_address] = false;}function mint(address _to, uint _amount) external {require(managers[msg.sender] == true, "This address is not allowed to interact with the contract");_mint(_to, _amount);}
File 4 of 5: WETH9
12345678910111213141516// Copyright (C) 2015, 2016, 2017 Dapphub// This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public License// along with this program. If not, see <http://www.gnu.org/licenses/>.pragma solidity ^0.4.18;
File 5 of 5: FireBirdFormula
12345678910111213141516// File: contracts/interfaces/IFireBirdFormula.sol// SPDX-License-Identifier: SEE LICENSE IN LICENSEpragma solidity >=0.5.16;/*Bancor Formula interface*/interface IFireBirdFormula {function getFactoryReserveAndWeights(address factory, address pair, address tokenA, uint8 dexId) external view returns (address tokenB,uint reserveA,uint reserveB,uint32 tokenWeightA,uint32 tokenWeightB,