Swimming in two pools
Upgrade of the Stacks blockchain to version 2.1, brought new stacking features. One of them is to increase the stacking amount while your STX are locked. This works for direct stacking and pooled stacking.
The implementation for pooled stacking allows to switch the pool while the stacked amount is increased. Look at the following transactions that can happen in one block or more:
You delegate 100 STX to pool A.
Pool A locks 100 STX for you.
You delegate 300 STX to pool B.
Pool B sees that you have already 100 STX locked and increases the locked amount by 200 STX
That means that for the upcoming cycle, you earn rewards for 100 STX with pool A and rewards for 200 STX with pool B.
That is fun!
However, it makes live harder for pool operators, in particular handling the payout. It is currently not possible to determine how much you are contributing to a pool through a contract call. The stacking info of pox-2 contract (pox-2.get-stacker-info
) only provides that details about the last pool and the account info (stx-account
) tells only about the total amount of locked stacked and locking period. That means there can’t be a stacking pool that distributes rewards automatically through a contract based on the locked amounts of all pool members.
If a pool wants to do automatic reward distribution, the pool needs to keep track of the locked amount for each pool member in its own stacking pool contract.
Read more
Synthetic Events in Stacks
Most blockchains have a way to inform users about events that happened in a smart contract. Some events are emitted by default, others are defined explicitly by code in the contract. In Stacks, all changes involving a fungible or non-fungible token create events. For example, transferring the SIP-1...
Bridging BTC and STX (v5)
This is an update to the first article about the Clarity Bitcoin library from May 2021. Clarity Bitcoin library is a tool that allows users to trigger action on the Stacks blockchain if and only if a certain Bitcoin transaction was mined on the Bitcoin blockchain. The Clarity Bitcoin library is a s...
Transparent Reward Distributions
Fast Pool is a non-custodial stacking pool where all participants are pool operators. There is only one privileged reward administrator. The pool operators can lock the delegated STX tokens, extend the locking period and increase the locked amount after a 1-week security window for any pool member. ...