Collateralized Lending Agent SIMULATED WALKTHROUGH NO SMART CONTRACTS

Peer-to-peer lending using native Coreum token primitives. Collateral is frozen, not transferred. Default recovery via clawback. The entire lifecycle runs without smart contracts.

MsgFreeze MsgUnfreeze MsgClawback Collateral Lock Auto-Default Timer

1 How It Works

Native Coreum Smart Token features replace the need for smart contract escrow. The issuer's freeze/clawback authority acts as the enforcement mechanism.

📝
1. Request
Borrower requests loan, specifying collateral amount
🧊
2. Freeze
Issuer freezes collateral in borrower's wallet
3a. Repay
Borrower repays → collateral unfreezes
🚨
3b. Default
Deadline passes → clawback collateral

2 Loan Participants

Three parties: the borrower who posts collateral, the lending agent (issuer) who enforces the loan, and the lender who provides funds.

Borrower
testcore1abc...xyz
1,000 TXAI
COLLATERAL
🔒 freeze
Lending Agent
testcore1iss...uer
IDLE
ENFORCER
💰 loan
Lender
testcore1len...der
500 TXAI
LOAN AMOUNT
Collateral Ratio (LTV) 200% (50% LTV)
Liquidation (100%) Warning (120%) Safe (150%+)

3 Loan Lifecycle Simulation

Watch the full lifecycle play out. Choose the outcome: borrower repays on time, or defaults and collateral is clawed back.

Loan Requested
Borrower requests 500 TXAI loan with 1,000 TXAI collateral (50% LTV)
Collateral Frozen
MsgFreeze locks 1,000 TXAI in borrower's wallet
Loan Disbursed
500 TXAI transferred from lender to borrower
Repayment Timer
Auto-default countdown begins (10s for demo)
Awaiting outcome...
Loan Repaid Successfully
Collateral unfrozen via MsgUnfreeze. Borrower's 1,000 TXAI is freely transferable again. No funds were lost. The loan completed its full lifecycle without any smart contract.
Loan Defaulted — Collateral Clawed Back
Repayment deadline passed. MsgClawback recovered 1,000 TXAI from borrower's wallet to the lender. Enforcement was automatic and trustless — no intermediary needed.

4 Event Log

Real-time log of every action in the simulation, including the Coreum message types used.

[ready] Waiting for simulation start...

5 Why No Smart Contracts?

Traditional DeFi lending (Aave, Compound) requires complex Solidity or CosmWasm contracts to hold collateral and enforce liquidation. Bugs in these contracts have caused billions in losses.

TXAI uses Coreum's native Smart Token features instead:

MsgFreeze
Locks tokens in the holder's wallet. They can't transfer or trade. The issuer controls the lock.
MsgUnfreeze
Releases frozen tokens. Used when the borrower repays the loan on time.
MsgClawback
Recovers tokens from any holder. Used to seize collateral on default. No contract needed.
Auto-Default Timer
Server-side countdown. When it hits zero, MsgClawback fires automatically. No oracle needed.

Try It in the Agent Studio

The lending agent is available as chat tools. Ask the AI to create a loan, freeze collateral, or simulate a default.

Open Studio →