Open reinamora137 opened 1 month ago
{
"p": "SRC-20",
"op": "BULK_XFER",
"tick": "LUFFY",
"transactions": [
{"amt": "1000", "dest": "dest1", "lock_amt": "10", "unlock_block": "899999"},
{"amt": "100", "dest": "dest2", "lock_amt": "1", "unlock_block": "899999"}
]
}
Perhaps unlocking could be accomplished at the BTC core transaction layer in a psbt transaction? Not 100% sure this is needed at the protocol level given future potential of using psbt..??
the point with bitcoin timelock is that as i have understanded the transaction cannot be mined until this specific block so the indexer doesn't know if the tx has been sent to the mempool and is waiting to be included in a block, so user can spend that tokens in other transaction and the locking has not any effect
*Add the ability for transfers to send to an address that are locked until x block height
This is a consensus change that will need to be approved amongst all indexers. This will require a locked balance column in the src20valid table for each wallet, and an unlock block for each amount locked. We would need to consider multiple unlock heights for each amt, and multiple tokens that are locked in each wallet.
If a user has a locked balance they will be unable to transfer - any incoming transfers for that address would be invalidated by the indexer.