ETH Price: $2,757.49 (-0.07%)

Transaction Decoder

Block:
15207413 at Jul-24-2022 08:17:32 PM +UTC
Transaction Fee:
0.00351631986243696 ETH $9.70
Gas Used:
254,536 Gas / 13.81462686 Gwei

Emitted Events:

345 WETH9.Deposit( dst=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, wad=120980989610058307 )
346 WETH9.Transfer( src=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, dst=UniswapV2Pair, wad=120980989610058307 )
347 Terareum.TransferBurn( from=UniswapV2Pair, burnAddress=0x00000000...000000000, value=1069904359517196346025641458 )
348 Terareum.TransferMarket( from=UniswapV2Pair, marketAddress=0xd27Aed4D...7CD38E1B4, value=0 )
349 Terareum.Transfer( from=UniswapV2Pair, to=[Sender] 0x7354bfc9f6b9966b85ca982231c4e4617b50c2e2, value=104850627232685241910512862971 )
350 UniswapV2Pair.Sync( reserve0=2114281329643016658909099548911976, reserve1=2383703018342595048874 )
351 UniswapV2Pair.Swap( sender=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amount0In=22620788118308780154380647, amount1In=120980989610058307, amount0Out=106990435951719634602564145887, amount1Out=0, to=[Sender] 0x7354bfc9f6b9966b85ca982231c4e4617b50c2e2 )
352 0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48( 0xddac40937f35385a34f721af292e5a83fc5b840f722bff57c2fc71adba708c48, 0000000000000000000000002b788a7b1a0ee0da8cb1d2769825198d9c95d19d, 000000000000000000000000000000000000000159b46a12b3873ca4824652df, 000000000000000000000000009668a9691e456972c8ec4cc84e99486308b84d )
353 AggregationRouter.Swapped( sender=[Sender] 0x7354bfc9f6b9966b85ca982231c4e4617b50c2e2, srcToken=0xEeeeeEee...eeeeeEEeE, dstToken=Terareum, dstReceiver=[Sender] 0x7354bfc9f6b9966b85ca982231c4e4617b50c2e2, spentAmount=120980989610058307, returnAmount=104850700378420484945934527803 )
354 AggregationRouter.Exchange( pair=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77, amountOut=104850700378420484945934527803, output=Terareum )

Account State Difference:

  Address   Before After State Difference Code
0x009668A9...86308b84D
0x2B788A7b...d9C95D19d
0x7354BfC9...17B50C2e2
0.140980989610058307 Eth
Nonce: 80
0.01648368013756304 Eth
Nonce: 81
0.124497309472495267
(Miner: 0x8f0...be7)
3,110.890494279868144801 Eth3,110.891003351868144801 Eth0.000509072
0xC02aaA39...83C756Cc2 4,300,826.128247388941948411 Eth4,300,826.249228378552006718 Eth0.120980989610058307

Execution Trace

ETH 0.120980989610058307 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:0x009668A9691e456972c8ec4Cc84e99486308b84D, valueString:0x009668A9691e456972c8ec4Cc84e99486308b84D}, {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:0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2, valueString:0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2}, {name:amount, type:uint256, order:6, indexed:false, value:120980989610058307, valueString:120980989610058307}, {name:minReturnAmount, type:uint256, order:7, indexed:false, value:95955547938762004127860220526, valueString:95955547938762004127860220526}, {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=0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000E0000000000000000000000000EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE000000000000000000000000009668A9691E456972C8EC4CC84E99486308B84D0000000000000000000000000000000000000001360C91A4DCB4FBD745C5626E0000000000000000000000007354BFC9F6B9966B85CA982231C4E4617B50C2E20000000000000000000000000000000000000000000000000000018231ECB98B000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000C00000000000000000000000002B788A7B1A0EE0DA8CB1D2769825198D9C95D19D000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000009668A9691E456972C8EC4CC84E99486308B84D0000000000000000000000007354BFC9F6B9966B85CA982231C4E4617B50C2E200000000000000000000000000000000000000000000000001ADCF91AE48624300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ) => ( returnAmount=104850700378420484945934527803 )
  • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6731810407913826431919691801197 )
  • ETH 0.120980989610058307 0xd12bcdfb9a39be79da3bdf02557efdcd5ca59e77.d9c45357( )
    • ETH 0.120980989610058307 WETH9.CALL( )
    • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6731810407913826431919691801197 )
    • WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 120980989610058307 )
    • WETH9.transfer( dst=0x2B788A7b1a0Ee0da8Cb1D2769825198d9C95D19d, wad=120980989610058307 ) => ( True )
    • FireBirdFormula.getFactoryReserveAndWeights( factory=0x59a16EcE7143459801C3B3F24DC8a0CDfb956571, pair=0x2B788A7b1a0Ee0da8Cb1D2769825198d9C95D19d, tokenA=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, dexId=1 ) => ( tokenB=0x009668A9691e456972c8ec4Cc84e99486308b84D, reserveA=2383582037352984990567, reserveB=2114388297458180260234921958677216, tokenWeightA=50, tokenWeightB=50, swapFee=30 )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.STATICCALL( )
      • WETH9.balanceOf( 0x2B788A7b1a0Ee0da8Cb1D2769825198d9C95D19d ) => ( 2383703018342595048874 )
      • FireBirdFormula.getAmountOut( amountIn=120980989610058307, reserveIn=2383582037352984990567, reserveOut=2114388297458180260234921958677216, tokenWeightIn=50, tokenWeightOut=50, swapFee=30 ) => ( amountOut=106990435951719634602564145887 )
      • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6731810407913826431919691801197 )
      • UniswapV2Pair.STATICCALL( )
      • UniswapV2Pair.swap( amount0Out=106990435951719634602564145887, amount1Out=0, to=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2, data=0x )
        • Terareum.transfer( recipient=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2, amount=106990435951719634602564145887 ) => ( True )
        • Terareum.balanceOf( account=0x2B788A7b1a0Ee0da8Cb1D2769825198d9C95D19d ) => ( 2114281329643016658909099548911976 )
        • WETH9.balanceOf( 0x2B788A7b1a0Ee0da8Cb1D2769825198d9C95D19d ) => ( 2383703018342595048874 )
        • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6836661108292246916865626329000 )
        • Terareum.balanceOf( account=0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
        • WETH9.balanceOf( 0xd12bcdFB9A39BE79DA3bDF02557EFdcD5CA59e77 ) => ( 0 )
        • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6836661108292246916865626329000 )
        • Terareum.balanceOf( account=0x7354BfC9f6b9966b85Ca982231c4e4617B50C2e2 ) => ( 6836661108292246916865626329000 )
          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: Terareum
          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          pragma solidity 0.8.0;
          // SPDX-License-Identifier: Unlicensed
          interface IERC20 {
          function totalSupply() external view returns (uint256);
          /**
          * @dev Returns the amount of tokens owned by `account`.
          */
          function balanceOf(address account) external view returns (uint256);
          /**
          * @dev Moves `amount` tokens from the caller's account to `recipient`.
          *
          * Returns a boolean value indicating whether the operation succeeded.
          *
          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