ETH Price: $2,584.47 (-0.91%)

Transaction Decoder

Block:
15235788 at Jul-29-2022 06:31:00 AM +UTC
Transaction Fee:
0.005931462048087846 ETH $15.33
Gas Used:
205,878 Gas / 28.810567657 Gwei

Emitted Events:

117 WETH9.Deposit( dst=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, wad=99700000000000000 )
118 WETH9.Transfer( src=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, dst=UniswapV2Pair, wad=99700000000000000 )
119 YASHA.Transfer( from=UniswapV2Pair, to=YASHA, value=64801586258869543516612962 )
120 YASHA.Transfer( from=UniswapV2Pair, to=[Sender] 0xe5b20a4ebf34dab5864baf6ee44b8f1044c5f64c, value=583214276329825891649516664 )
121 UniswapV2Pair.Sync( reserve0=21752275987975177034131614540, reserve1=3436340250773455435 )
122 UniswapV2Pair.Swap( sender=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amount0In=0, amount1In=99700000000000000, amount0Out=648015862588695435166129626, amount1Out=0, to=[Sender] 0xe5b20a4ebf34dab5864baf6ee44b8f1044c5f64c )
123 0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48( 0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48, 0000000000000000000000004d7be7624f1cedb843848bc3fb8a1057daf6e843, 0000000000000000000000000000000000000000021806b24d1a90664c109dda, 0000000000000000000000006107f4901476c3449403a1d908e19148950c2bc5 )
124 AggregationRouter.Swapped( sender=[Sender] 0xe5b20a4ebf34dab5864baf6ee44b8f1044c5f64c, srcToken=0xEeeeeEee...eeeeeEEeE, dstToken=YASHA, dstReceiver=[Sender] 0xe5b20a4ebf34dab5864baf6ee44b8f1044c5f64c, spentAmount=100000000000000000, returnAmount=583214276329825891649516664 )
125 AggregationRouter.Exchange( pair=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amountOut=583214276329825891649516664, output=YASHA )

Account State Difference:

  Address   Before After State Difference Code
0x4d7bE762...7daf6E843
0x6107F490...8950C2BC5
0x96c195F6...76D51b5F3 0.700596821893689336 Eth0.700896821893689336 Eth0.0003
(Miner: 0xb7e...707)
16.975621488198510692 Eth16.98011461526857601 Eth0.004493127070065318
0xC02aaA39...83C756Cc2 4,275,495.360157616136978296 Eth4,275,495.459857616136978296 Eth0.0997
0xe5b20a4E...044c5f64c
0.469503082582372387 Eth
Nonce: 141
0.363571620534284541 Eth
Nonce: 142
0.105931462048087846

Execution Trace

ETH 0.1 AggregationRouter.swap( caller=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, desc=[{name:srcToken, type:address, order:1, indexed:false, value:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, valueString:0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE}, {name:dstToken, type:address, order:2, indexed:false, value:0x6107F4901476c3449403a1d908E19148950C2BC5, valueString:0x6107F4901476c3449403a1d908E19148950C2BC5}, {name:srcReceivers, type:address[], order:3, indexed:false, value:[0x96c195F6643A3D797cb90cb6BA0Ae2776D51b5F3], valueString:[0x96c195F6643A3D797cb90cb6BA0Ae2776D51b5F3]}, {name:srcAmounts, type:uint256[], order:4, indexed:false, value:[300000000000000], valueString:[300000000000000]}, {name:dstReceiver, type:address, order:5, indexed:false, value:0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c, valueString:0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c}, {name:amount, type:uint256, order:6, indexed:false, value:100000000000000000, valueString:100000000000000000}, {name:minReturnAmount, type:uint256, order:7, indexed:false, value:1970837199888215650171183, valueString:1970837199888215650171183}, {name:flags, type:uint256, order:8, indexed:false, value:0, valueString:0}, {name:permit, type:bytes, order:9, indexed:false, value:0x, valueString:0x}], data=0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000E0000000000000000000000000EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE0000000000000000000000006107F4901476C3449403A1D908E19148950C2BC500000000000000000000000000000000000000000001A1574C76BB535DD1792F000000000000000000000000E5B20A4EBF34DAB5864BAF6EE44B8F1044C5F64C000000000000000000000000000000000000000000000000000001818F60DAB7000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C00000000000000000000000004D7BE7624F1CEDB843848BC3FB8A1057DAF6E843000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC20000000000000000000000006107F4901476C3449403A1D908E19148950C2BC5000000000000000000000000E5B20A4EBF34DAB5864BAF6EE44B8F1044C5F64C0000000000000000000000000000000000000000000000000162349F2C1B400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ) => ( returnAmount=583214276329825891649516664 )
  • ETH 0.0003 0x96c195f6643a3d797cb90cb6ba0ae2776d51b5f3.CALL( )
  • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 640548281784735727854374875 )
  • ETH 0.0997 0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.d9c45357( )
    • ETH 0.0997 WETH9.CALL( )
    • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 640548281784735727854374875 )
    • WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 99700000000000000 )
    • WETH9.transfer( dst=0x4d7bE7624f1CEdB843848bc3Fb8a1057daf6E843, wad=99700000000000000 ) => ( True )
    • FireBirdFormula.getFactoryReserveAndWeights( factory=0x59a16EcE7143459801C3B3F24DC8a0CDfb956571, pair=0x4d7bE7624f1CEdB843848bc3Fb8a1057daf6E843, tokenA=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, dexId=1 ) => ( tokenB=0x6107F4901476c3449403a1d908E19148950C2BC5, reserveA=3336640250773455435, reserveB=22400291850563872469297744166, tokenWeightA=50, tokenWeightB=50, swapFee=30 )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • WETH9.balanceOf( 0x4d7bE7624f1CEdB843848bc3Fb8a1057daf6E843 ) => ( 3436340250773455435 )
      • FireBirdFormula.getAmountOut( amountIn=99700000000000000, reserveIn=3336640250773455435, reserveOut=22400291850563872469297744166, tokenWeightIn=50, tokenWeightOut=50, swapFee=30 ) => ( amountOut=648015862588695435166129626 )
      • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 640548281784735727854374875 )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.swap( amount0Out=648015862588695435166129626, amount1Out=0, to=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c, data=0x )
        • YASHA.transfer( recipient=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c, amount=648015862588695435166129626 ) => ( True )
        • YASHA.balanceOf( account=0x4d7bE7624f1CEdB843848bc3Fb8a1057daf6E843 ) => ( 21752275987975177034131614540 )
        • WETH9.balanceOf( 0x4d7bE7624f1CEdB843848bc3Fb8a1057daf6E843 ) => ( 3436340250773455435 )
        • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 1223762558114561619503891539 )
        • YASHA.balanceOf( account=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
        • WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
        • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 1223762558114561619503891539 )
        • YASHA.balanceOf( account=0xe5b20a4EBf34dab5864bAF6EE44B8f1044c5f64c ) => ( 1223762558114561619503891539 )
          swap[AggregationRouter (ln:393)]
          File 1 of 5: AggregationRouter
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          // SPDX-License-Identifier: MIT
          pragma 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);
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

          File 2 of 5: WETH9
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          // 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;
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

          File 3 of 5: UniswapV2Pair
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          // File: contracts/interfaces/IUniswapV2Pair.sol
          pragma 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);
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

          File 4 of 5: YASHA
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          // SPDX-License-Identifier: MIT
          pragma solidity 0.8.11;
          abstract contract Context {
          function _msgSender() internal view virtual returns (address) {
          return msg.sender;
          }
          function _msgData() internal view virtual returns (bytes calldata) {
          this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
          return msg.data;
          }
          }
          interface IERC20 {
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

          File 5 of 5: FireBirdFormula
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          // File: contracts/interfaces/IFireBirdFormula.sol
          // SPDX-License-Identifier: SEE LICENSE IN LICENSE
          pragma 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,
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX