Synchronous deposit flow
This page will guide you through activating synchronous deposits.
Last updated
This page will guide you through activating synchronous deposits.
Last updated
Synchronous deposits can be done by calling:
assets
Amount of assets to deposit.
receiver
Recipient of the shares.
referral
Address that referred the depositor. Put the address 0 if not applicable.
if the function isTotalAssetsValid
returns true, users can do synchronous deposits. If it returns false, users must do .
Here is an example of how to decide weither a user should do a synchronous or an asynchronous deposit.