Open jcnelson opened 1 year ago
General question on depositing to a contract (from @friedger in the sBTC Builders call 17/10/23).
Can the sbtc.clar contract, on receiving a deposit to a contract principal, and assuming the contract implements a trait that defines a callback, then sbtc.clar provides calls the contract and passing on the parameters of the deposit?
General question on triggering withdrawals on layer 2 (the sBTC Builders call 17/10/23). - see https://github.com/stacks-network/sbtc/pull/253
Could a contract initiate a withdrawal on a users behalf? Say in response to an off chain data point changing via some oracle?
It might be desirable to require that a user can only perform N successful withdraw requests if they perform N deposits. Then, at least they've paid for the transaction fees up front.
This SIP supersedes the old SIP-021. It describes the sBTC system as implemented on top of Nakamoto v1.