back to portfolio

ReactiveFlow-Lender

Cross-chain lending: ETH collateral on Sepolia → MATIC loan on Kopli, no centralized bridge.

Problem

Cross-chain lending typically routes through centralized bridges and custodians.

Mechanism

Reactive Smart Contracts watch the deposit on Sepolia and autonomously issue the loan on Kopli — pure on-chain message passing.

Outcome

Deposit ETH on one chain, receive MATIC on another, repay to release collateral. Zero off-chain operators.

How it works

01Deposit ETH

Lock collateral via depositCollateral() on Sepolia.

02RSC observes

A Reactive Smart Contract sees the deposit event.

03MATIC issued

Loan is automatically minted on Kopli to the same address.

04Repay & unlock

repayLoan() on Kopli triggers collateral release on Sepolia.

Stack

SolidityReactive Smart ContractsSepoliaKopliChainlink OracleMetaMask

Try it

  1. 01Open the live demo and connect MetaMask on Sepolia.
  2. 02Call depositCollateral() with an ETH amount — the UI handles the tx.
  3. 03Switch your wallet to Kopli; the MATIC loan should already be there.
  4. 04When ready, call repayLoan() on Kopli to release your ETH back on Sepolia.
Live demo GitHub