> ## Documentation Index
> Fetch the complete documentation index at: https://whitepaper.rwanftfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pagbebenta at Pagpapahiram

> Ibenta, ipahiram, o hawakan — pinipili mo.

export const SellVsLend = () => {
  const [daAmount, setDaAmount] = useState(1000);
  const [currentPrice, setCurrentPrice] = useState(1.00);
  const [futurePrice, setFuturePrice] = useState(2.00);
  const [tab, setTab] = useState('sell');
  const [paybackPercent, setPaybackPercent] = useState(100);
  const fmtUsd = n => {
    const digits = Math.abs(n) >= 10000 ? 0 : 2;
    return new Intl.NumberFormat('en-US', {
      style: 'currency',
      currency: 'USD',
      maximumFractionDigits: digits
    }).format(n);
  };
  const manualSellPayout = daAmount * currentPrice * 0.75;
  const autoSellPayout = daAmount * futurePrice * 0.70;
  const loanAmount = daAmount * currentPrice * 0.70 * 0.95;
  const futureValue = daAmount * futurePrice;
  const paybackFraction = paybackPercent / 100;
  const repayAmount = loanAmount * paybackFraction;
  const tokensReturned = daAmount * paybackFraction;
  const tokensReturnedValue = tokensReturned * futurePrice;
  const tokensLocked = daAmount * (1 - paybackFraction);
  const netPosition = loanAmount - repayAmount + tokensReturnedValue;
  const autoSellBetter = futurePrice > currentPrice * (75 / 70);
  const sellDifference = Math.abs(autoSellPayout - manualSellPayout);
  const sliderStyle = {
    touchAction: 'manipulation',
    height: '6px',
    borderRadius: '3px',
    background: 'linear-gradient(to right, rgba(255,255,255,0.4), rgba(255,255,255,0.15))',
    outline: 'none',
    WebkitAppearance: 'none',
    appearance: 'none'
  };
  return <div style={{
    backgroundColor: '#000000',
    color: '#FFFFFF',
    borderColor: 'rgba(255,255,255,0.05)'
  }} className="p-6 rounded-xl not-prose border">
      <div className="flex items-center justify-between mb-6">
        <h3 style={{
    color: '#FFFFFF'
  }} className="text-lg font-serif italic">Sell vs Lend Strategy Tool</h3>
        <span style={{
    color: 'rgba(255,255,255,0.6)',
    backgroundColor: 'rgba(255,255,255,0.1)',
    border: '1px solid rgba(255,255,255,0.2)'
  }} className="text-xs px-3 py-1 rounded-full font-medium">Interactive</span>
      </div>

      {}
      <div className="space-y-3 mb-6">
        {}
        <div style={{
    backgroundColor: '#383838',
    border: '1px solid rgba(255,255,255,0.05)'
  }} className="rounded-xl p-4">
          <div className="flex justify-between items-center mb-2">
            <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '12px'
  }}>DA Amount</span>
            <span style={{
    color: '#FFFFFF',
    fontSize: '14px',
    fontWeight: 700
  }}>{daAmount.toLocaleString('en-US')} DA</span>
          </div>
          <input type="range" min="0" max="10000" step="100" value={daAmount} onChange={e => setDaAmount(Number(e.target.value))} className="w-full cursor-pointer" style={sliderStyle} />
        </div>

        {}
        <div style={{
    backgroundColor: '#383838',
    border: '1px solid rgba(255,255,255,0.05)'
  }} className="rounded-xl p-4">
          <div className="flex justify-between items-center mb-2">
            <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '12px'
  }}>Current DA Price</span>
            <span style={{
    color: '#FFFFFF',
    fontSize: '14px',
    fontWeight: 700
  }}>${currentPrice.toFixed(2)}</span>
          </div>
          <input type="range" min="1.00" max="10.00" step="0.10" value={currentPrice} onChange={e => setCurrentPrice(Number(e.target.value))} className="w-full cursor-pointer" style={sliderStyle} />
        </div>

        {}
        <div style={{
    backgroundColor: '#383838',
    border: '1px solid rgba(255,255,255,0.05)'
  }} className="rounded-xl p-4">
          <div className="flex justify-between items-center mb-2">
            <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '12px'
  }}>Expected Price in 4 Months</span>
            <span style={{
    color: '#FFFFFF',
    fontSize: '14px',
    fontWeight: 700
  }}>${futurePrice.toFixed(2)}</span>
          </div>
          <input type="range" min="1.00" max="20.00" step="0.10" value={futurePrice} onChange={e => setFuturePrice(Number(e.target.value))} className="w-full cursor-pointer" style={sliderStyle} />
        </div>
      </div>

      {}
      <div style={{
    backgroundColor: 'rgba(56,56,56,0.7)'
  }} className="flex rounded-full p-1 mb-6">
        <button onClick={() => setTab('sell')} style={tab === 'sell' ? {
    backgroundColor: '#FFFFFF',
    color: '#000000'
  } : {
    backgroundColor: 'transparent',
    color: 'rgba(255,255,255,0.5)'
  }} className="flex-1 px-3 py-1.5 rounded-full text-[11px] font-medium transition-all">
          SELL DA
        </button>
        <button onClick={() => setTab('lend')} style={tab === 'lend' ? {
    backgroundColor: '#FFFFFF',
    color: '#000000'
  } : {
    backgroundColor: 'transparent',
    color: 'rgba(255,255,255,0.5)'
  }} className="flex-1 px-3 py-1.5 rounded-full text-[11px] font-medium transition-all">
          LEND DA
        </button>
      </div>

      {}
      {tab === 'sell' && <>
          <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
            {}
            <div style={{
    backgroundColor: 'rgba(255,255,255,0.03)',
    border: '1px solid rgba(255,255,255,0.15)'
  }} className="rounded-xl p-5">
              <div className="flex items-center gap-2 mb-4">
                <h4 style={{
    color: '#FFFFFF'
  }} className="text-base font-bold">MANUAL SELL</h4>
                <span style={{
    color: '#f87171',
    backgroundColor: 'rgba(239,68,68,0.1)',
    border: '1px solid rgba(239,68,68,0.2)'
  }} className="ml-auto text-[10px] font-semibold px-2 py-0.5 rounded-full">
                  Sell now
                </span>
              </div>
              <div style={{
    color: '#FFFFFF'
  }} className="text-2xl font-bold mb-1">{fmtUsd(manualSellPayout)}</div>
              <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '10px',
    marginBottom: '8px'
  }}>(25% stays in pool)</div>
              <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '11px',
    lineHeight: '1.6'
  }}>
                100% DA burned · 75% payout in USDT · 25% stays in pool — drives price up
              </div>
              <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '11px',
    marginTop: '4px',
    lineHeight: '1.6'
  }}>
                Sell now at current price. 25% stays as backing in the pool.
              </div>
            </div>

            {}
            <div style={{
    backgroundColor: 'rgba(255,255,255,0.03)',
    border: '1px solid rgba(255,255,255,0.15)'
  }} className="rounded-xl p-5">
              <div className="flex items-center gap-2 mb-4">
                <h4 style={{
    color: '#FFFFFF'
  }} className="text-base font-bold">AUTO-SELL</h4>
                <span style={{
    color: '#fbbf24',
    backgroundColor: 'rgba(251,191,36,0.1)',
    border: '1px solid rgba(251,191,36,0.2)'
  }} className="ml-auto text-[10px] font-semibold px-2 py-0.5 rounded-full">
                  Sell at peak
                </span>
              </div>
              <div style={{
    color: '#FFFFFF'
  }} className="text-2xl font-bold mb-1">{fmtUsd(autoSellPayout)}</div>
              <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '10px',
    marginBottom: '8px'
  }}>(30% stays in pool)</div>
              <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '11px',
    lineHeight: '1.6'
  }}>
                100% DA burned · 70% payout in USDT · 30% stays in pool — drives price up
              </div>
              <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '11px',
    marginTop: '4px',
    lineHeight: '1.6'
  }}>
                Auto-sells progressively from remaining balance if not sold manually.
              </div>
            </div>
          </div>

          {}
          {daAmount > 0 && <div style={{
    backgroundColor: 'rgba(255,255,255,0.05)',
    border: '1px solid rgba(255,255,255,0.1)',
    marginTop: '16px'
  }} className="rounded-xl p-4 text-center">
              <div style={{
    color: 'rgba(255,255,255,0.6)',
    fontSize: '12px'
  }}>
                {autoSellBetter ? <>Auto-sell pays <span style={{
    color: '#FFFFFF',
    fontWeight: 600
  }}>{fmtUsd(sellDifference)} more</span> despite 30% retention — DA price growth outweighs the extra 5% retention.</> : <>At this price projection, manual sell pays <span style={{
    color: '#FFFFFF',
    fontWeight: 600
  }}>{fmtUsd(sellDifference)} more</span>.</>}
              </div>
            </div>}
        </>}

      {}
      {tab === 'lend' && <>
          {}
          <div style={{
    backgroundColor: 'rgba(255,255,255,0.03)',
    border: '1px solid rgba(255,255,255,0.15)'
  }} className="rounded-xl p-5 mb-2">
            <div className="flex items-center mb-4">
              <div style={{
    backgroundColor: 'rgba(255,255,255,0.15)',
    width: '28px',
    height: '28px',
    borderRadius: '50%',
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    fontSize: '13px',
    fontWeight: 700,
    color: '#FFFFFF',
    flexShrink: 0
  }}>1</div>
              <span style={{
    color: '#FFFFFF',
    fontSize: '15px',
    fontWeight: 700,
    marginLeft: '10px'
  }}>BORROW</span>
              <span style={{
    color: '#4ade80',
    backgroundColor: 'rgba(34,197,94,0.1)',
    border: '1px solid rgba(34,197,94,0.2)'
  }} className="ml-auto text-[10px] font-semibold px-2 py-0.5 rounded-full">
                70% LTV
              </span>
            </div>
            <div style={{
    color: '#FFFFFF',
    fontSize: '28px',
    fontWeight: 900
  }}>{fmtUsd(loanAmount)}</div>
            <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '12px',
    marginTop: '4px'
  }}>USDT loan (70% LTV minus 5% fee)</div>
            <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '11px',
    marginTop: '8px'
  }}>DA locked: {daAmount.toLocaleString('en-US')} DA</div>
          </div>

          {}
          <div style={{
    textAlign: 'center',
    padding: '4px 0'
  }}>
            <div style={{
    width: '1px',
    height: '16px',
    backgroundColor: 'rgba(255,255,255,0.15)',
    margin: '0 auto'
  }} />
            <div style={{
    color: '#4ade80',
    fontSize: '11px',
    fontWeight: 600,
    padding: '4px 12px',
    backgroundColor: 'rgba(74,222,128,0.08)',
    borderRadius: '9999px',
    display: 'inline-block'
  }}>
              DA price grows to {fmtUsd(futurePrice)}
            </div>
            <div style={{
    width: '1px',
    height: '16px',
    backgroundColor: 'rgba(255,255,255,0.15)',
    margin: '0 auto'
  }} />
          </div>

          {}
          <div style={{
    backgroundColor: '#383838',
    border: '1px solid rgba(255,255,255,0.05)'
  }} className="rounded-xl p-4 mb-2">
            <div className="flex justify-between items-center mb-2">
              <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '12px'
  }}>Loan Repayment</span>
              <span style={{
    color: '#FFFFFF',
    fontSize: '14px',
    fontWeight: 700
  }}>{paybackPercent}%</span>
            </div>
            <input type="range" min="0" max="100" step="10" value={paybackPercent} onChange={e => setPaybackPercent(Number(e.target.value))} className="w-full cursor-pointer" style={sliderStyle} />
            <div className="flex justify-between mt-1">
              <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '10px'
  }}>0%</span>
              <span style={{
    color: 'rgba(255,255,255,0.5)',
    fontSize: '10px'
  }}>100%</span>
            </div>
          </div>

          {}
          <div style={{
    backgroundColor: 'rgba(255,255,255,0.03)',
    border: '1px solid rgba(255,255,255,0.15)'
  }} className="rounded-xl p-5 mb-2">
            <div className="flex items-center mb-4">
              <div style={{
    backgroundColor: 'rgba(255,255,255,0.15)',
    width: '28px',
    height: '28px',
    borderRadius: '50%',
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    fontSize: '13px',
    fontWeight: 700,
    color: '#FFFFFF',
    flexShrink: 0
  }}>2</div>
              <span style={{
    color: '#FFFFFF',
    fontSize: '15px',
    fontWeight: 700,
    marginLeft: '10px'
  }}>
                {paybackPercent === 100 ? 'FULL REPAY' : `PARTIAL REPAY (${paybackPercent}%)`}
              </span>
            </div>
            <div className="grid grid-cols-2 gap-3">
              <div>
                <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '10px',
    marginBottom: '4px'
  }}>PAY BACK</div>
                <div style={{
    color: '#FFFFFF',
    fontSize: '20px',
    fontWeight: 700
  }}>{fmtUsd(repayAmount)}</div>
                <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '11px'
  }}>{paybackPercent}% of loan</div>
              </div>
              <div>
                <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '10px',
    marginBottom: '4px'
  }}>GET BACK</div>
                <div style={{
    color: '#4ade80',
    fontSize: '20px',
    fontWeight: 700
  }}>{tokensReturned.toLocaleString('en-US')} DA</div>
                <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '11px'
  }}>worth {fmtUsd(tokensReturnedValue)} at future price</div>
              </div>
            </div>
            {paybackPercent < 100 && tokensLocked > 0 && <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '11px',
    marginTop: '10px',
    borderTop: '1px solid rgba(255,255,255,0.08)',
    paddingTop: '8px'
  }}>
                {tokensLocked.toLocaleString('en-US')} DA remain locked as collateral
              </div>}
          </div>

          {}
          <div style={{
    textAlign: 'center',
    padding: '4px 0'
  }}>
            <div style={{
    width: '1px',
    height: '24px',
    backgroundColor: 'rgba(255,255,255,0.15)',
    margin: '0 auto'
  }} />
          </div>

          {}
          <div style={{
    backgroundColor: 'rgba(255,255,255,0.03)',
    border: '1px solid rgba(255,255,255,0.15)'
  }} className="rounded-xl p-5 mb-4">
            <div className="flex items-center mb-4">
              <div style={{
    backgroundColor: 'rgba(255,255,255,0.15)',
    width: '28px',
    height: '28px',
    borderRadius: '50%',
    display: 'flex',
    alignItems: 'center',
    justifyContent: 'center',
    fontSize: '13px',
    fontWeight: 700,
    color: '#FFFFFF',
    flexShrink: 0
  }}>3</div>
              <span style={{
    color: '#FFFFFF',
    fontSize: '15px',
    fontWeight: 700,
    marginLeft: '10px'
  }}>YOUR PROFIT</span>
            </div>
            <div style={{
    textAlign: 'center'
  }}>
              <div style={{
    color: '#FFFFFF',
    fontSize: '36px',
    fontWeight: 900
  }}>{fmtUsd(netPosition)}</div>
              <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '11px',
    marginTop: '4px'
  }}>Net position</div>
            </div>
            <div style={{
    borderTop: '1px solid rgba(255,255,255,0.1)',
    marginTop: '16px'
  }} />
            <div className="grid grid-cols-3 gap-3 text-center" style={{
    marginTop: '12px'
  }}>
              <div>
                <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '10px'
  }}>NET POSITION</div>
                <div style={{
    color: '#4ade80',
    fontSize: '16px',
    fontWeight: 700
  }}>{fmtUsd(netPosition)}</div>
                <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '10px'
  }}>All fees included</div>
              </div>
              <div>
                <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '10px'
  }}>VS HOLD</div>
                <div style={{
    color: '#FFFFFF',
    fontSize: '16px',
    fontWeight: 700
  }}>{fmtUsd(futureValue)}</div>
              </div>
              <div>
                <div style={{
    color: 'rgba(255,255,255,0.4)',
    fontSize: '10px'
  }}>VS SELL NOW</div>
                <div style={{
    color: '#f87171',
    fontSize: '16px',
    fontWeight: 700
  }}>{fmtUsd(manualSellPayout)}</div>
                <div style={{
    color: 'rgba(255,255,255,0.3)',
    fontSize: '10px'
  }}>25% stays in pool</div>
              </div>
            </div>
          </div>

          {}
          <div style={{
    backgroundColor: 'rgba(34,197,94,0.08)',
    border: '1px solid rgba(34,197,94,0.2)'
  }} className="rounded-xl p-4 text-center mb-3">
            <div style={{
    color: 'rgba(255,255,255,0.6)',
    fontSize: '12px'
  }}>
              Lending lets you access liquidity <span style={{
    color: '#FFFFFF',
    fontWeight: 600
  }}>NOW</span> while keeping exposure to DA price growth.
              {paybackPercent === 100 ? <span> At 100% repayment, you recover your full DA position at the new price.</span> : <span> At {paybackPercent}% repayment, {tokensLocked.toLocaleString('en-US')} DA remain locked. Unpaid loans default through the auto-sell cycle.</span>}
            </div>
          </div>

          {}
          <div style={{
    backgroundColor: 'rgba(239,68,68,0.08)',
    border: '1px solid rgba(239,68,68,0.2)',
    marginTop: '12px'
  }} className="rounded-xl p-4 text-center">
            <div style={{
    color: '#f87171',
    fontSize: '11px'
  }}>
              Each loan stays open until its collateralized stack enters the auto-sell cycle. If not repaid before then, the DA collateral is progressively burned.
            </div>
          </div>
        </>}
    </div>;
};

Sa sandaling may hawak na DA ang user, mayroon silang dalawang pangunahing financial options: pagbebenta ng asset o paggamit nito bilang collateral para sa loan.

<CardGroup cols={2}>
  <Card title="Magbenta ng DA" icon="fire">
    100% ng ipinagbibiling DA ay permanenteng sinusunog. Tatanggap ka ng 75% (manual) o 70% (auto) ng halaga sa USDT. Ang natitirang 25% (manual) o 30% (auto) ay protocol commission na nananatili sa pool bilang backing at nagpapaakyat sa presyo ng DA.
  </Card>

  <Card title="Magpahiram ng DA" icon="building-columns">
    Manghiram ng hanggang 70% LTV sa USDT laban sa iyong DA. Ang iyong DA ay nananatili sa iyong TokenStack. Mananatiling bukas ang loan hangga't hindi pa pumapasok ang collateralized stack sa auto-sell cycle nito; one-time 5% commission.
  </Card>
</CardGroup>

## Pagbebenta ng DA at mga Mekanika ng Burn

Kapag nagbebenta ng DA, mayroong dalawang magkaibang sitwasyon na may iba't ibang kondisyon:

1. **Manual Sale (ang user ay nagbebenta nang nakapag-iisa):**
   * Ang user ay tumatanggap ng **75%** ng halaga ng DA sa USDT sa kasalukuyang presyo.
   * **100%** ng ipinagbibiling DA tokens ay permanenteng sinusunog.
   * Ang natitirang 25% ay protocol commission na nananatili sa pool bilang USDT backing — sa mas kakaunting tokens at parehong liquidity, ang 25% na ito ay direktang nagpapaakyat ng presyo.

2. **Auto-Sell (nag-tri-trigger pagkatapos mag-expire ang TokenStack period):**
   * Ang user ay tumatanggap ng **70%** ng halaga ng DA sa USDT sa presyo sa petsa ng auto-sell.
   * **100%** ng auto-sold na DA tokens ay permanenteng sinusunog.
   * Ang natitirang 30% ay protocol commission na nananatili sa pool bilang USDT backing — ang 30% na ito ang nagpapaakyat sa presyo.
   * Ang Auto-sell ay awtomatikong nag-tri-trigger kung ang user ay hindi nagbenta nang manu-mano bago mag-expire ang panahon.

Sa parehong kaso, 100% ng ipinagbibiling tokens ay sinusunog — ang 25%/30% ay kumakatawan sa protocol commission na nananatili sa pool bilang USDT backing. Ito ang mekanismo na nagpapaakyat sa presyo: mas kakaunting tokens + parehong liquidity = mas mataas na presyo bawat DA. Ang Auto-sell ay nag-aalok ng 5% mas mababang payout, nag-uudyok sa mga user na aktibong mamahala ng kanilang mga DA positions.

<Warning>
  **Ang pagbebenta ng DA ay kumakain sa Income Limit ng iyong NFT.** Bawat manual o auto-sell ng DA ay nagpapababa sa natitirang Income Limit ng iyong NFT ng halaga ng USDT payout — sa pantay na batayan sa marketing rewards. Kung naubos na ang Income Limit, ang manual DA sale ay hindi posible (hindi ma-credit ng system ang payout), at sa auto-sell 100% ng kita ay iniruruta sa DA Liquidity Pool o sa burn (eksaktong mekanismo ay tinutukoy ng DAO settings). Panatilihing aktibo ang iyong Income Limit — sa pamamagitan ng Autobuy o manual NFT renewal — upang matanggap ang payout kapag nagbebenta ng DA.
</Warning>

<Info>
  Ang **auto-sell** ay awtomatikong nag-tri-trigger kung hindi ka magbebenta nang manu-mano bago mag-expire ang TokenStack period. Nagbabayad ito ng 5% mas mababa (70% vs 75%), nag-uudyok sa aktibong pamamahala.
</Info>

## Mga Auto-Sell Period

Ang DA ay 100% magagamit ng user kaagad pagkatapos ng farming — walang lock-up period. Maaaring magbenta ang user nang manu-mano anumang oras (tumatanggap ng 75% sa USDT) o kumuha ng loan laban sa kanilang DA. Kung **hindi** kumikilos ang user, ang system ay nag-tri-trigger ng automatic forced sales mula sa **natitirang balance** nang progresibo sa 4 na panahon na sumasaklaw sa **365 araw (1 taon)** sa kabuuan. Ang tagal ng panahon ay ipinapahayag sa araw on-chain (120 / 90 / 90 / 65 araw); ang mga reference sa buwan sa ibaba ay mga aproksimasyon para sa pagiging madaling basahin.

**Halimbawa simula sa 100 DA:**

<Steps>
  <Step title="Period 1 — 25% auto-sell pagkatapos ng 120 araw (~4 buwan)">
    Kung hindi ka nagbebenta nang manu-mano sa loob ng 120 araw (\~4 buwan), 25% ng iyong kasalukuyang DA balance ay auto-sold. 25% ng 100 DA = **25 DA na auto-sold** → Tatanggap ka ng 70% ng halaga sa USDT sa kasalukuyang presyo → 100% ng 25 DA ay sinusunog → Natitira: **75 DA**
  </Step>

  <Step title="Period 2 — 40% auto-sell pagkatapos ng 90 pang araw (~3 buwan, araw 210)">
    40% ng natitirang balance ay auto-sold. 40% ng 75 DA = **30 DA na auto-sold** → Natitira: **45 DA**
  </Step>

  <Step title="Period 3 — 50% auto-sell pagkatapos ng 90 pang araw (~3 buwan, araw 300)">
    50% ng natitirang balance ay auto-sold. 50% ng 45 DA = **22.5 DA na auto-sold** → Natitira: **22.5 DA**
  </Step>

  <Step title="Period 4 — 100% auto-sell pagkatapos ng 65 pang araw (~2 buwan, araw 365)">
    100% ng natitirang balance ay auto-sold. Ganap na sarado ang posisyon. 100% ng 22.5 DA = **22.5 DA na auto-sold** → Natitira: **0 DA**
  </Step>
</Steps>

<Note>
  Ang auto-sell percentages (25% / 40% / 50% / 100%) na ipinapakita sa itaas ay kumakatawan sa kasalukuyang protocol configuration. Ang mga partikular na halaga ay nakaimbak bilang protocol parameters at napapailalim sa standard governance procedures. Palaging i-check ang smart contract o kasalukuyang protocol documentation para sa pinakabagong mga halaga.
</Note>

Bawat auto-sell ay isinasagawa sa DA price sa sandaling iyon, hindi sa orihinal na farming price. Dahil lumalago ang presyo sa paglipas ng panahon, ang mas huling auto-sells ay nagsusunog ng tokens sa mas mataas na presyo — pinapatibay pa ang deflation.

<Warning>
  **Auto-Sell na may Zero Income Limit:** Kung mag-trigger ang DA auto-sell at ang user ay may zero Income Limit sa kanilang NFT (ibig sabihin ay hindi na-renew ang NFT), 100% ng kita ay idinidirekta sa Liquidity Pool o sa DA burn. Eksaktong mekanismo ay tinutukoy ng DAO settings. Ang mga user ay dapat palaging magpanatili ng aktibong Income Limit upang matanggap ang kanilang auto-sell payout.
</Warning>

## Lending (Credit laban sa DA)

Sa halip na magbenta, ang mga user ay maaaring kumuha ng loan sa USDT laban sa kanilang DA holdings. Ang mga user ay maaaring manghiram ng hanggang **70%** ng kasalukuyang USDT value ng kanilang DA collateral (Loan-to-Value).

**Kondisyon sa pagbibigay (hindi loan term).** Maaari lamang magbukas ng loan laban sa isang DA stack kung may natitirang hindi bababa sa **30 araw** bago ang susunod na nakaiskedyul na auto-sell ng stack na iyon. Ito ay on-chain eligibility check (`_getTimeToNextAutosale >= 30 days`), hindi nakapirming loan term — kapag bukas na ang loan, walang 30-araw na deadline na umaandar laban sa nanghihiram.

**Pagbabayad.** Walang nakapirming loan duration. Maaaring tumawag ng `repay()` ang nanghihiram anumang oras habang aktibo pa ang stack — ibig sabihin, bago ito pumasok sa auto-sell cycle. Sa sandaling tumawid ang stack sa auto-sell, nag-revert ang `repay()` at hindi na maaaring sarado ang loan.

Kapag kumukuha ng loan, ang nanghihiram ay nagbabayad ng one-time **5% commission** na idinirekta sa DA Liquidity Pool. Ang nanghihiram ay tumatanggap ng 95% ng halaga ng loan. Halimbawa: para sa \$1,000 na loan, ang nanghihiram ay tumatanggap ng \$950 at \$50 ay napupunta sa Liquidity Pool. Ang commission na ito ay kinokolekta sa bawat bagong loan — ang mga user ay maaaring kumuha ng mga bagong loan pagkatapos tumanggap ng mga bagong DA batches, ibig sabihin ang commission ay paulit-ulit na dumadaloy sa Pool.

<Info>
  **Independent Loan Fee Parameter:** Ang 5% lending commission ay nakaimbak on-chain bilang isang dedikadong `loanFee` parameter, hiwalay sa iba pang fee parameters ng protocol. Ang isolation na ito ay nagbibigay-daan sa DAO na i-tune ang loan fee nang nakapag-iisa — nang hindi naaapektuhan ang marketing taxes, accumulative fees, o anumang iba pang commission — at pinapanatili ang loan economics na pamamahalaan bilang isang solo at malinaw na lever.
</Info>

<Note>
  **Minimum Loan Amount:** Tinatanggihan ng smart contract ang zero-value loans. Kung ang hiniling na laki ng loan ay napakaliit kaya ang post-fee payout ay babagsak sa 0 USDT, ang transaction ay magre-revert. Ang mga nanghihiram ay dapat humiling ng halaga na sapat na ang borrower payout (95% ng halaga ng loan) ay non-zero pagkatapos ng on-chain rounding. Pinipigilan nito ang dust loans na mag-lo-lock ng collateral nang walang ekonomikong benepisyo sa nanghihiram.
</Note>

### Multi-Batch Lending

Ang bawat DA batch mula sa mining cycle ay nagsisilbing independent collateral. Maaaring kumuha ang mga user ng hiwalay na 70% LTV loan laban sa bawat batch nang isa-isa:

<Steps>
  <Step title="Mag-mine ng Batch 1">
    Tapusin ang isang mining cycle at tatanggap ng DA batch 1.
  </Step>

  <Step title="Manghiram laban sa Batch 1">
    Kumuha ng 70% LTV loan laban sa batch 1 (5% commission sa Liquidity Pool).
  </Step>

  <Step title="Mag-mine ng Batch 2">
    Magsimula ng bagong mining cycle at tatanggap ng DA batch 2.
  </Step>

  <Step title="Manghiram laban sa Batch 2">
    Kumuha ng isa pang 70% LTV loan laban sa batch 2 (hiwalay na 5% commission).
  </Step>
</Steps>

<Tip>
  Maraming sabay-sabay na aktibong loans ay posible — isa bawat DA batch. Ang bawat loan ay independyente: nakatali sa sarili nitong batch at may sariling 5% commission. Ang mas maliit na NFTs ay nagbubunga ng mas maliit na loans, ang mas malalaking NFTs ay nagbubunga ng mas malalaking loans. Kung ang anumang indibidwal na loan ay nag-default, tanging ang collateral ng batch na iyon ang pumapasok sa auto-sell cycle — hindi lahat ng DA holdings.
</Tip>

<Note>
  **Repay Window — Walang Late Repayments:** Ang loan ay maaari lamang bayaran sa pamamagitan ng `repay()` habang aktibo pa ang collateralized stack — ibig sabihin, bago ito pumasok sa auto-sell cycle nito. Sa sandaling tumawid ang stack sa auto-sell, ang `repay()` ay nag-re-revert — ang nanghihiram ay **hindi maaaring** i-unwind ang loan upang lampasan ang liquidation schedule. Ang isang overdue na posisyon ay dapat na i-process sa pamamagitan ng `processExpiredStacks()`, na nagsasagawa ng progresibong burn na inilarawan sa ibaba. Walang landas na nagpapahintulot sa nanghihiram na makatakas sa default penalties sa pamamagitan ng late repayment.
</Note>

<Warning>
  **Lending Default — Progresibong Burn:** Kung ang loan ay hindi nabayaran bago pumasok ang collateralized stack sa auto-sell cycle, ang DA collateral ay dumadaan sa cycle na iyon. Ang tokens ay progresibong sinusunog sa pamamagitan ng standard na 4-period schedule (25% → 40% → 50% → 100% ng natitirang balance sa 365 araw / 1 taon sa kabuuan: 120 / 90 / 90 / 65 araw bawat panahon).

  Ang user ay **HINDI** tumatanggap ng USDT mula sa mga auto-sells na ito — **100% ng kita ay idinidirekta sa DA Liquidity Pool**. Pinapanatili ng user ang **orihinal na halaga ng loan** na natanggap niya, ngunit **nawawala ang buong DA collateral**. Ang mekanismong ito ay nagpoprotekta sa system liquidity, nagpapababa ng systemic risk, at nagpapatupad ng financial discipline sa buong ekosistema.
</Warning>

<SellVsLend />
