Alpaca Finance
ไทย
ไทย
  • 🧭สารบัญ
  • 🦙Alpaca Finance
  • โปรโตคอลของเรา
    • 🏆ผลิตภัณฑ์ของเรา
    • 📈เป็นส่วนหนึ่งของ Alpaca Finance
      • ข้อมูลเบื้องต้นเกี่ยวกับ 6 กลยุทธง่ายๆในการลงทุนกับ Alpaca Finane
      • กลยุทธ์ที่ 1: ถือทรัพย์สินไว้และสร้างผลตอบแทนที่สูงด้วยความเสี่ยงที่ต่ำโดยการ lend และ stake
      • กลยุทธ์ที่ 2: ถือคู่เหรียญเพื่อได้รับผลตอบแทนทบต้นโดยไม่มีการ leverage
      • กลยุทธ์ที่ 3: เพิ่มผลตอบแทนจาก stablecoin ของคุณ
      • กลยุทธ์ที่ 4: สร้างผลตอบแทนเพิ่มขึ้นหลายเท่าตัวในตลาดกระทิง (Bull Market)
      • กลยุทธ์ที่ 5: สร้างกำไรจาก Yield Farm ในตลาดหมี (Bear Market)
      • กลยุทธ์ที่ 6: สร้างผลตอบแทนอย่างทวีคูณในทุกๆสภาพตลาดโดยการป้องกันความเสี่ยง
    • 🗺️แผนการทำงาน
    • 🔒ความปลอดภัย
    • 📄ความโปร่งใส (การ audit และ contracts)
    • 🔗ลิงค์
    • 📰สื่อที่ครอบคลุม
    • ❤️การกุศล
    • 🌐พารามิเตอร์สากลของโปรโตคอล
      • ⏫พารามิเตอร์ของ Leveraged Yield Farming
      • 📈โมเดลอัตราดอกเบี้ยกู้ยืม AF1.0
      • 📖พารามิเตอร์ของ Automated Vault
      • 📗พารามิเตอร์ของ Perpetual Futures Exchange
      • 📙พารามิเตอร์ของ AF2.0
  • เกี่ยวกับโทเค็น
    • 📀เหรียญ ALPACA
    • 💰เหรียญ ib
    • ⚖️การจัดสรรรีวอร์ดของ Pool
    • 🔥หลักฐานการเผาเหรียญ
      • รายละเอียดแหล่งที่มาของการเผาเหรียญ
  • Lending
    • 🏦แนะนำเกี่ยวกับ Lending
    • ❗ความเสี่ยง
    • ⏭️คู่มือแบบทีละขั้นตอน
      • การ Lend และ Stake
      • การถอนสินทรัพย์
  • leveraged yield farming
    • 🚀แนะนำเกี่ยวกับ Leveraged Yield Farming
    • 🏊พารามิเตอร์เฉพาะ Pool
      • PancakeSwap Pools
      • Mdex Pools
      • Biswap Pools
      • SpookySwap Pools (เลิกใช้แล้ว)
      • WaultSwap Pools (เลิกใช้แล้ว)
    • 🧮กลไกของ Leveraged Yield Farming
      • ฟาร์ม PancakeSwap
      • ฟาร์ม Mdex
      • ฟาร์ม Biswap
      • ฟาร์ม SpookySwap (เลิกใช้แล้ว)
      • ฟาร์ม WaultSwap (เลิกใช้แล้ว)
    • 🌊การบังคับชำระหนี้ของ AF1.0 (AF1.0 Liquidation)
    • ❗ความเสี่ยง
    • ⏭️คู่มือแบบทีละขั้นตอน
      • การเปิด position ยีลด์ฟาร์มด้วยการใช้เลเวอเรจ (Leveraged Yield Farming)
      • การปรับระดับเลเวอเลจ Position
      • การปิด position บางส่วน/ทั้งหมด ใน Leveraged Yield Farming
      • การรับผลตอบแทน
      • การบังคับชำระหนี้ Positions (Liquidate)
  • Automated Vaults
    • ⚙️แนะนำเกี่ยวกับ Automated Vaults
      • กลยุทธ์ Market-Neutral
      • กลยุทธ์ Savings Vault
    • 🧮กลไกของการ Hedge
    • ⏬กลไกการลด Leverage ของ Vault
    • 🔏Automated Vault ส่วนตัว
    • 📈ผลการทดสอบ Backtest
    • ❗ความเสี่ยง
    • ⏭️คู่มือแบบทีละขั้นตอน
      • ลงทุนใน Automated Vault
      • ดู position การลงทุนใน Vault อัตโนมัติ
      • ถอนการลงทุนจาก Vault อัตโนมัติ
  • Perpetual Futures Exchange
    • 🔮แนะนำเกี่ยวกับ Perpetual Futures Exchange
      • Trader
      • Liquidity Provider
    • 🚀แผนการเปิดตัว
    • 💲โปรแกรมส่วนลดค่าธรรมเนียมการเทรด
    • 🎁โปรแกรมการแนะนำเพื่อน
    • ❗ความเสี่ยง
    • ⏭️คู่มือแบบทีละขั้นตอน
      • เปิด Leveraged Position
      • จัดการ Leveraged Position
      • ปิด Leveraged Position
      • แลกเปลี่ยนสินทรัพย์
      • ลงทุน & Stake โทเค็น ALP
      • Unstake & ถอนเงินจากโทเค็น
  • Alpaca Finance 2.0
    • 💎แนะนำเกี่ยวกับ Alpaca Finance 2.0
      • Money Market
      • Leveraged Yield Farming
    • 🚀แผนการเปิดตัว
    • ⭐รางวัลสิ่งจูงใจ
    • 🌊การบังคับชำระหนี้ของ AF2.0 (AF2.0 Liquidation)
    • ❗ความเสี่ยง
    • ⏭️คู่มือแบบทีละขั้น
      • ฝาก
      • กู้
      • ชำระหนี้
      • ถอน
      • โอนเงินระหว่างบัญชี
      • กลยุทธ์การลูป
  • การกำกับดูแล
    • 🗳️Governance Vault
    • 🍃เกรซซิ่งเรนจ์ (Grazing Range) (แบบใหม่)
    • ⚡การถอนล่วงหน้า
    • 🔎รายละเอียดแหล่งที่มาของผลตอบแทนใน Governance
    • 📝การปรึกษาหารือเรื่องการกำกับดูแลและการโหวต
    • 🗒️ข้อมูลของ AIP (Alpaca Improvement Proposal)
      • AIP-1: การจัดการรางวัล ITAM
      • AIP-2: Governance Vault บน Fantom
      • AIP-3: การรับมือค่าเสียหายจากการถอนเงินล่วงหน้าใน Governance Vault
      • AIP-4.1: การรับมือหนี้เสียที่พึ่งเกิดบน position ของ WaultSwap
      • AIP-4.2: วิธีการกำจัดความเสี่ยงที่จะเกิดหนี้เสียที่เกิดจาก positions ที่เหลืออยู่บน Waultswap
      • AIP-5: การปรับโมเดลอัตราเงินกู้
      • AIP-6.1: การจำกัดการเข้าถึง Automated Vault
      • AIP-6.2: การจำกัดการเข้าถึง Automated Vault
      • AIP-7: การรับมือหนี้เสียที่พึ่งเกิดบน Fantom Network
      • AIP-8.1: การเพิ่มประโยชน์ของ AUSD โดยการเพิ่มสิทธิ์ในการเข้าถึง high-leveraged AVs
      • AIP-8.2: การเพิ่มประโยชน์ของ AUSD โดยการเพิ่มสิทธิ์ในการเข้าถึง high-leveraged AVs
      • AIP-9: การฝากกองทุนการชำระหนี้เข้าไปในพูลเงินฝากในระหว่างการรอ buyback
      • AIP-10: เพิ่มประสิทธิภาพให้กับความชันของอัตราดอกเบี้ยกู้ยืม
      • AIP-11: การปรับค่าธรรมเนียมการพยุงราคาสำหรับ AUSD เพื่อช่วยให้ราคาถูกตรึง
      • AIP-12: การรับมือหนี้เสียที่พึ่งเกิดจากการ depeg ของ stkBNB
      • AIP-13: การนำข้อจำกัด xALPACA ในการลงทุนใน high-leveraged Automated Vaults ออก
      • AIP-14: ปิด LYF positions ที่เหลืออยู่ในพูล stkBNB-BNB เพื่อหลีกเลี่ยงหนี้เสียที่อาจเกิดขึ้นในอนาคต
      • AIP-15.1: สิ่งจูงใจสำหรับผลิตภัณฑ์ที่กำลังจะปล่อย (Perp, AF2.0)
      • AIP-15.2: วิธีการแจกจ่าย - สิ่งจูงใจสำหรับผลิตภัณฑ์ที่กำลังจะปล่อย (Perp, AF2.0)
      • AIP-15.3: มูลค่าสิ่งจูงใจสำหรับ Perp - สิ่งจูงใจสำหรับผลิตภัณฑ์ที่กำลังจะปล่อย (Perp)
      • AIP-15.4: มูลค่าสิ่งจูงใจสำหรับ AF2.0 - สิ่งจูงใจสำหรับผลิตภัณฑ์ที่กำลังจะปล่อย (AF2.0)
      • AIP-15.5: แหล่งที่มาสำหรับสิ่งจูงใจ - สิ่งจูงใจสำหรับผลิตภัณฑ์ที่กำลังจะปล่อย (Perp, AF2.0)
      • AIP-16: การปรับอัตราการกู้ยืมที่สูงที่สุดบน Slope3
      • AIP-17: การรับมือโทเค็น ALPACA ส่วนเกินจากสิ่งจูงใจใน AIP-15
      • AIP-18: การนำ Leveraged Yield Farming สำหรับ pools ใน MDEX ออก
      • AIP-19: การใช้งาน Shielded Voting
      • AIP-20: การทำให้โครงสร้างค่าธรรมเนียมการฝากของ AF1.0 สอดคล้องกับของ AF2.0
      • AIP-21.1: การะปรับวิธีการรับมือหนี้เสียจากเหตุการณ์ stkBNB depeg
      • AIP-21.2: การะปรับวิธีการรับมือหนี้เสียจากเหตุการณ์ stkBNB depeg
      • AIP-22: งบการตลาดสำหรับ AF2.0 และ Alperp
      • AIP-23: ปิด Leveraged Yield Farming สำหรับ TUSD
      • AIP-24.1: การใช้งาน Governance Vault แบบใหม่
      • AIP-24.2: การใช้งาน Governance Vault แบบใหม่ - ระยะเวลาการปลดล็อค
      • AIP-24.3: การใช้งาน Governance Vault แบบใหม่ - การโอนย้าย
      • AIP-24.4: การใช้งาน Governance Vault แบบใหม่ - การถอนล่วงหน้า
      • AIP-24.5: การใช้งาน Governance Vault แบบใหม่ - โมเดลการถอนล่วงหน้า
      • AIP-25: การย้ายจาก AF1.0 -> AF2.0
      • AIP-26: การย้าย Governance Vault
      • AIP-27: การอัพเดทแผนประกัน Alpaca
      • AIP-28: การอัพเดทโครงสร้างการโหวต Governance
      • AIP-29.1: การแลกเปลี่ยน BUSD ที่เหลืออยู่ใน AF1.0 เป็น USDT
      • AIP-29.2: คิดค่าธรรมเนียมการแลกเปลี่ยนจากผู้ฝาก BUSD ที่เหลืออยู่
      • AIP-29.3: กำหนดค่าธรรมเนียมการแลกเปลี่ยน
      • AIP-30: ข้อเสนอผลิตภัณฑ์ใหม่ - Stablecoin
      • AIP-31.1: การจัดการทรัพย์สินที่เหลือใน AUSD’s stable swap module
      • AIP-31.2: การจัดการทรัพย์สินที่เหลือใน AUSD’s stable swap module
    • ⏭️คู่มือแบบทีละขั้นตอน
      • ล็อค ALPACA ใน Governance Vault
      • การล็อค ALPACA เพิ่ม/การเพิ่มระยะเวลาการล็อค
      • การรับรางวัลจาก Governance Vault
      • การเพิ่มรายการเหรียญโทเค็นใน MetaMask ของคุณ
      • วิธีการโหวต Alpaca Improvement Proposal (AIP)
      • การถอน ALPACA ล่วงหน้าออกจาก Governance Vault
      • การถอน ALPACA จาก Governance บน BNB Chain
      • การถอน xALPACA จาก Governance Vault แบบเก่า
  • Join the herd (Alpacareers)
    • 🚀เรากำลังเปิดรับสมัคร!
  • ALPIES
    • 🌗แนะนำเกี่ยวกับ Alpies
    • 🧑‍🏫การ Bridge Alpies
      • การ Bridge Alpies จาก ETH ไปสู่ BNB Chain
      • การ Bridge Alpies จาก BNB Chain ไปสู่ ETH
    • ⚡การเพิ่ม Leveraged
  • ศูนย์ช่วยเหลือ
    • 👩‍🏫อัลปาก้า อะคาเดมี่ (Alpaca Academy)
      • บทที่ 0: วิธีซื้อ Alpaca และเริ่มรับผลตอบแทนสำหรับมือใหม่ (การให้กู้+การ stake)
      • บทที่ 1: กรณีการใช้งานเฉพาะของ Alpaca Finance - ชอร์ตเพื่อทำกำไร
      • บทที่ 2 - ความรู้เบื้องต้นเกี่ยวกับการ hedge ด้วยการกู้ยืมสองด้าน (Double-sided Borrowing)
      • บทที่ 3 - ความเสี่ยงการโดนบังคับชำระหนี้ใน Leveraged Yield Farming
      • บทที่ 4 การเปิดและปิด position โดยไม่เสียค่า swap fee
      • บทที่ 5 - ความจริงเกี่ยวกับ Impermanent Loss และสิ่งที่คนส่วนใหญ่เข้าใจผิด
      • แบบทดสอบความรู้ (และรับรางวัล NFTs)
    • 📚บทความเกี่ยวกับความรู้ทั่วไป
      • เรียนรู้เกี่ยวกับเศรษฐศาสตร์และความปลอดภัยในโลก DeFi
      • Yield Farming และ Liquidity Mining: กลไกขับเคลื่อนการเติบโตของ DeFi
      • การใช้เครื่องมือ DeFi ขั้นสูงเพื่อการสะสมทรัพย์สินให้เติบโตและปลอดภัยด้วย Alpaca Finance
    • ❓คำถามที่พบบ่อย
    • 🧰เครื่องมือที่มีประโยชน์
    • 📘คำศัพท์สำคัญและวิธีการคำนวณ
      • 🧮การคำนวณ APY
      • 📈การคำนวณ กำไร/ขาดทุน
    • ⚠️ข้อความ Error ทั่วไป
    • 💸โอกาสในการหาผลตอบแทนเป็น ALPACA บนแพลตฟอร์มอื่น
  • นักพัฒนา
    • 🐞โปรแกรม Bug Bounty
    • 🎛️การกำหนดค่าโปรโตคอล
    • 💻เชื่อมต่อกับ Alpaca Finance
    • 🏛️คู่มือการ Repurchase AF2.0
    • ⚡คู่มือการ Flashloan AF2.0
  • ผลิตภัณฑ์ในอดีต
    • 💵AUSD (แบบเก่า)
      • 💵แนะนำเกี่ยวกับ AUSD
      • 💹วิธีการเข้าร่วม
      • 💦การบังคับชำระหนี้ของ AUSD (Liquidation)
      • 〰️กลไกการรักษาความเสถียรในราคาของ AUSD (AUSD Price Stability Module)
      • ❗ความเสี่ยง
      • ⏭️คู่มือแบบทีละขั้นตอน
        • เปิด AUSD position
        • การปรับ AUSD Position
        • ปิด AUSD position ทั้งหมด/ปิด AUSD position บางส่วน
        • เพิ่ม/ถอน AUSD-3EPS LP tokens
      • 📔พารามิเตอร์ของ AUSD
    • 🗳️Governance Vault (แบบเก่า)
    • ⚡การถอนล่วงหน้า (แบบเก่า)
    • 🌿เกรซซิ่งเรนจ์ (Grazing Range) (แบบเก่า)
    • 💪Stronk Vault
Powered by GitBook
On this page
  • หลักการออกแบบ
  • Timelock
  • กระเป่า Multi-sig
  • พารามิเตอร์ที่ปรับได้
  • FairLaunch Contract
  • Vault Contract
  • PancakeswapWorker Contract
  • SimplePriceOracle Contract
  • SimpleVaultConfig
  • ConfigurableInterestVaultConfig
  • PancakeswapWorkerConfig

Was this helpful?

  1. นักพัฒนา

การกำหนดค่าโปรโตคอล

Previousโปรแกรม Bug BountyNextเชื่อมต่อกับ Alpaca Finance

Last updated 2 years ago

Was this helpful?

หลักการออกแบบ

เราได้ออกแบบพารามิเตอร์ต่างๆใน Alpaca Finance ให้มีการสามารถเปลี่ยนและกำหนดค่าได้ ในขณะที่การกำหนดค่าเริ่มต้นถูกกำหนดโดยทีมนักพัฒนาหลัก เรามีความตั้งใจที่จะให้คอมมูนิตี้ของเรามีส่วนร่วมในกาตัดสินใจเกี่ยวกับสิ่งที่จำเป็นต้องเปลี่ยนแปลง ซึ่งจะเกิดขึ้นผ่านการลงคะแนน

Timelock

Timelock เป็น contract ที่ทำให้มี delay ในการเปลี่ยนแปลงโปรโตคอล contract นี้เป็นเจ้าของ contract หลักทั้งหมดใน Alpaca Finance ดังนั้น ทุกการเปลี่ยนแปลงจำเป็นต้องดำเนินการผ่าน contract นี้ ซึ่งทำให้ contract นี้เป็นเครื่องมือรักษาความปลอดภัย

โดยพื้นฐานแล้วทุกคำสั่งจากผู้ดูแลระบบ (กลุ่มนักพัฒนาหลัก) จะต้องผ่าน contract นี้และทำให้เกิด delay ไป 24 ชั่วโมงก่อนที่การเปลี่ยนแปลงจะมีผล เพื่อให้เกิดความชัดเจน ทุกคำสั่งจะต้องมีการไปเข้าคิวรอดำเนินการ และเมื่อผ่านไป 24 ชั่วโมงถึงจะสามารถดำเนินการ execute คำสั่งได้ นี่คือคุณลักษณะด้านความปลอดภัยที่ช่วยให้ community สามารถเห็นการอัปเดตที่จะเกิดขึ้นและเตรียมการล่วงหน้า หากมีสิ่งใดที่น่าสงสัยผู้ใช้งานสามารถดึงเงินจากโปรโตคอลก่อนที่การอัปเดตจะมีผล

ด้านล่างนี้คือ contract ต่างๆที่ Timelock เป็นเจ้าของ

  • Vault Contracts ทั้งหมด

  • FairLaunch Contract

  • Worker Contracts ทั้งหมด

  • PriceOracle Contracts ทั้งหมด

  • WorkerConfig Contracts ทั้งหมด

กระเป่า Multi-sig

เพื่อความปลอดภัยที่มากขึ้น เราได้ใช้กระเป๋า multi-sig นั่นหมายความการเปลี่ยนแปลงใดๆที่จะขึ้นคิวในสัญญา Timelock จะเกิดขึ้นเมื่อได้รับการอนุมัติจากแอดเดรส multi-sig

ตอนนี้มีผู้ที่สามารถเซ็นสัญญา 4 คนบน multi-sig โดยที่จำเป็นต้องมีผู้เซ็นอย่างน้อย 2 คนต่อธุรกรรม

This section lists all adjustable parameters and functions in Alpaca Finance

FairLaunch Contract

  • addPool(_allocatedPoint, _stakeToken, _withUpdate)

    • _allocatedPoint = How many points assign to this pool. This will affect the ALPACAs distribution per block.

    • _stakeToken = The address of a required staking token.

    • _withUpdate = A flag for updatePool calculation

  • setPool(_pid, _allocatedPoint, _withUpdate)

    • _pid = Pool ID that you wish to adjust the point

    • _allocatedPoint = New points to be assign to this pool. This will affect the ALPACAs distribution per block.

    • _withUpdate = A flag for updatePool calculation

  • setBonus(_bonusMultiplier, _bonusEndBlock, _bonusLockUpBps)

    • _bonusMultiplier = Multiplier that will be applied during the bonus period

    • _bonusEndBlock = The block number that bonus will be ended

    • _bonusLockUpBps = % of bonus that is earned in the bonus period to be locked

Vault Contract

  • updateConfig(_newConfig)

    • _newConfig = A new contract that is implemented IVaultConfig interface

  • setFairLaunchPoolId(_pid)

    • _pid = Pool ID on Fair Contract that the staking token is debtToken owned by Vault

  • withdrawReserve(_to, _amount)

    • _to = The address to receive amount

    • _amount = The amount to be withdrawn from the reserve

  • redeuceReserve(_amount)

    • _amount = Reduce reserve portion for treasury management

PancakeswapWorker Contract

  • setReinvestBountyBps(_newBountyBps)

    • _newBountyBps = A new bounty that the bounty hunter will get when they trigger reinvest

  • setStrategyOk(_strategyAddresses, _ok)

    • _strategyAddresses = Addresses for the strategy contract

    • _ok = Can be either true or false. If the _strategyAddresses above need to be disabled then set _ok = false

  • setCriticalStrategies(_addStrategy, _liquidateStrategy)

    • _addStrategy = Set default addStrategy

    • _liquidateStrategy = Set default liquidateStrategy

SimplePriceOracle Contract

  • setFeeder(_address)

    • _address = The address of a new feeder

SimpleVaultConfig

  • setParams(_minDebtSize, _interestRate, _reservePoolBps, _killBps, _wrappedNative, _fairLaunch)

    • _minDebtSize = The minimum required for borrower to loan from the pool

    • _interestRate = Interest rate per second

    • _reservePoolBps = % to be put in reserve pool in BPS

    • _killBps = % that bounty hunters will get when they liquidate the position

    • _wrappedNative = Address of the wNative token

    • _fairLaunch = Address of the fair launch contract

  • setWorker(_workerAddress, _isWorker, _acceptDebt, _workFactor, _killFactor)

    • _workerAddress = The address of the worker

    • _isWorker = The flag to set if this is worker

    • _acceptDebt = The flag to set if this worker is accepting the debt

    • _workFactor = The flag threshold to prevent user from over leverage

    • _killFactor = The flag threshold to mark if position can be liquidated, aka kill threshold

ConfigurableInterestVaultConfig

  • setParams(_minDebtSize, _reservePoolBps, _killBps, _interestModelAddress, _wrappedNative, _fairLaunch)

    • _minDebtSize = The minimum required for borrower to loan from the pool

    • _reservePoolBps = % to be put in reserve pool in BPS

    • _killBps = % that bounty hunters will get when they liquidate the position

    • _interestModelAddress = Address of the interest model

    • _wrappedNative = Address of the wNative token

    • _fairLaunch = Address of the fair launch contract

PancakeswapWorkerConfig

  • setOracle(_newOracleAddress)

    • _newOracleAddress = The new oracle address

  • setConfigs([ ]_WorkerAddress, [ ]_configs)

    • [ ]_WorkerAddress = address of worker

    • [ ]_configs = Config object including:

      • _acceptDebt

      • _workFactor = The flag threshold to prevent user from over leverage

      • _killFactor = The flag threshold to mark if position can be liquidated, aka kill threshold

      • _maxPriceDiff

พารามิเตอร์ที่ปรับได้

🎛️
🖌️
⏳
✏️
⚙️