Skip to content

Deposit function in new smart contract (Coin vs FungibleAsset) #561

Discussion options

You must be logged in to vote

A fourth option is to write a single entry function that uses conditionals to check which flow to walk through. 😌

The Fungible Asset flow will be your standard, while the Coin flow will have an additional step of converting the coin to fungible asset using coin_to_fungible_asset (reference) tacked onto the beginning.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@artur-abliazimov
Comment options

@kshitjee
Comment options

@artur-abliazimov
Comment options

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