Giter Site home page Giter Site logo

xiaoxiaolonglong / flashs Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 12.0 482 KB

区块链智能合约uniswapV2闪电兑以及aaveV2和dydx闪电贷系列合集

Home Page: https://space.bilibili.com/449244768/channel/seriesdetail?sid=2978656

TypeScript 18.17% Solidity 81.83%

flashs's Introduction

智能合约闪电系列

区块链智能合约uniswapV2闪电兑以及aaveV2和dydx闪电贷系列合集。

项目操作

下载依赖

yarn || npm i

创建.env文件

ALCHEMY_KEY = xxxxxx

fork主网

npx hardhat node

调用测试

npx hardhat scripts/dydxSoloMargin.ts
npx hardhat scripts/AaveV2FlashLoan.ts
npx hardhat scripts/uniswapV2Flash.ts

uniswapV2FlashSwap

  • 手续费 0.03(千分之三)
  • 币种,只要是uniswapV2的交易对都能进行借贷操作

aaveV2FalshLoan

  • 手续费 0.009(万分之九)
  • 币种主要多为主流币

DyDxSoloMargin

  • 手续费 几乎为0
  • 币种单一

dodoFlashLoan

  • 手续费 无

笔记文档:区块链笔记
哔哩哔哩:视频合集
赞赏:0x0168996F9355fDf6Ba4b7E25Cc4f16Fd6AB9361c

flashs's People

Contributors

qdwds avatar xiaoxiaolonglong avatar

Stargazers

 avatar  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.