Giter Site home page Giter Site logo

evmoverflow / stackswap Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 39 KB

Highly optimized contract for ethereum stablecoins swap.

Home Page: https://stackswap.io

License: GNU Affero General Public License v3.0

Assembly 40.24% JavaScript 59.76%
evm assembly ethereum ethereum-contract stablecoins swap

stackswap's Introduction

StackSwap

StackSwap is a highly optimized contract for ethereum stablecoins swap.

Addresses

Interface

interface IStackSwap {
  function swapT2C_10357(uint256 amountIn) external;
  function swapC2T_01800(uint256 amountIn) external;
  function swapD2B_00599(uint256 amountIn) external;
  function swapB2D_02258(uint256 amountIn) external;
  function swapT2B_14208(uint256 amountIn) external;
  function swapC2B_00745(uint256 amountIn) external;
  function swapT2D_00978(uint256 amountIn) external;
  function swapC2D_12243(uint256 amountIn) external;
  function swapD2C_01083(uint256 amountIn) external;
  function swapB2C_04080(uint256 amountIn) external;
  function swapD2T_01512(uint256 amountIn) external;
  function swapB2T_02283(uint256 amountIn) external;
  function getFee_00201(uint256 id) external view returns (uint256 fee);
  function getReturn_00958(uint256 id, uint256 amountIn) external view returns (uint256 amountOut);
}

Methods

id name function returns gas cost description
0 swapT2C swapT2C_10357(uint256 amountIn) - 80,063 Swaps from USDT to USDC
1 swapC2T swapC2T_01800(uint256 amountIn) - 84,015 Swaps from USDC to USDT
2 swapD2B swapD2B_00599(uint256 amountIn) - 69,667 Swaps from DAI to BUSD
3 swapB2D swapB2D_02258(uint256 amountIn) - 73,223 Swaps from BUSD to DAI
4 swapT2B swapT2B_14208(uint256 amountIn) - 80,739 Swaps from USDT to BUSD
5 swapC2B swapC2B_00745(uint256 amountIn) - 87,101 Swaps from USDC to BUSD
6 swapT2D swapT2D_00978(uint256 amountIn) - 66,293 Swaps from USDT to DAI
7 swapC2D swapC2D_12243(uint256 amountIn) - 72,655 Swaps from USDC to DAI
8 swapD2C swapD2C_01083(uint256 amountIn) - 69,013 Swaps from DAI to USDC
9 swapB2C swapB2C_04080(uint256 amountIn) - 87,015 Swaps from BUSD to USDC
10 swapD2T swapD2T_01512(uint256 amountIn) - 83,697 Swaps from DAI to USDT
11 swapB2T swapB2T_02283(uint256 amountIn) - 101,699 Swaps from BUSD to USDT

Views

name function returns description
getFee getFee_00201(uint256 id) uint256 fee Get current fee for asked swap id
getReturn getReturn_00958(uint256 id, uint256 amountIn) uint256 amountOut Get expected return amount for asked swap id

License

See license at LICENSE

stackswap's People

Contributors

evmoverflow avatar

Stargazers

 avatar

Watchers

 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.