Deposit and repayment

Flow

Both deposit and repayment transactions will work in the similar technical flows as described below:

  1. At first, user will send a payment transaction to the Axelar multisig account on XRPL. The sent amount, gas fee amount, payload, destination address, destination chain, will be included in the memos field of the transaction. In particular, the memo data representing the payload will contain information about the user action. In this case, it will either be deposit or repayment.

  2. The XRPL <-> Axelar relayer will pick up the payment transaction to the Axelar multisig account, and forward the payload to Axelar's blockchain. The GMP call is confirmed, approved, and executed on Axelar. At this point, user's funds are locked within the Axelar multisig account.

  3. The EVM Sidechain <-> Axelar relayer will approve and execute the message. When the message is executed, Axelar's ITS contract will add to the balance of Strobe's core contract, and call executeWithInterchainToken method of Strobe's core contract that inherits IInterchainTokenExecutable.

  4. Strobe lending core contracts will update their state after a deposit or repayment to reflect the changes.

Last updated