Skip to content

Staking Smart Contract Protocol#3

Open
PabloVallejoCrypto wants to merge 4 commits intosolace-fi:mainfrom
cryptol0g1c:main
Open

Staking Smart Contract Protocol#3
PabloVallejoCrypto wants to merge 4 commits intosolace-fi:mainfrom
cryptol0g1c:main

Conversation

@PabloVallejoCrypto
Copy link
Copy Markdown

@PabloVallejoCrypto PabloVallejoCrypto commented Nov 6, 2021

Staking Protocol based on Solidity.

The protocol works with two Smart Contracts.
Contracts at https://github.com/PabloVallejoCrypto/ArgentinaStakingProtocol

First the ERC20 contract to define the token CHAOS(XΟΣ) and send 18 000 000 to owner. Has two minting functions, one the normal for owner but to make it easy I developed another one with free permisions.
The second contract, the Staking one has the basic functionality to work as an staking contract. It is connected to the first contract as it uses the first one as an staking method. It works with a position-based model, where the user can open a position and with time it gets benefits from an specific deposit. Never can waste more than that Benefit Deposit.
The reward method work in a way that if a person stakes the same supply as the total Benefit Deposit it will recieve 100 tokens per block. Otherwise it calculates the proporcional part for rewards.

Owner can mint more tokens at ERC20 and on the Staking contract it can add tokens to the Benefit Deposit, know if an address is a staker, get and change parameters.

You can add fees on the ERC20 and Staking contract in a simple way.

The protocol ERC20 is based on OpenZeppelin Library.
I have used Truffle, Binance, Ropsten, Vercel, NextJS, React and Web3.

I have developed a simple user-owner interface with React and Web3, and it is hosted at Vercel.
(Owner address seedPhrase at website)
https://argentina-web.vercel.app/

Personal CV
chaoticbcn.com

Let me know your feedback about the protocol.

Thanks in advance,
Pablo Vallejo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants