This project allows anyone to create delegation pool and become validator. Also it allows anyone to earn interest by delegating Grams to potential Validators. (Risks will be handled by reputation system and security deposits). It is non-custodial solution, it is web based solution (all private keys and operations with it are on client side). It is WEB platform features like:
- Cross-platform client side wallet
- Integrated Dapp that allows to delegate and withdraw funds without CLI
Users will interact with it in two ways. Delegators will just use web based platform or any compatible wallet. They just need to find a delegation pool and send funds to it. They can track statuses of pool via Web platform or can subscribe to the bot notification. Validators can deploy delegation pool via WEB platform. However, to ensure that everything is ok, they will need to use terminal to sign all neccesary data to stake funds from delegation pool to elector pool.
THE BEST WAY to run everything locally is use docker compose
docker-compose up
We assume that anyone who is going to run this project from scratch is familiar with: C++, Python, Angular, JS, Fift, Func, Go Bash and Zsh as well as MongDB. To run from scracth you will need light client, that will be used by contracts and by api folder. Also you need to have npm installed to build frontend.
To deploy smart contract go to: https://github.com/button-tech/ton-delegation-pool/contracts
To run backend go to: https://github.com/button-tech/ton-delegation-pool/api
To run frontend go to: https://github.com/button-tech/ton-delegation-pool/front
It is possible to deploy smart contract via WEB frontend only. We use our own backend wrappers over light client to send Boc and run some methods.
Deposits and stake to elect
Recover stake and withdrawals
Availible here
Telegram: https://t.me/ton2Contest/2
Local: GitHub
Try it here
- Create account, use short address and send funds on it
- Go to Defi => Delegation
If you have Validator Node - you can create Delegation Pool
If you do not have it - you can delegate funds by going to Delegate
Each Delegation pool have multiple statuses for user:
✳️ Raising - open to send funds on it. Later Validator will send funds to elector
🔴 Fail - If deadline will be exceeded or something went wrong. You can withdraw your funds
🕔 Waiting - Wait for your funds to be unfrozen
💸 Withdraw - Get your funds back with rewards
We assume that the real commission fees will be significantly lower than right now
fast way (use our image for run api):
# docker-compose up
full build:
# docker-compose -f docker-compose-full-build.yml build
# docker-compose -f docker-compose-full-build.yml up
Open your browser at http://127.0.0.1 - front Open your browser at http://127.0.0.1:3000/docs - API(Swagger)
- Validator fee commission
- Security deposit
- Sub delegation Charity pool and ICO pool
Thanks to https://github.com/EmelyanenkoK
With https://github.com/EmelyanenkoK/ValeriTon that was used as a base for web version.
We customized these library to deploy our contract and run functions on it
Nick Kozlov - CTO and Co-founder of BUTTON Wallet (@enormousrage, [email protected])
Kirill Kuznecov - Co-founder of BUTTON Wallet (@krboktv, [email protected])
Alexey Prazdnikov - Fullstack developer at BUTTON Wallet (@noprazd, [email protected])