Depositing
Exploring how the deposit function works
Deposits
Using IbAlluoUSD as an example, users can call the deposit function using one of the stablecoins in the list of supported tokens.
IbAlluo.sol
Case 1: If you deposit a token that is a 'supported' token:
If you deposit a supported token, it is sent to our liquidity handler and then the correct amount of IbAlluos are minted to the caller.
Case 2: If you deposit a token that is NOT a 'supported' token:
If you deposit a non-supported token, it is exchanged for the primaryToken
for the IbAlluo through the Alluo Exchange and then the rest of the deposit process is completed.
Case 3: If you deposit a non-supported token and it is not supported by the Alluo Exchange:
If the deposit token is not supported and it is not added to the Alluo Exchange, the function call will revert.
Last updated