Coder Social home page Coder Social logo

sample-swap's Introduction

Quickswap で USDC を USDT にプログラムで swap するタイムアタック

実行結果

% npm start

> [email protected] start
> node -r esbuild-register src/index.ts

{
  type: 2,
  chainId: 137,
  nonce: 83,
  maxPriorityFeePerGas: BigNumber { _hex: '0x1dd4a50bab', _isBigNumber: true },
  maxFeePerGas: BigNumber { _hex: '0x1dd4a50bab', _isBigNumber: true },
  gasPrice: null,
  gasLimit: BigNumber { _hex: '0xbcd8', _isBigNumber: true },
  to: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
  value: BigNumber { _hex: '0x00', _isBigNumber: true },
  data: '0x095ea7b3000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff00000000000000000000000000000000000000000000000000000000000f4240',
  accessList: [],
  hash: '0xa4a000238409d24a7fad99a8e2f41ef294effb7a5f447660d72ea87a5d5f1ca7',
  v: 0,
  r: '0xb55a7b6b668e0740ca87fdde0c1cc0edf74cfb17728dbd03b8818b80c6d541d8',
  s: '0x2f1de4854f1dd90fe720e6710296dcead68b0d8efb97eb678b7f44bac6df338c',
  from: '0x926E1216Fa92D3a7Fd3cb91880bcE9685D959F3b',
  confirmations: 0,
  wait: [Function (anonymous)]
}
{
  type: 2,
  chainId: 137,
  nonce: 84,
  maxPriorityFeePerGas: BigNumber { _hex: '0x1d8f051274', _isBigNumber: true },
  maxFeePerGas: BigNumber { _hex: '0x1d8f051274', _isBigNumber: true },
  gasPrice: null,
  gasLimit: BigNumber { _hex: '0x01fe48', _isBigNumber: true },
  to: '0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff',
  value: BigNumber { _hex: '0x00', _isBigNumber: true },
  data: '0x38ed173900000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000926e1216fa92d3a7fd3cb91880bce9685d959f3b000000000000000000000000000000000000000000000000000001862768c9df00000000000000000000000000000000000000000000000000000000000000020000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f',
  accessList: [],
  hash: '0x21b090be3013d8b06b62627acdf34ed7a8c2086f1986369d74a4effd7d4694e5',
  v: 0,
  r: '0xb2f92ecff80f939f8a452176fefd2b0f611e9f7029d58c8d00a3a0a60bdd0564',
  s: '0x35d56e7ad410b1d292105c754910b85338e6df9d959a46919a7ecb0672640679',
  from: '0x926E1216Fa92D3a7Fd3cb91880bcE9685D959F3b',
  confirmations: 0,
  wait: [Function (anonymous)]
}

https://polygonscan.com/tx/0x21b090be3013d8b06b62627acdf34ed7a8c2086f1986369d74a4effd7d4694e5

sample-swap's People

Contributors

wbydo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.