QKC Staking Is Now Available Again For Small Stakeholders

Nico
2 min readMar 26, 2021

During the last few weeks me and a miner have partnered up to create a new staking pool contract for QuarkChains side chains. The contract code can be found on my GitHub page.

Please be sure to understand how contract interaction works with QuarkChain by reading this article first.

How to add stakes?

You can add stakes by simply sending your QKC to the smart contract, however the staking pools require a minimum amount of QKC to be sent in order to accept your allocation, so be sure to fulfill this minimum stake requirement which currently sits at 10 000 QKC. Another thing to note is, that you need at least 200 000 gas limit in order for your transaction to succeed, so keep that in mind.

How to withdraw stakes?

You can withdraw your stakes by calling the withdrawStakes() function and typing in the desired amount you wish to withdraw. However withdrawing is only possible when the pool is currently not mining, so withdrawals won’t always be available. Unlocking periods are currently scheduled for the 1st of a month between 14:00 and 22:00 UTC.

Contract functions

getStakesWithRewards
Returns the amount of QKC the provided address currently has in the staking pool.

withdrawStakes
Transfers the provided amount to the function caller (requires getStakesWithRewards(caller) to be greater or equal than the amount) .

The staking pools

As of writing this article, two contracts have been deployed:

Chain 2: 0x94f151BBD12854f93cf92c882B88E3790F4079560002C66c

Chain 3: 0x006631C067D34928F55520511f01A5aBfA0AC67a0003C66c

In order to interact with the contract you need this ABI interface.

Disclaimer: The contract hasn’t gone through a security audit, and the individual accepts all risks by using it.

If you have any further questions feel free to join our Telegram group.

Side note

I am still looking for miners and developers to create more exciting staking pools and a web interface. If you are interested DM me on Telegram (@NicoP14k01m) or Discord (Mineco#2173) so we can clarify further details.

--

--