Skip to content

How to keep escrow of fa in contract? #390

Answered by 0xaptosj
ajaythxkur asked this question in Questions
Discussion options

You must be logged in to vote

You can create an object (akin to a contract account in evm) and let it escrow FA.

struct FAEscrow has key {
    // the FA you want to escrow
    fa_metadata: Object<Metadata>,
    // the fungible asset store that escrow the FA
    fa_store: Object<FunigbleStore>,
    // used to generate signer for the object so you can transfer FA out\
    extend_ref: ExtendRef
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ajaythxkur
Comment options

@0xaptosj
Comment options

@ajaythxkur
Comment options

@0xaptosj
Comment options

@ajaythxkur
Comment options

Answer selected by ajaythxkur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants