Skip to content

Add SIP: capability-based authority for DeepBook Margin MarginManager - #72

Open
RandyPen wants to merge 1 commit into
sui-foundation:mainfrom
RandyPen:sip-deepbook-margin-capability-auth
Open

Add SIP: capability-based authority for DeepBook Margin MarginManager#72
RandyPen wants to merge 1 commit into
sui-foundation:mainfrom
RandyPen:sip-deepbook-margin-capability-auth

Conversation

@RandyPen

Copy link
Copy Markdown
Contributor

Propose an object-capability authorization path for deepbook_margin's MarginManager, alongside the existing address-based API. Introduces an owner capability and a scoped, non-withdraw operator capability so that shared-object vaults can custody and delegate a margin position (e.g. a delta-neutral hedge leg for LP inventory) without ceding withdrawal rights, while leaving the permissionless liquidation surface unchanged.

Motivated by the LeafSheep vault and its open-source cdpm custody contract.

Propose an object-capability authorization path for deepbook_margin's
MarginManager, alongside the existing address-based API. Introduces an
owner capability and a scoped, non-withdraw operator capability so that
shared-object vaults can custody and delegate a margin position (e.g. a
delta-neutral hedge leg for LP inventory) without ceding withdrawal
rights, while leaving the permissionless liquidation surface unchanged.

Motivated by the LeafSheep vault and its open-source cdpm custody
contract.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant