All Projects β†’ uniflash β†’ Uniflash

uniflash / Uniflash

Licence: agpl-3.0
A simple and decentralized protocol for flash loan. https://t.me/Uniflash

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Uniflash

Set Protocol Contracts
πŸŽ› Set Protocol Smart Contracts
Stars: ✭ 151 (+135.94%)
Mutual labels:  ethereum, smart-contracts, erc20
Alpha Wallet Android
An advanced Ethereum mobile wallet
Stars: ✭ 133 (+107.81%)
Mutual labels:  ethereum, smart-contracts, erc20
Eden Smart Contracts
EDEN - EDN Smart Token & Smart Contracts
Stars: ✭ 109 (+70.31%)
Mutual labels:  ethereum, smart-contracts, erc20
Uniswap V1
🐍Uniswap V1 smart contracts
Stars: ✭ 313 (+389.06%)
Mutual labels:  ethereum, smart-contracts, erc20
Awesome Buggy Erc20 Tokens
A Collection of Vulnerabilities in ERC20 Smart Contracts With Tokens Affected
Stars: ✭ 251 (+292.19%)
Mutual labels:  ethereum, smart-contracts, erc20
Ico Contracts
Ethereum smart contracts that have been used during successful ICOs
Stars: ✭ 160 (+150%)
Mutual labels:  ethereum, smart-contracts, erc20
Hashed Timelock Contract Ethereum
Hashed Timelock Contracts for ETH, ERC20 and ERC721 on Ethereum
Stars: ✭ 128 (+100%)
Mutual labels:  ethereum, smart-contracts, erc20
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (+215.63%)
Mutual labels:  ethereum, smart-contracts, erc20
Uniswap V2 Periphery
🎚 Peripheral smart contracts for interacting with Uniswap V2
Stars: ✭ 267 (+317.19%)
Mutual labels:  ethereum, smart-contracts, erc20
Uniswap V2 Core
πŸŽ› Core smart contracts of Uniswap V2
Stars: ✭ 889 (+1289.06%)
Mutual labels:  ethereum, smart-contracts, erc20
Hifi Protocol
The Hifi fixed-rate, fixed-term lending protocol
Stars: ✭ 41 (-35.94%)
Mutual labels:  ethereum, smart-contracts
Miner Monitor
Miner, balance, wallet and pool monitoring software
Stars: ✭ 38 (-40.62%)
Mutual labels:  ethereum, erc20
Maker Otc
Simple on-chain market for ERC20 tokens
Stars: ✭ 37 (-42.19%)
Mutual labels:  ethereum, erc20
Smart Contracts Example
Simple example of token market. Based on blockchain technology using Ethereum platform.
Stars: ✭ 37 (-42.19%)
Mutual labels:  ethereum, smart-contracts
Revoke.cash
❌ Revoke or change your ERC20 token allowances
Stars: ✭ 60 (-6.25%)
Mutual labels:  ethereum, erc20
Vyper.fun
Cryptozombies for Vyper: Learn Vyper by building games!
Stars: ✭ 42 (-34.37%)
Mutual labels:  ethereum, smart-contracts
Etherscan Ml
Python Data Science and Machine Learning Library for the Ethereum and ERC-20 Blockchain
Stars: ✭ 55 (-14.06%)
Mutual labels:  ethereum, erc20
Solidity
πŸ” Ethereum smart contracts developed for the Hanzo Platform.
Stars: ✭ 46 (-28.12%)
Mutual labels:  ethereum, smart-contracts
Protocol
β›“ Dev Protocol is an open source middleware for creator's sustainability.
Stars: ✭ 56 (-12.5%)
Mutual labels:  ethereum, smart-contracts
Asset Token
Designed to represent a fungible asset as an ERC777 token
Stars: ✭ 33 (-48.44%)
Mutual labels:  ethereum, smart-contracts

Description

Uniflash is a simple and decentralized protocol for flash loans, trying to follow the design of Uniswap. It supports both Eth and ERC20 tokens. All the fee goes to users.

Note that Uniflash is not audited yet, though there are enough test cases. It's currently deployed on the Ropsten network for testing.

For discussing and contributing to the next of Uniflash, please join this telegram group @Uniflash

Try out

One could use any smart contract interactor to play with Uniflash, e.g. https://justsmartcontracts.dev/. It's able to add a front-end similar to Uniswap later if the community likes the project.

Testing on Ropsten network:

  1. Switch to Ropsten network
  2. Load abi/uniflash-factory.json with address: 0x689bf4B0E69d113584830958c3A46f40F9B52093
  3. Get the flash-loan address of Eth by calling getEthFlash with any interest factor from 1 to 10 (e.g. 9 means 0.09% fee rate)
  4. Load abi/uniflash-eth.json with the address fetched in Step 3
  5. Now one could use addLiquidity and removeLiquidity to deposit and withdraw your Eth
  6. Feel free to play with the other functionalities

One can create a Pool for any ERC20 token using uniflash-factory, and then following similar steps to deposit and withdraw your ERC20 tokens in the flash loan pool.

Fee mechanism

For each token (including Eth), there are 10 pools initialized with fee rate ranging from 0.01%, 0.02%, to 0.10%. Users are free to choose a pool with a matched fee rate.

Why not a dynamic fee rate? The reasons are: 1. It's done on purpose to avoid using any price oracle to quantify the volume of each pool, so as to keep the protocol as simple as possible. 2. If the initial fee is high, then nobody would use it. The protocol would be stuck in the cold-start phase. However, with the current design, users are able to switch between pools with different fee rates. 3. Even though discrete fee rates are used, the pool sizes could change according to demands and supplies.

Authors

Thank Uniswap for its pioneering work on DeFi design and implementation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].