bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 24쪽 중 10쪽
ion evidence are available. Do not infer that every finding is remediated from the presence of a report link.
If you have any security concerns or vulnerabilities to report, please contact us here:
[email protected]
Audit Reports
Core Architecture
Audit #1: Statemind
Date:
24-02-2025 - 22-05-2025
View Full Report →
Audit #2: Chainsecurity
Date:
07-07-2025
View Full Report →
Audit #3: Quantstamp
Date:
01-04-2025 - 16-04-2025
View Full Report →
Audit #4: Mixbytes
Date:
11-08-2025
View Full Report →
Audit #5: Electisec
Date:
03-08-2025
View Full Report →
Audit #6: Pashov
Date:
26-03-2025 - 01-04-2025
View Full Report →
Security Contest
Sherlock Security Contest
Date:
01-08-2025 - 30-09-2025
Scope:
Full protocol
View Full Report →
Hybrid Vaults
Audit #7: Mixbytes
Date:
26-03-2026
View Full Report →
Audit #8: Chainsecurity
Date:
26-03-2026
View Full Report →
Fee Distributor
Audit #9: Firepan AI Audit
Date:
23-04-2026 - 26-04-2026
Scope:
FeeDistributor
View Full Report →
Read Case Study →
AMM + LT Hardening & YBLendingOracle
Audit #10: Chainsecurity
Date:
24-07-2026
Scope:
AMM + LT hardening, YBLendingOracle, YBPriceProxy (delta review)
View Full Report →
View on ChainSecurity →
Bug Bounty
Status as of 2026-05-19: a bug-bounty program is in preparation. Scope is expected to cover production core contracts listed in
Contract Addresses
. Standard out-of-scope: frontend, third-party integrations, social-engineering, known issues already reported.
For immediate security concerns, email
[email protected]
directly.
Related
Contract Addresses
Risk Disclaimer
Audit Reports
Core Architecture
Security Contest
Hybrid Vaults
Fee Distributor
AMM + LT Hardening & YBLendingOracle
Bug Bounty
Related
## /user/reference/contract-addresses
On this page
Core Contracts
Contract
Address
YB
0x01791F726B4103694969820be083196cC7c045fF
veYB
0x8235c179E9e84688FBd8B12295EfC26834dAC211
GaugeController
0x1Be14811A3a06F6aF4fA64310a636e1Df04c1c21
CliffEscrow
0x60043a545E22424E73A2dEbb98f8cd4361fE3DA0
Factory
0x370a449FeBb9411c95bf897021377fe0B7D100c0
StakeZap
0xE862bC39B8D5F12D8c4117d3e2D493Dc20051EC6
LTMigrator
0xE707c7a9dD58fb7eEa17acFF875CEF8d10eD1a9F
FeeDistributor
0xD11b416573EbC59b6B2387DA0D2c0D1b3b1F7A90
Hybrid Vaults
Contract
Address
HybridFactoryOwner
(current
Factory.admin()
)
0xb8BA33CD1Ccb091a8468572950bD3669723FA5C6
HybridFactoryOwner
(superseded)
0x0f4e1a1BcDe549653E9302Ba1cAaB403373f1048
HybridVaultFactory
0xBdC32268851C324c6185809271dfe6d8dab8dC5b
HybridVault impl
0xD772EDF092f155f3e81E2b261d96Bcfae4fDC3Ac
DAO, Governance & Vesting
Contract
Address
DAO
0x42F2A41A0D0e65A440813190880c8a65124895Fa
Plugin
0x2be6670DE1cCEC715bDBBa2e3A6C1A05E496ec78
VotingPowerCondition
0x85AE9cCF1c862979e2D9B9f1aB819c212365fd92
Curve Licensing
0x36e36D5D588D480A15A40C7668Be52D36eb206A8
Investors
0x11988547B064CaBF65c431c14Ef1b7435084602e
Team
0x93Eb25E380229bFED6AB4bf843E5f670c12785e3
Protocol Development Reserve
0x525443603D6D0955142FaC8820b64Ae701F40065
Ecosystem Reserve
0x7aC5922776034132D9ff5c7889d612d98e052Cf2
YB Pair Rewards
0x1cb8f667De695f3d126534d9808567F299B90a86
Vest Early LP (Season 1)
0x7b5c75512C1b3749eb0ffE583C1349D02803CB13
Vest Curve (more info
here
)
0xc8aa884f54ea5eaef5ef4086607c00580a103928
Active Markets
cbBTC
Contract
Address
cbBTC
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
yb-cbBTC
0x722FC3640BA007C3E9867CCdB0dCa59F2e2F29F9
Curve Cryptopool (cbBTC<>crvUSD)
0x862CB4E988FB66E72f128d1183829f8c05B6c6A0
LEVAMM
0x49F51d7e279252F3C9a09678fdC65B4dBd5CB196
VirtualPool
0x04CA7a7E602335a261B63128e89d43b6fE1e2c87
LP Oracle
0x586855729584a2f2EB8d9ce93EC5EB678C124995
Gauge
0xF8764cBcdb15a9E4c7CA1b0b8a578d9ebEEC1b6f
WBTC
Contract
Address
WBTC
0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
yb-WBTC
0x651D4b8168488FA163D85304662E8278d4c55BAa
Curve Cryptopool (WBTC<>crvUSD)
0x313698667d7FDD6789a9BC70821309ff891E729A
LEVAMM
0x7b9817eb5C49A99875138A5d52bF64a8B2cFFFFE
VirtualPool
0xF96Ff1189f1c2977b37E5Df01962e1895bcc3d6A
LP Oracle
0x57977de27E8cEBaaE7D4f1c1c5E00A47177EAE0E
Gauge
0xAa0b1d265F23972eafB7d088e963BD31403A58F5
tBTC
Contract
Address
tBTC
0x18084fbA666a33d37592fA2633fD49a74DD93a88
yb-tBTC
0x771F7290428d830ECd41E980745c327e507823Ec
Curve Cryptopool (tBTC<>crvUSD)
0x4F52C3a81E33521e5a9A47FD9D3BE475D2279c2e
LEVAMM
0x0e357Af536592F275C6Aa07b8AC2CA6EB3d0cF5a
VirtualPool
0x1b9518f6B179552c6A903F213d4EA5503Ab7F96E
LP Oracle
0xaD78a4e35166F9942FB2916fDcFc1888b4718036
Gauge
0xe83D888FE3213DD3471DE0bC1957E0f94F038483
WETH
Contract
Address
WETH
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
yb-WETH
0x2B9c9f3BdcEb5d8E36a4704F08a78Fca53343cEa
Curve Cryptopool (WETH<>crvUSD)
0x656341Ef90b622c6634e0573772FfB7f3669b9f3
LEVAMM
0x5f8D24F33Cc5a1D5D1bf012261E6A2214C92233c
VirtualPool
0x772cfF0BE38A6ED31aeAe479cbcb26D54B8404CF
LP Oracle
0x231C37b8e9D2076d673C5E24eCFcC2a82652E054
Gauge
0xd829456FD63Ada7DE0657714A3A7A26DE403E3D8
Deprecated Migration Contracts
These contracts are listed for historical reference only. Use the current
LTMigrator
in Core Contracts for migrations.
Contract
Address
Initial v3 LTMigrator
0xDfD6fe3A540F68601002E889E33117a7E8A0669D
Same-pool LTMigrator
0x2cdb9f485e718F551CfEEa6c33cB7062ed37066C
Legacy LTMigrator
0xc51C8e4CFB7FB969DaE4b10052A1BB6d15fcd96B
Deprecated Markets
cbBTC v2 (deprecated)
This market has been deprecated and was replaced by the current cbBTC market (see above).
Contract
Address
cbBTC
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
yb-cbBTC
0xAC0cfa7742069a8af0c63e14FFD0fe6b3e1Bf8D2
Curve Cryptopool (cbBTC<>crvUSD)
0x83f24023d15d835a213df24fd309c47dAb5BEb32
LEVAMM
0xDC90F6B111DF0c26e349d3cC8d3C357b191e109a
VirtualPool
0xE3ebC767F98a39dCfAA3272805C51caB7633Ebed
LP Oracle
0x7110640E30B08F5aE10e8eaD5d99E8bBb29c783a
Gauge
0xf3081A2eB8927C0462864EC3FdbE927C842A0893
WBTC v2 (deprecated)
This market has been deprecated and was replaced by the current WBTC market (see above).
Contract
Address
WBTC
0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
yb-WBTC
0xfBF3C16676055776Ab9B286492D8f13e30e2E763
Curve Cryptopool (WBTC<>crvUSD)
0xD9FF8396554A0d18B2CFbeC53e1979b7ecCe8373
LEVAMM
0x10B663da78055bDA0c7c26712CE1A0613AF0Ae66
VirtualPool
0xf07c96d040a2D8455AEe8B0862DdFBeE479B1b72
LP Oracle
0x3F3F0512d148d691d294De306B306c4e740b70BF
Gauge
0xbc56e3edB67b56d598aCE07668b138815F45d7aa
tBTC v2 (deprecated)
This market has been deprecated and was replaced by the current tBTC market (see above).
Contract
Address
tBTC
0x18084fbA666a33d37592fA2633fD49a74DD93a88
yb-tBTC
0xaC0a340C1644321D0BBc6404946d828c1EBfAC92
Curve Cryptopool (tBTC<>crvUSD)
0xf1F435B05D255a5dBdE37333C0f61DA6F69c6127
LEVAMM
0x61ED017468C8A3bE3Bac972b54fdae6eAfcbcd79
VirtualPool
0x61d2558FAA6b81814DEEADb0d390612Be291b827
LP Oracle
0x908640fb4cafD33389375F9b94E52f3f444771e8
Gauge
0x30ba8b27F2128c770B90C965FF671E08b9310D21
WETH Legacy (deprecated)
This market has been deprecated and was replaced by the current WETH market (see above). Hybrid Vault deposits for this market are disabled.
Contract
Address
WETH
0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
yb-WETH
0x931d40dD07b25B91932b481B63631Ea86d236e09
Curve Cryptopool (WETH<>crvUSD)
0x6e5492F8ea2370844EE098A56DD88e1717e4A9C2
LEVAMM
0x35095d94E0f1F4a78386B7eB74BB64768A2341e4
VirtualPool
0x7CAD378DF4a9a830505c18D3a83cAc5d8c9A55fd
LP Oracle
0x84E7F75fF75A0935847D72e1F76Ceb392174EE17
Gauge
0xe4e656B5215a82009969219b1bAbB7c0757A3315
cbBTC Legacy (deprecated)
This market has been deprecated and was replaced with a new version (see above).
Contract
Address
cbBTC
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
yb-cbBTC
0xD6a1147666f6E4d7161caf436d9923D44d901112
Curve Cryptopool (cbBTC<>crvUSD)
0x83f24023d15d835a213df24fd309c47dAb5BEb32
LEVAMM
0xB42e34Bf1f8627189e099ABDB069B9D73B521E4F
VirtualPool
0x2dA2Aada1445a5101d648F3c8711B070799bbc91
LP Oracle
0x3E5A6c61488de85383Fb0efD8c152d3e10C6bfE6
Gauge
0x3dAe83d236b4Ec301A8d0553f8c13Cb9b7925B6a
WBTC Legacy (deprecated)
This market has been deprecated and was replaced with a new version (see above).
Contract
Address
WBTC
0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
yb-WBTC
0x6095a220C5567360d459462A25b1AD5aEAD45204
Curve Cryptopool (WBTC<>crvUSD)
0xD9FF8396554A0d18B2CFbeC53e1979b7ecCe8373
LEVAMM
0xa25306937dbA98378c32F167588F5Dc17A95c94b
VirtualPool
0xABf17d1deF75dA1B41B6df5f0b4AecE602b4E045
LP Oracle
0x7Ec34e12A770DfCa068FF287bE9F2799EE70DE24
Gauge
0x37f45E64935e7B8383D2f034048B32770B04E8bd
tBTC Legacy (deprecated)
This market has been deprecated and was replaced with a new version (see above).
Contract
Address
tBTC
0x18084fbA666a33d37592fA2633fD49a74DD93a88
yb-tBTC
0x2B513eBe7070Cff91cf699a0BFe5075020C732FF
Curve Cryptopool (tBTC<>crvUSD)
0xf1F435B05D255a5dBdE37333C0f61DA6F69c6127
LEVAMM
0xb0faaBE84076c6330A9642a6400e87CE4cAec9d4
VirtualPool
0xFD1DB6F59fd1FBe0635F3DF11c127B3DDC744092
LP Oracle
0x58321Ba91c7d4BdbCBC2142256b2c42d9eCFc573
Gauge
0x2a4671fd269dF5B3DA03103c74063dA10D03E23C
Core Contracts
Hybrid Vaults
DAO, Governance & Vesting
Active Markets
cbBTC
WBTC
tBTC
WETH
Deprecated Migration Contracts
Deprecated Markets
cbBTC v2 (deprecated)
WBTC v2 (deprecated)
tBTC v2 (deprecated)
WETH Legacy (deprecated)
cbBTC Legacy (deprecated)
WBTC Legacy (deprecated)
tBTC Legacy (deprecated)
## /user/reference/brand-assets
On this page
Brand Guidelines
Download the complete brand guidelines document:
📄 Yieldbasis Brand Guidelines
Logo (with icon)
The Yieldbasis logo includes both the icon and text.
Black Logo
PNG
Download PNG
SVG
Download SVG
Black on White (BoW)
PNG
Download PNG
SVG
Download SVG
White Logo
PNG
Download PNG
SVG
Download SVG
White on Black (WoB)
PNG
Download PNG
SVG
Download SVG
Logotype (text only)
The Yieldbasis logotype is the text-only version of the brand.
Black Logotype
PNG
Download PNG
SVG
Download SVG
Black on White (BoW) Logotype
PNG
Download PNG
SVG
Download SVG
White Logotype
PNG
Download PNG
SVG
Download SVG
White on Black (WoB) Logotype
PNG
Download PNG
SVG
Download SVG
Brand Guidelines
Logo (with icon)
Black Logo
Black on White (BoW)
White Logo
White on Black (WoB)
Logotype (text only)
Black Logotype
Black on White (BoW) Logotype
White Logotype
White on Black (WoB) Logotype
## /user/economics/math-primer
On this page
Single source of truth for YieldBasis math. Notation table in §0 is authoritative; downstream pages reference equation numbers here rather than restating derivations.
Before you read this
This page is dense. The derivations use standard tools. For the basics in one place, see
Concepts
.
Algebra and basic calculus notation.
Comfort with
⋅
\sqrt{\cdot}
⋅
, exponents, and single-variable derivatives. The integration step in §2 uses
∫
d
ln
V
=
ln
V
+
C
\int d\ln V = \ln V + C
∫
d
ln
V
=
ln
V
+
C
.
LP value-function derivations.
The idea that an LP's dollar value can be written as a closed-form function of the external price. §1 does this from scratch for constant product.
The
x
⋅
y
=
k
x \cdot y = k
x
⋅
y
=
k
invariant.
The constant-product bonding curve used by Uniswap v2 and the starting point for §1.
Whitepaper pointer.
The YB whitepaper has the full derivations with additional algebraic steps and edge-case discussion. This page is the on-site reference; the whitepaper is the long form.
0. Notation & symbols
Symbol
Meaning
p
p
p
BTC spot price in USD
p
o
p_o
p
o
Oracle BTC/USD price used by the LEVAMM
V
c
V_c
V
c
Value of collateral (Curve LP tokens)
V
∗
V_*
V
∗
Value of the leveraged position (after borrowing)
d
d
d
Outstanding crvUSD debt
L
L
L
Compounding leverage factor (fixed to 2 in YieldBasis)
y
y
y
LP token amount held by the LEVAMM
x
0
(
p
o
)
x_0(p_o)
x
0
(
p
o
)
Anchor term in the LEVAMM pricing formula
I
(
p
o
)
I(p_o)
I
(
p
o
)
Invariant constant of the LEVAMM for a fixed oracle price
ϕ
\phi
ϕ
Flash-loan size (crvUSD) solved via a quadratic
f
a
f_a
f
a
Admin-fee fraction routed to veYB
f
min
f_{\min}
f
m
i
n
Minimum admin fee when nobody stakes
s
,
T
s, T
s
,
T
Staked vs total supply of LT tokens
v
s
,
v
s
∗
v_s, v_s^*
v
s
,
v
s
∗
Current and ideal (watermark) value of the staked bucket
r
pool
r_{\text{pool}}
r
pool
Fee APR earned by the underlying Curve pool (unlevered)
r
borrow
r_{\text{borrow}}
r
borrow
Borrow APR on the crvUSD CDP line
r
releverage
r_{\text{releverage}}
r
releverage
Effective APR cost of maintaining leverage (releverage losses, gross of refuel)
r
refuel
r_{\text{refuel}}
r
refuel
Donation-funded offset to
r
releverage
r_{\text{releverage}}
r
releverage
(from recycled borrower interest)
1. The constant-product problem (why √p shows up)
Classic AMMs (e.g. Uniswap v2) enforce
x
⋅
y
=
k
(1.1)
x \cdot y = k \tag{1.1}
x
⋅
y
=
k
(
1.1
)
where
x
x
x
is the USD side and
y
y
y
is the BTC side. Let the external BTC price be
p
p
p
(USD per BTC).
1.1 Normalising the start
Suppose equal USD value is deposited at
p
0
=
1
p_0 = 1
p
0
=
1
:
x
0
=
1
x_0 = 1
x
0
=
1
USD
y
0
=
1
y_0 = 1
y
0
=
1
BTC (worth $1 at
p
0
p_0
p
0
)
So
k
=
x
0
⋅
y
0
=
1.
(1.2)
k = x_0 \cdot y_0 = 1. \tag{1.2}
k
=
x
0
⋅
y
0
=
1.
(
1.2
)
1.2 After a price move
Arbitrage pushes the AMM price to
p
p
p
. In a constant-product AMM,
p
=
x
y
.
(1.3)
p = \frac{x}{y}. \tag{1.3}
p
=
y
x
.
(
1.3
)
Combine (1.1) and (1.3):
x
=
k
p
,
y
=
k
p
.
(1.4)
x = \sqrt{k p}, \qquad y = \sqrt{\frac{k}{p}}. \tag{1.4}
x
=
k
p
,
y
=
p
k
.
(
1.4
)
With
k
=
1
k = 1
k
=
1
:
x
=
p
,
y
=
1
p
.
(1.5)
x = \sqrt{p}, \qquad y = \frac{1}{\sqrt{p}}. \tag{1.5}
x
=
p
,
y
=
p
1
.
(
1.5
)
1.3 LP value scales as √p
Ignoring fees, LP USD value is
V
LP
(
p
)
=
x
+
p
y
=
p
+
p
⋅
1
p
=
2
p
.
(1.6)
V_{\text{LP}}(p) = x + p\,y = \sqrt{p} + p \cdot \frac{1}{\sqrt{p}} = 2\sqrt{p}. \tag{1.6}
V
LP
(
p
)
=
x
+
p
y
=
p
+
p
⋅
p
1
=
2
p
.
(
1.6
)
The initial deposit totals $2, so the per-initial-dollar scaling is
V
LP,norm
(
p
)
=
p
(1.7)
\boxed{V_{\text{LP,norm}}(p) = \sqrt{p}} \tag{1.7}
V
LP,norm
(
p
)
=
p
(
1.7
)
1.4 Impermanent loss (IL)
If the assets had been held without providing liquidity:
V
hold
(
p
)
=
p
+
1.
(1.8)
V_{\text{hold}}(p) = p + 1. \tag{1.8}
V
hold
(
p
)
=
p
+
1.
(
1.8
)
Impermanent loss (relative underperformance) is
IL
(
p
)
=
V
LP
(
p
)
V
hold
(
p
)
−
1
=
2
p
1
+
p
−
1.
(1.9)
\text{IL}(p) = \frac{V_{\text{LP}}(p)}{V_{\text{hold}}(p)} - 1 = \frac{2\sqrt{p}}{1+p} - 1. \tag{1.9}
IL
(
p
)
=
V
hold
(
p
)
V
LP
(
p
)
−
1
=
1
+
p
2
p
−
1.
(
1.9
)
Since
2
p
<
1
+
p
2\sqrt{p} < 1+p
2
p
<
1
+
p
for any
p
≠
1
p \neq 1
p
=
1
,
IL
(
p
)
<
0
\text{IL}(p) < 0
IL
(
p
)
<
0
: the LP underperforms a simple hold whenever price drifts.
Takeaway.
Constant-product LP value
∝
p
\propto \sqrt{p}
∝
p
. Other, more complicated, AMM formulae are not immune to the IL problem either, and the source thereof is the sublinearity of the value function, for which reason the only way of eliminating IL is to design an AMM with an at least linear value function. YieldBasis provides such a design by engineering exposure to scale linearly with
p
p
p
, not as
p
\sqrt{p}
p
.
2. Compounding leverage — turning √p into p
YieldBasis borrows against the LP collateral to keep a
constant compounding leverage
of
L
L
L
.
2.1 Defining "compounding leverage"
By construction, the protocol keeps debt at a fixed fraction of collateral:
d
=
V
c
(
1
−
1
L
)
.
(2.1)
d = V_c \left(1 - \frac{1}{L}\right). \tag{2.1}
d
=
V
c
(
1
−
L
1
)
.
(
2.1
)
So the net position value is
V
∗
=
V
c
−
d
=
V
c
L
.
(2.2)
V_* = V_c - d = \frac{V_c}{L}. \tag{2.2}
V
∗
=
V
c
−
d
=
L
V
c
.
(
2.2
)
Consider a small change in collateral value
d
V
c
dV_c
d
V
c
. After re-leveraging to restore the ratio, the relative change of
V
∗
V_*
V
∗
is amplified by
L
L
L
:
δ
V
∗
V
∗
=
L
δ
V
c
V
c
.
(2.3)
\frac{\delta V_*}{V_*} = L \, \frac{\delta V_c}{V_c}. \tag{2.3}
V
∗
δ
V
∗
=
L
V
c
δ
V
c
.
(
2.3
)
Integrate both sides:
∫
δ
V
∗
V
∗
=
L
∫
δ
V
c
V
c
⟹
ln
V
∗
=
L
ln
V
c
+
const
.
(2.4)
\int \frac{\delta V_*}{V_*} = L \int \frac{\delta V_c}{V_c}
\;\Longrightarrow\;
\ln V_* = L \ln V_c + \text{const}. \tag{2.4}
∫
V
∗
δ
V
∗
=
L
∫
V
c
δ
V
c
⟹
ln
V
∗
=
L
ln
V
c
+
const
.
(
2.4
)
Exponentiate:
V
∗
∝
V
c
L
(2.5)
\boxed{V_* \propto V_c^{\,L}} \tag{2.5}
V
∗
∝
V
c
L
(
2.5
)
Why is the relative change amplified?
Growth of the price of collateral.
If the collateral grows in price, the value
V
∗
V_*
V
∗
changes as (
d
d
d
is kept constant at this step):
V
∗
+
δ
V
∗
=
V
c
−
d
+
δ
V
c
−
δ
d
=
(
V
c
−
d
)
+
δ
V
c
=
V
∗
+
δ
V
c
=
V
∗
+
y
δ
p
V_* + \delta V_* = V_c - d + \delta V_c - \delta d = (V_c - d) + \delta V_c = V_* + \delta V_c = V_* + y\delta p
V
∗
+
δ
V
∗
=
V
c
−
d
+
δ
V
c
−
δ
d
=
(
V
c
−
d
)
+
δ
V
c
=
V
∗
+
δ
V
c
=
V
∗
+
yδ
p
δ
V
∗
V
∗
=
y
δ
p
y
p
L
=
L
δ
p
p
=
L
δ
V
c
V
c
\frac{\delta V_*}{V_*} = \frac{y \delta p}{\frac{yp}{L}} = L\frac{\delta p}{p} = L\frac{\delta V_c}{V_c}
V
∗
δ
V
∗
=
L
y
p
yδ
p
=
L
p
δ
p
=
L
V
c
δ
V
c
Adjustment of the debt value and of the collateral amount.
By definition:
d
=
V
c
(
1
−
1
L
)
d = V_c\left(1-\frac{1}{L}\right)
d
=
V
c
(
1
−
L
1
)
Then:
V
∗
+
δ
V
∗
=
V
c
−
d
+
δ
V
c
−
δ
d
=
(
V
c
+
δ
V
c
)
−
d
−
(
1
−
1
L
)
δ
V
c
=
V
∗
+
1
L
δ
V
c
=
V
∗
+
1
L
p
δ
y
V_*+\delta V_* = V_c - d +\delta V_c - \delta d = (V_c + \delta V_c)-d-\left(1-\frac{1}{L}\right)\delta V_c = V_*+\frac{1}{L}\delta V_c = V_*+\frac{1}{L}p\delta y
V
∗
+
δ
V
∗
=
V
c
−
d
+
δ
V
c
−
δ
d
=
(
V
c
+
δ
V
c
)
−
d
−
(
1
−
L
1
)
δ
V
c
=
V
∗
+
L
1
δ
V
c
=
V
∗
+
L
1
p
δy
Whence it follows that
δ
V
∗
V
∗
=
p
δ
y
L
p
y
L
=
δ
y
y
=
δ
V
c
V
c
\frac{\delta V_*}{V_*} = \frac{\frac{p\delta y}{L}}{\frac{py}{L}} = \frac{\delta y}{y} = \frac{\delta V_c}{V_c}
V
∗
δ
V
∗
=
L
p
y
L
p
δy
=
y
δy
=
V
c
δ
V
c
In this step the value of the leveraged position tracks the collateral value linearly, so the total scaling factor equals the scaling factor from the previous step. See the General Idea section of the whitepaper for more.
2.2 Pick L = 2 to linearise BTC exposure
Curve Cryptoswap LP value scales approximately as
V
c
∝
p
V_c \propto \sqrt{p}
V
c
∝
p
. Substituting into (2.5):
V
∗
∝
(
p
)
L
=
p
L
/
2
.
(2.6)
V_* \propto (\sqrt{p})^{\,L} = p^{\,L/2}. \tag{2.6}
V
∗
∝
(
p
)
L
=
p
L
/2
.
(
2.6
)
Set
L
=
2
L = 2
L
=
2
:
V
∗
∝
p
(2.7)
\boxed{V_* \propto p} \tag{2.7}
V
∗
∝
p
(
2.7
)
Result.
With
L
=
2
L = 2
L
=
2
, the position tracks BTC one-to-one. The
p
\sqrt{p}
p
curvature, and with it impermanent loss, is eliminated while trading fees continue to accrue.
2.3 What if L ≠ 2?
L
>
2
L > 2
L
>
2
:
V
∗
∝
p
L
/
2
V_* \propto p^{L/2}
V
∗
∝
p
L
/2
— outperform on the way up, underperform on the way down (reintroduces divergence vs. just holding).
L
<
2
L < 2
L
<
2
: You under-hedge the
p
\sqrt{p}
p
curve and still suffer residual IL.
Hence
locking
L
=
2
L = 2
L
=
2
is the sweet spot: linear BTC exposure, zero IL, manageable debt always unwindable with the LP's USD side.
3. LEVAMM & Virtual Pool
To keep leverage fixed at
L
=
2
L = 2
L
=
2
(debt = 50% of value), YieldBasis uses a second AMM ("LEVAMM"). It holds Curve LP tokens on one side and implicit crvUSD debt on the other, anchored to an oracle price
p
o
p_o
p
o
(BTC/USD).
The derivation first states the target (ideal) state at
p
=
p
o
p = p_o
p
=
p
o
, then derives the invariant and solves for the anchor variable
x
0
(
p
o
)
x_0(p_o)
x
0
(
p
o
)
.
3.1 Ideal debt at the oracle price
If the live market price equals the oracle price
p
o
p_o
p
o
, "perfect" leverage is:
d
~
=
L
−
1
L
p
o
y
~
(ideal debt when
p
=
p
o
)
,
(3.1)
\tilde{d} \;=\; \frac{L-1}{L}\,p_o\,\tilde{y} \qquad\text{(ideal debt when } p = p_o\text{)}, \tag{3.1}
d
~
=
L
L
−
1
p
o
y
~
(ideal debt when
p
=
p
o
)
,
(
3.1
)
where
y
~
\tilde{y}
y
~
is th프로젝트로 돌아가기