All Projects → The-Poolz → Poolz-Back

The-Poolz / Poolz-Back

Licence: MIT license
smart contracts using solidity for erc20 tokens to eth and erc20 to erc20

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects
shell
77523 projects

Projects that are alternatives of or similar to Poolz-Back

defiprime
All things #DeFi - trustless and transparent financial products built on top of the blockchain.
Stars: ✭ 117 (+680%)
Mutual labels:  ethereum-contract, defi
awesome-defi
Curated list of awesome DeFi protocols, dapps, wallets and other resources
Stars: ✭ 36 (+140%)
Mutual labels:  defi
zeneth
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Stars: ✭ 112 (+646.67%)
Mutual labels:  defi
app-monorepo
Secure, open source and community driven crypto wallet runs on all platforms and trusted by millions.
Stars: ✭ 1,282 (+8446.67%)
Mutual labels:  defi
react-native-defi-app
React Native Defi Decentralized Applications(dApps)
Stars: ✭ 31 (+106.67%)
Mutual labels:  defi
NFT-Dapp-Boilerplate
A highly scalable NFT and DEFI boilerplate with pre added web3 and different wallets with a focus on performance and best practices
Stars: ✭ 51 (+240%)
Mutual labels:  defi
scan
DeFi Scan, everything one-stop location for DeFi Blockchain. Powered by jellyfish & ocean network.
Stars: ✭ 31 (+106.67%)
Mutual labels:  defi
solidity-contracts
📦 Resources for the Ethereum Smart Contract Development tutorial series.
Stars: ✭ 64 (+326.67%)
Mutual labels:  ethereum-contract
pali-wallet
The Official Syscoin browser wallet. Open source, easy to use & multichain.
Stars: ✭ 30 (+100%)
Mutual labels:  defi
vue-web3
🐙 Web3 blockchain bindings for Vue.js (inspired by Vuefire and Drizzle)
Stars: ✭ 63 (+320%)
Mutual labels:  ethereum-contract
yearn-exporter
Realtime and historical Yearn metrics
Stars: ✭ 80 (+433.33%)
Mutual labels:  defi
wrc20-examples
This repository contains examples of WRC20 tokens written in different languages.
Stars: ✭ 12 (-20%)
Mutual labels:  ethereum-contract
defi
Tools for use in DeFi. Impermanent Loss calculations, staking and farming strategies, coingecko and pancakeswap API queries, liquidity pools and more
Stars: ✭ 464 (+2993.33%)
Mutual labels:  defi
bitcloutDAO
Decentralized Social Network Money Frauds/Scams including BitClout / DeSo, Twetch, Steemit, PeakD
Stars: ✭ 29 (+93.33%)
Mutual labels:  defi
market
🧜‍♀️ THE Data Market
Stars: ✭ 149 (+893.33%)
Mutual labels:  defi
cheezyverse
Cheeze Wizards is the world's first battle royale on the blockchain (with cheese!)
Stars: ✭ 38 (+153.33%)
Mutual labels:  ethereum-contract
squeeth-monorepo
Squeeth is a new financial primitive in DeFi that gives traders exposure to ETH²
Stars: ✭ 156 (+940%)
Mutual labels:  defi
wallet
DeFiChain Wallet. The DeFi Blockchain Light Wallet for iOS, Android & Web. + Desktop Coming Soon
Stars: ✭ 112 (+646.67%)
Mutual labels:  defi
Simple-Game-ERC-721-Token-Template
🔮 Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options 🔮
Stars: ✭ 83 (+453.33%)
Mutual labels:  ethereum-contract
wfil
Wrapped Filecoin (WFIL), Team WrapFS at HackFS @ethglobal | APOLLO 🚀 @gitcoinco | ETHOnline @ethglobal
Stars: ✭ 13 (-13.33%)
Mutual labels:  defi

Poolz-Back

Build Status codecov CodeFactor

The-Poolz core decentralized application for creating Initial DEX Offerings.

Navigation

Installation

npm install

Testing

truffle run coverage

Deployment

truffle dashboard
truffle migrate --f 1 --to 1 --network dashboard

UML

classDiagram

Create new Pool

function CreatePool(
address _Token, //token to sell address
uint256 _FinishTime, //Until what time the pool will work
uint256 _Rate, //the rate of the trade
uint256 _POZRate, //the rate for POZ Holders, how much each token = main coin
uint256 _StartAmount, //Total amount of the tokens to sell in the pool
uint64 _LockedUntil, //False = DSP or True = TLP
address _MainCoin, // address(0x0) = ETH, address of main token
bool _Is21Decimal, //focus the for smaller tokens.
uint256 _Now, //Start Time - can be 0 to not change current flow
uint256 _WhiteListId // the Id of the Whitelist contract, 0 For turn-off
) public payable whenNotPaused {

_Token - ERC20 token address for sale.

_FinishTime - after the time finished the pool expired. PO can withdraw remaining tokens.

_Rate - during the investment period, the rate will be multiplied by the investment amount.

_POZRate - rate for whitelisted users. _POZRate must be greater than the regular rate.

_StartAmount - total amount of the tokens to sell in the IDO. The contract will lock the tokens until the investment time.

_LockedUntil - set to zero to use Direct Sales Pools, or enter a time in the future to use Time-Locked Pools.

_MainCoin - trading token address. Investors will use this token/coin to purchase IDO tokens.

_Is21Decimal - If true, the rate will be rate*10^-21.

_Now - start pool time. Tokens can only be purchased after the start time.

_WhiteListId - the whitelist ID we will be working with. The white list contains a list of users with primary access to sales.

Pool types

The main types are Direct Selling Pools (DSP) and Time Locked Pools (TLP).

  • Direct Sale Pools (DSP): These are pools without any lock-in period, where investors get the token immediately after the swap.
  • Time-Locked Pools (TLP): These pools have a predefined lock-in period and investors receive their swapped tokens only after the completion of this duration.

Pool statuses

enum PoolStatus {Created, Open, PreMade, OutOfstock, Finished, Close} //the status of the pools

  • Created: the pool is exclusively available for $POOLZ token holders.

  • Open: the pool is available for all Poolz users.

  • Out of Stock: the predefined supply of auctioning tokens has been sold-out, but the pool’s duration has not ended. In the case of TLP, tokens will be locked for the remaining duration.

  • Finished: the pool has reached the end of its stipulated duration. Both for DSP and TLP, the leftover tokens are returned to the PO’s wallet at this point. Investors, on the other hand, get their tokens purchased (swapped) through TLP.

  • Closed: the pool is complete and tokens have been duly disbursed.

License

The-Poolz Contracts is released under the MIT License.

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