Thuta Learning
Blockchain
AdvancedSecurityအဆင့်မြင့်

DeFi

Blockchainသင်ခန်းစာ 26

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • DeFi ရဲ့ protocol model, trust assumptions နဲ့failure modes ကိုရှင်းပြနိုင်ရန်
  • Local simulation/testnet တွင် normal, tampered နဲ့failure cases ကိုစမ်းနိုင်ရန်
  • Real keys/funds မသုံးဘဲ security limitations နဲ့safe practice ကိုအသုံးချနိုင်ရန်

DeFi (Decentralized Finance) ဆိုတာ bank/broker ကဲ့သို့ central intermediary မပါဘဲ smart contract များဖြင့် financial services လုပ်ရန်ကြိုးစားတဲ့ ecosystem ပါ။ DEX, lending/borrowing, liquidity pool, staking, yield farming စတာတွေပါဝင်နိုင်ပါတယ်။

DEX

Central exchange မဟုတ်ဘဲ liquidity pool/order system ဖြင့် token swap လုပ်နိုင်တဲ့ protocol။

Liquidity Pool

Users များက asset pair ထည့်ပြီး swap liquidity ပေးသည်။ Fee reward ရနိုင်သော်လည်း risk ရှိသည်။

Lending/Borrowing

Collateral ထားပြီးချေး/ငှားနိုင်တဲ့ smart contract system။ Liquidation risk ရှိသည်။

Impermanent Loss

Liquidity provider ဖြစ်တဲ့အခါ token price ratio ပြောင်းလဲမှုကြောင့်ရနိုင်တဲ့ loss type။

⚠️ Safety Note

High APY, guaranteed yield, risk-free earning ဆိုသော claim များကိုမယုံပါနှင့်။ DeFi တွင် smart contract bug, liquidation, impermanent loss, oracle failure, rug pull risk ရှိပါတယ်။

You should see
DeFi က powerful ဖြစ်ပေမယ့် bank account လို insured/supported environment မဟုတ်နိုင်ပါ။

ပိုပြီးနားလည်ထားရမယ့် အချက်

DeFi protocols က smart contracts ဖြင့်exchange, lending, derivatives, asset management စတဲ့ financial operations ကိုပြုလုပ်ပြီး composability ကြောင့်dependency risk ထပ်ပေါင်းပါတယ်။ Liquidity, slippage, liquidation, oracle, smart-contract, governance/admin, bridge, stablecoin, MEV နဲ့regulatory risks ကိုAPY တစ်ခုမတိုင်မီစစ်ရပါတယ်။ Transaction simulation နဲ့allowance review ကကူညီသော်လည်း loss မဖြစ်မနေကာကွယ်မပေးပါ။

လက်တွေ့မှာ ဘယ်လိုအသုံးချမလဲ

Hypothetical lending protocol ကို collateral ratio, liquidation threshold, oracle delay, liquidity shock နဲ့admin upgrade scenarios ဖြင့်paper simulation လုပ်ပါ။

ကိုယ်တိုင်စမ်းကြည့်ရန်

DeFi နမူနာကို real funds သို့real seed/private key မသုံးဘဲ local simulation သို့testnet မှာပြန်တည်ဆောက်ပါ။ Normal case နှစ်ခု၊ tampered/adversarial case တစ်ခုနှင့် failure case တစ်ခုအတွက် expected state နဲ့verification evidence ကိုမ run မီရေးထားပါ။

Security သတိပေးချက်

High APY ကိုrisk-free return လို့ယူဆခြင်းက token inflation, leverage နဲ့smart-contract failure ကိုဖုံးပါတယ်။

Ethereum Developer Documentation — DeFi — ethereum.org

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • High APY ကိုrisk-free return လို့ယူဆခြင်းက token inflation, leverage နဲ့smart-contract failure ကိုဖုံးပါတယ်။
  • Happy path တစ်ခုအောင်တာနဲ့ system secure သို့production-ready ဖြစ်ပြီဟုယူဆခြင်းက adversarial, key-management နဲ့economic risks များကိုလွတ်စေနိုင်ပါတယ်။

လက်တွေ့လေ့ကျင့်ခန်း

DeFi နမူနာကို real funds သို့real seed/private key မသုံးဘဲ local simulation သို့testnet မှာပြန်တည်ဆောက်ပါ။ Normal case နှစ်ခု၊ tampered/adversarial case တစ်ခုနှင့် failure case တစ်ခုအတွက် expected state နဲ့verification evidence ကိုမ run မီရေးထားပါ။

အလုပ်ဖြစ်ကြောင်း ဒီလိုသိမယ်: DeFi က powerful ဖြစ်ပေမယ့် bank account လို insured/supported environment မဟုတ်နိုင်ပါ။

နောက်ဆုံးပြင်ဆင်ရက်

Progress ကို ဤ browser (ဤစက်) တွင်သာ သိမ်းထားပါသည်။ အခြားစက်များနှင့် sync မလုပ်ပါ။

ဤသင်ခန်းစာတွင် အမှားတွေ့ပါက အကြောင်းကြားရန်သင့် email app ကို ဤသင်ခန်းစာလိပ်စာ ဖြည့်ပြီးသားဖြင့် ဖွင့်ပေးပါမည် — သင်ကိုယ်တိုင် ပို့မှသာ ပို့မည်ဖြစ်သည်။

DeFi | Thuta Learning