ethereum-prism-lib
v0.0.2
Published
JS library for Prism SmartContract
Downloads
1
Readme
JSLib for Ethereum Prism Smart Contract
JSLib for Ethereum Prism Smart Contract allows to earn 30% ETH.
Contract address 0x0d55eBbb67c2415f6038a41Effa710Bf1C1Bc63f
How it's works?
- You send a certain amount to Smart Contract address.
- When smart contract accumulates 130% of the amount you've sent, you'll receive a transfer with income - Amount you've deposited * 1.30.
- Transfers are arranged in the FIFO queue.
How to use it?
Prism Smart Contract is deployed on Ethereum network. There are several transfer levels available: [0.02, 0.05, 0.10, 0.50, 1.00, 2.00, 10.00] ETH. Just send transaction to Smart Contract address and wait for the payment. Of course you can make many deposits. (eg. to check it's really works).
Why it works?
Smart Contract is immutable! Nobody can change that! Moreover it's also open source and everyone can check how it works in deep. There is no possibility to prioritize withdraws.
IMPORTANT NOTICE
Due Smart Contract architecture transaction gas limit has to be grater. I recommend to set to 250_000. Why? Smart Contract automatically sends funds to recipients and it costs gas. You pay gas for previous transaction, but someone else pay for Your transaction.
Example
- X deposits 1 ETH
- Y deposits 1 ETH
- Contract automatically sends 1.30 ETH to X
- Z deposits 1 ETH
- Contract automatically sends 1.30 ETH to Y
Whats more You can process Your own transfer:
- X deposits 1 ETH
- X deposits 1 ETH
- Contract automatically sends 1.30 ETH to X
Recommended
- node v10.16.0
- npm 6.9.0
Configure
const { setConfig } = require("ethereum-prism-lib");
setConfig({
// ... config stuff
})
Usage
const Prism = require("ethereum-prism-lib");
const prism = Prism.prototype.fromMnemonic(someMnemonic);
await prism.transfer("20000000000000000"); // in wei
Tests
Rinkeby address: 0x50b1474b6C9494d1c9ceefD57bD6c67AFB55cDE9
npm install
npm test
NOTICE
- Transaction cost may be greater than You expect, because Ethereum requires gas. It means that when You deposit 1 ETH the balance will be charged more than that (eg. 1.001 ETH).
- New deposits pays income for old deposits. That means - Outcome transfers occur less frequently than deposits.
- You cannot withdraw Your balance whenever You want. You have to wait for Your turn.
- Contract charges 5% fee inside. Fee is accumulated like a balance.
- Each level has independent queue.