WEEK 2 · KIICHAIN BUILDER SERIES

Micro Lending Protocol

A beginner-friendly decentralized lending smart contract built on KiiChain Testnet Oro. Deposit KII, request loans, and repay onchain — fully transparent, fully permissionless.

1336
Chain ID
KII
Currency
0x3c0B
Contract
Live
Status
WEEK 2 · KIICHAIN BUILDER SERIES
Building a
Micro Lending
Smart Contract
on KiiChain
contract MicroLending {
  mapping(address => uint256)
  public deposits;
  function deposit() public payable {
    ...
  }
}
⬇️
Deposit KII
🤝
Request Loan
🔄
Repay Loan
📊
Track
K
ORO
⛓ KiiChain Testnet Oro
🔐 Onchain · Permissionless

Lending Dashboard

Connect your wallet to interact with the live MicroLending contract on KiiChain Testnet Oro.

⚠️ Wrong network detected. Please switch to KiiChain Testnet Oro (Chain ID: 1336).
Connected Wallet
Not connected
Network
Not connected
💜
My Deposit Balance
KII
Amount deposited to contract
🏦
Active Loan
KII
Outstanding loan amount
👛
Wallet KII Balance
KII
Native token in your wallet
📋
Contract Address
KiiChain Testnet Oro
⬇️
Deposit KII
Add funds to earn lending capacity
Enter the amount of KII to deposit into the contract
🤝
Request Loan
Borrow KII from the protocol
Amount must be available in protocol liquidity
🔄
Repay Loan
Clear your outstanding balance
Current Loan Outstanding
— KII
This amount will be sent to repay your loan
📜 Transaction History (this session)
No transactions yet in this session
📅 WEEK 2 · KIICHAIN BUILDER SERIES

About This Project

This is a Week 2 KiiChain builder project exploring decentralized lending mechanics and PayFi infrastructure. The MicroLending smart contract demonstrates how permissionless finance can work at a protocol level — anyone can deposit collateral, request loans, and repay without intermediaries.

Built on KiiChain Testnet Oro, this project showcases the capabilities of the KiiChain ecosystem for real-world financial use cases. KiiChain is purpose-built for PayFi — bridging traditional finance and decentralized infrastructure.

Solidity
ethers.js
MetaMask
KiiChain
EVM Compatible
Testnet Oro
PayFi
💜
Deposit KII
Deposit native KII tokens directly to the smart contract, building up your onchain balance for collateral.
🤝
Request Loan
Request a loan from available protocol liquidity. All loan data is stored transparently onchain.
🔄
Repay Loan
Repay your active loan in full by sending the exact loan amount back to the smart contract.
📊
Live Onchain Data
All balances and loan data are read directly from the blockchain in real-time with every wallet connection.

Contract Reference

Network
KiiChain Testnet Oro
Chain ID
1336
Currency
KII (Native)
RPC Endpoint
https://json-rpc.uno.sentry.testnet.v3.kiivalidator.com/