Strobe Protocol
  • Introduction
  • Terminology
  • Products
  • Money market
    • Rationale
    • User guide
    • Architecture
      • Deposit and repayment
      • Withdrawal and borrowing
      • Liquidation
      • EVM Sidechain lending internals
    • Interest rate strategies
      • Interest rate strategy 1
    • Asset parameters
      • Definitions
      • Values
    • Overcollateralization and collateralization ratio
    • Health factor and liquidation
    • Oracle
    • Axelar
      • General message passing
      • Failure conditions and solutions
    • Risks
    • FAQ
  • Useful links
Powered by GitBook
On this page
  1. Money market
  2. Architecture

Withdrawal and borrowing

PreviousDeposit and repaymentNextLiquidation

Last updated 2 months ago

Flow

Both withdrawal and borrowing transactions will work in the similar technical flows as described below:

  1. Axelar and its relayers will handle the cross-chain communication. It is like Step 2, but in the opposite direction.

  2. When the message is executed, Axelar multisig account will send payment to the user address.

At first, user will send a to Axelar multisig account on XRPL. The sent amount, gas fee amount payload, destination address, destination chain will be included in 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 withdrawal or borrowing. It is important to note that the sent amount will be a payment of zero because we are sending a payment transaction to trigger withdrawal or borrowing, and not to send funds over.

Axelar and its relayers will handle the cross-chain communication. The details are explained in as well as .

When the message is being executed on EVM Sidechain, that inherits .

After the message is executed, Strobe core lending contract will call . This will trigger Strobe core contract's balance to be deducted at the relevant and funds to be sent back to the XRPL side.

payment transaction
memos field
Deposit and repayment
https://docs.axelar.dev/dev/general-message-passing/overview/
Axelar ITS contract will call executeWithInterchainToken method of Strobe's core contract
IInterchainTokenExecutable
interchainTransfer method of Axelar ITS contract
interchain token contract