X-Talk Fungible Token Lending and Borrowing
Last updated
Last updated
The ability to lend a Fungible Token on Chain A and borrow the Fungible Token on Chain B. Both chains may be EVM or Non-EVM compatible blockchain networks. The source token will automatically be locked on Chain A and the equivalent destination token will be minted on Chain B. This allows the Fungible Token to be lent on one platform and used as collateral to borrow Fungible Tokens on any other platform for various purposes.
The ability to lend a fungible token on Avalanche and borrow Fungible Tokens on Solana. The source fungible token will be lent, and the destination fungible token would be borrowed. The token will be usable on the destination chain for transaction fees, staking, governance, and trading.
Technical Workflow
User deposits Fungible Token to the L1X MultiSig smart contract on the Avalanche Blockchain. L1X MultiSig Smart Contract sends these tokens to the L1X Liquidity Pool.
User initiates the Smart Contract on the L1X Chain that makes the Execution Manager ready in terms of listening to the MultiSig contract initiation events.
Execution Manager informs the Rule Engine about Transaction Type. In this use case, it’s ‘L1X_LendBorrow’.
Rule Engine verifies the event and forwards it to the Rule Processor.
Rule Processor filters and sends relevant information to the Rule Database.
Rule Database gives the response for the associated function call.
Rule Engine sends an event for an empty struct to the Execution Manager with function/rules and its relevant variable/function parameter details.
The Execution Manager requests the Execution Register to store the information about Fungible Token deposited to the MultiSig.
Execution Register stores the event information and informs Execution Manager.
Execution Manager invokes L1X MultiSig Smart Contract on the Solana blockchain network for the L1X Liquidity Pool to transfer FT to the destination address.
Event is triggered once FT is successfully transferred to the destination address on the Solana blockchain.
Rule Engine sends the corresponding event for the transaction struct to the Execution Manager.
The Execution Manager provides information about successful FT borrowing on the Solana network to Execution Register.
Execution Register stores the information and updates the Execution Manager.
User is informed about successful FT lending on Avalanche and borrowing on Solana.