UTXO Management
Maintaining a suitable bridge UTXO collection will greatly improve the bridge’s efficiency.
The bridge has a MIN_DEPOSIT_SATOSHI
with an initial amount of 250,000, and can be adjusted by the bridge DAO.
The bridge has a passive UTXO amount scope, [200, 600], which are also can be adjusted by the DAO.
Once the bridge UTXO amount is less than the lower bound of this passive scope, it will request each withdrawal TX to split bridge UTXO by making change UTXO count more than the inputs count.
Once the bridge UTXO amount is more than the upper bound of this passive scope, it will request each withdrawal TX to merge bridge UTXO by making change UTXO count to less than the intputs count.
The bridge has an active UTXO amount scope, [100, 1000], which are also can be adjusted by the DAO.
Once the bridge UTXO amount is less than the lower bound of this active scope, the UTXO management service will actively build a TX to split the maximum UTXO into 2 even parts.
Once the bridge UTXO amount is more than the upper bound of this active scope, the UTXO management service will actively build a TX to merge 2 minimum UTXOs into a new one.
Those UTXO management TX will be handled equally as a withdrawal TX but the recipient is the bridge itself and no change.
Last updated