stacksgov / sips

Community-submitted Stacks Improvement Proposals (SIPs)
132 stars 80 forks source link

SIP: Nakamoto sBTC #156

Open jcnelson opened 1 year ago

jcnelson commented 1 year ago

This SIP supersedes the old SIP-021. It describes the sBTC system as implemented on top of Nakamoto v1.

radicleart commented 11 months 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?

radicleart commented 11 months ago

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?

jcnelson commented 11 months ago

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.