bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 2쪽 중 1쪽
SUN
V3.0
Last
updated:
April
15,
2025
1
Introduction
SUN.io
was
founded
to
foster
the
growth
of
TRON’s
DeFi
ecosystem.
Thanks
to
the
community
and
open-source
smart
contracts,
SUN.io
has
established
ties
with
other
DeFi
projects
on
the
TRON
public
chain
through
decentralized
liquidity
mining.
SUN.io
has
become
the
largest
asset
issuance
and
trading
platform
on
the
TRON
blockchain
and
serves
as
the
core
of
TRON's
DeFi
ecosystem.
The
SUN.io
platform
integrates
token
swaps,
liquidity
mining,
stablecoin
exchange,
and
governance
on
the
TRON
blockchain,
with
a
comprehensive
focus
on
building
a
TRON
DeFi
system
centered
around
DEX
functionality.
To
provide
a
smoother
and
more
secure
meme
token
trading
experience
and
to
let
users
effortlessly
enjoy
the
charm
of
the
meme
ecosystem,
SUN.io
has
launched
the
brand-new
SunPump
platform.
As
the
first
meme
token
launchpad
dedicated
to
the
TRON
network,
SunPump
aims
to
offer
creators
a
convenient
and
low-cost
way
to
launch
their
tokens.
As
the
native
token
of
SUN.io,
SUN
plays
an
important
role
in
platform
governance,
buying
back
and
burning
rewards,
offering
rewards
to
liquidity
providers
and
other
features,
and
aligns
with
TRON’s
aspiration
to
bring
common
benefits
to
all
users.
1.1
Vision
SUN.io
aims
to
build
an
integrated
DEX
ecosystem
with
a
high
level
of
functionality,
profitability
and
security
by
leveraging
multiple
transaction
protocols.
It
provides
various
incentives
for
participants,
including
rewards
of
transaction
fees
offered
to
liquidity
market
makers,
liquidity
mining
of
LP
Tokens
and
staking
rewards
of
the
SUN
token.
Meanwhile,
the
burning
mechanism
of
SUN
and
the
voting
rights
of
SUN
holders
together
form
a
closed-loop
ecosystem.
1.2
Market
Prospects
DeFi
started
to
rise
in
popularity
in
2020
and
gradually
takes
the
main
stage
in
blockchain.
It
saw
continued
robust
growth
in
2021
and
has
become
one
of
the
largest
applications
of
this
industry.
Figure
1
TVL
of
the
DeFi
Market
The
overall
trend
of
the
total
value
locked
(TVL)
directly
reflects
the
development
of
the
DeFi
market.
According
to
the
latest
data
from
DefiLlama
(as
of
April
12,
2025),
the
total
value
locked
(TVL)
in
DeFi
projects
has
shown
a
breakout
surge
since
the
beginning
of
2021,
with
the
highest
TVL
reaching
$232.4
billion.
A
growing
number
of
organisations
are
promoting
greater
TVL
growth
through
developing
mature
and
secure
protocols.
In
addition,
massive
earnings
generated
by
the
DeFi
sector
are
encouraging
individual
investors
to
migrate
from
centralized
platforms
to
the
DeFi
space.
Driven
by
increased
adoption
among
all
investors,
DeFi
is
entering
a
new
stage
of
growth.
1.3
Solutions
of
SUN
SUN.io,
the
first
platform
that
integrates
on-chain
token
swaps,
liquidity
mining,
stablecoin
swaps
and
DAO
on
the
TRON
public
chain,
provides
users
with
diversified
one-stop
services:
●
Efficient
and
secure
swaps
among
any
tokens
with
the
best
prices—
SunSwap
●
Efficient
swaps
among
stablecoins
with
low
slippage
and
fees—
Stablecoin
pool
●
User-governed
liquidity
mining
that
can
be
boosted—
Governance
mining
●
SUN
token
staking
rewards—
Rewards
from
voting
rights
(veSUN)
2
Governance
Mechanism
2.1
Economic
Model
Figure
2
Distribution
of
the
SUN
Token
There
are
no
pre-mining,
tokens
reserved
for
teams,
cornerstone
investment,
or
private
placement
for
the
SUN
token.
Instead,
various
functions
and
mechanisms
of
the
ecosystem
guarantee
that
the
SUN
token
can
be
distributed
in
a
fair
and
sustained
way.
The
distribution
of
SUN
has
gone
through
two
phases—
V1
and
V2—
as
follows:
Distribution
of
SUN
tokens
(V1):
●
Genesis
Mining
9.35%
●
Official
Mining
15.59%
●
JustLend
Mining
1.18%
●
Century
Mining
2.47%
Distribution
of
SUN
tokens
(V2):
●
Genesis
Mining
4.2%
●
Governance
Mining
19.05%
●
veCRV
Airdrop
1.0%
●
Sun
DAO
Governance:
47.16%
(Locked
for
four
years
with
linear
vesting)
Figure
3
SUN
Token
Unlock
Schedule
Chart
Going
forward,
the
SUN
platform
will
take
on
more
features
as
the
ecosystem
grows,
and
the
number
of
use
cases
for
the
SUN
token
will
further
increase,
incentivising
users
to
make
a
sustained
contribution
to
the
growth
of
the
ecosystem.
2.2
Burning
The
latest
SunSwap
protocol
on
the
SUN.io
platform
supports
using
a
portion
of
DEX
trading
fees
to
repurchase
and
burn
SUN
tokens.
Buyback
Method:
The
SunSwap
V2
contract
retains
0.05%
of
each
transaction
fee
in
the
form
of
LP
Tokens,
which
are
periodically
converted
to
SUN
and
sent
to
a
designated
burn
address.
Revenue
generated
by
the
SunPump
contract
is
retained
in
TRX
and,
when
needed,
converted
to
SUN
and
also
sent
to
the
burn
address.
Burning
Method:
The
SUN
tokens
stored
in
the
above-mentioned
address
will
be
burned,
by
transferring
those
tokens
bought
back
within
a
month
to
the
blackhole
address
of
TRON
(T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb)
each
month.
Since
December
15,
2021
(Singapore
Time),
as
of
April
12,
2025,
a
total
of
494,199,018.90
SUN
tokens
have
been
repurchased
and
burned.
Of
this,
333,183,948.74
SUN
tokens
were
repurchased
and
burned
using
income
from
SunSwap
V2,
and
161,015,070.16
SUN
tokens
were
repurchased
and
burned
using
income
from
SunPump.
2.3
Incentives
2.3.1
SUN
Governance
Mining
In
the
market
maker
mechanism
of
SunSwap,
the
depth
of
the
transaction
pool
mainly
comes
from
liquidity
providers
(LPs).
The
swap
mechanism
in
the
stablecoin
pool
also
requires
users’
efforts
to
provide
liquidity
so
as
to
maintain
stable
prices
for
swaps.
As
a
result,
the
governance
mining
of
the
SUN
platform
now
supports
staking
LP
Tokens
for
mining
on
SunSwap
and
in
the
stablecoin
pool.
In
the
meantime,
users
can
participate
in
voting
to
determine
the
weight
of
a
mining
pool,
and
stake
SUN
to
get
veSUN
as
a
boost
multiplier
for
mining,
which
can
motivate
users
to
hold
SUN
for
a
longer
term.
The
SUN.io
platform
actively
promotes
more
users
to
provide
liquidity
through
a
variety
of
ways.
2.3.2
SUN
Staking
Rewards
The
SUN.io
platform
allows
users
to
stake
SUN
to
obtain
veSUN.
Based
on
the
amount
of
veSUN
users
hold,
the
platform
delivers
50%
of
the
transaction
fees
generated
in
the
stablecoin
pool
to
veSUN
holders.
3
SunPump
3.1
Operating
Mechanism
SunPump
is
the
first
fair-launch
meme
token
platform
on
TRON,
dedicated
to
providing
creators
with
a
convenient
and
low-cost
way
to
launch
their
tokens.
All
meme
token
contracts
launched
on
the
platform
are
fully
transparent,
with
no
presale
and
no
team
allocation.
Users
can
freely
browse
the
platform
to
discover
meme
tokens
they
are
interested
in
and
purchase
them
easily
through
a
Bonding
Curve
mechanism,
enjoying
a
flexible
trading
experience.
As
community
participation
and
token
purchases
increase,
the
token’s
market
value
is
expected
to
rise
steadily
until
it
reaches
100%
of
the
Bonding
Curve
(Market
value
is
approximately
500,000
$TRX).
Once
this
target
is
achieved,
the
platform
will
automatically
deposit
100,000
TRX
and
200
million
tokens
into
SunSwap
V2
as
liquidity,
and
simultaneously
burn
the
corresponding
assets—empowering
the
token
and
boosting
market
confidence.
3.2
Service
Fees
●
Launch
Fee:
A
creation
fee
of
approximately
20
TRX
is
required.
●
Trading
Fee:
A
1%
fee
is
charged
on
platform
transactions
before
the
project
reaches
100%
of
the
Bonding
Curve.
●
Liquidity
Fee
:
When
the
project
reaches
100%
of
the
Bonding
Curve,
the
smart
contract
will
automatically
add
approximately
100,000
TRX
and
the
remaining
200
million
tokens
to
the
SunSwap
V2
liquidity
pool.
Additionally,
the
smart
contract
will
deduct
around
3,000
TRX
from
the
Bonding
Curve
to
cover
the
liquidity
addition
fee.
4
Underlying
Technology
4.1
SunSwap
AMM
Model
SunSwap
adopts
the
AMM
(Automated
Market
Maker)
model,
the
most
widely-used
transaction
model
in
DeFi.
Unlike
an
order
book
of
a
traditional
exchange,
the
AMM
uses
a
constant-product
mathematical
formula
to
determine
the
prices
of
assets,
so
that
transactions
can
be
done
in
an
automatic
way
and
the
liquidity
of
trading
pairs
can
be
safeguarded.
A
few
definitions
related
to
the
AMM
model
are
clarified
as
follows:
●
Liquidity:
the
sum
of
the
two
tokens
in
the
smart
contracts
of
a
trading
pair.
We
can
increase
(provide)
liquidity
by
staking
the
two
tokens
at
the
same
time.
●
Liquidity
Pool:
the
pool
of
liquidity,
i.e.
a
collection
of
assets
in
the
AMM.
SunSwap
is
able
to
match
orders
through
AMM
in
the
liquidity
pool.
●
Liquidity
Provider
(LP):
users
who
provide
liquidity
to
the
pool.
●
LP
Token:
A
trading
pair
itself
is
a
TRC-20
smart
contract,
whose
tokens
represent
the
supply
of
liquidity
and
are
referred
to
as
LP
Tokens.
When
LPs
are
offering
liquidity,
SunSwap
will
mint
tokens
and
grant
them
to
LPs;
it
will
burn
LP
Tokens
when
LPs
withdraw
liquidity.
●
Liquidity
Pool
Share
(LPS):
the
proportion
of
LP
Tokens
in
circulation
held
by
each
LP,
showing
the
contribution
rate
of
each
LP
to
the
total
liquidity.
·
4.1.1
Creating
Liquidity:
When
a
liquidity
pool
is
first
created,
the
original
amount
of
the
two
tokens
both
stands
at
0.
In
order
to
make
transactions
possible,
LPs
have
to
stake
a
certain
amount
of
the
two
tokens
to
initiate
the
liquidity
pool.
The
first
LP
is
the
one
who
sets
the
original
price
of
liquidity
and
gains
his/her
LPS.
The
prices
of
the
two
tokens
in
the
pool
are
determined
by
the
relative
amount
of
one
token
compared
to
the
other.
This
means
that
the
total
amount
of
the
two
remains
the
same,
but
the
amount
of
each
token
will
change
after
each
transaction,
leading
to
changes
in
prices
as
well.
The
adjustments
in
prices
are
based
on
the
formula
below:
(k
represents
a
constant)
𝑥 × 𝑦 = 𝑘
4.1.1.1
SunSwap
V1
&
V1.5
and
in
the
formula
above
refer
to
the
amount
of
the
two
tokens
respectively.
According
to
𝑥 𝑦
the
smart
contracts
of
V1
and
V1.5,
one
of
the
tokens
has
to
be
TRX.
This
is
why,
in
this
section
(3.1),
token
X
refers
to
TRX.
If
the
first
LP
provides
an
amount
of
and
of
the
two
tokens,
and
the
LP
Tokens
are
,
then:
𝑥 0 𝑦 0 𝑠 0
𝑠 0 = 𝑥 0
e.g.
If
=100,000,
=1,000,
then
=100,000,
which
means
that
after
staking
token
X
(TRX)
𝑥 0 𝑦 0 𝑠 0
and
token
Y,
users
can
get
100,000
LP
Tokens,
and
the
total
amount
of
LP
Tokens
in
the
liquidity
pool
is
100,000
as
well.
Therefore,
the
first
LP
holds
a
100%
LPS.
Meanwhile,
in
the
liquidity
pool,
the
relative
price
of
token
Y
to
token
X
is:
1
Y=
100,000/1,000=100
X.
𝑥 0 / 𝑦 0 =
For
example,
if
token
X
is
TRX
and
Y
is
SUN,
then
1
SUN
=
100
TRX.
4.1.1.2
SunSwap
V2
and
represent
the
amount
of
two
different
tokens.
If
the
first
LP
provides
an
amount
of
𝑥 𝑦 𝑥 0
and
of
the
two
tokens,
and
the
LP
Tokens
obtained
are
,
then:
𝑦 0 𝑠 0
𝑠
0
*
=
𝑥
0
*
*
𝑦
0
*
− 1000
Notes:
①
The
mark
*
means
that
the
value
is
the
real
value
without
omitting
decimal
places.
For
example,
if
=10,
and
the
decimal
places
of
all
LP
Tokens
are
18,
then
=
.
𝑠 0 𝑠 0 * 10 19
②
To
prevent
users
from
completely
removing
all
liquidity,
the
deducted
1,000
(decimal
places
omitted.
The
real
value
is
1000/
)
LP
Tokens
will
be
deposited
into
a
blackhole
10
18
=
10
− 15
address.
e.g.
Suppose
=10
(decimal
places:
18),
=10
(decimal
places:
18),
we
have
=10
-
,
𝑥 0 𝑦 0 𝑠 0 10 − 15
which
means
that
users
can
get
10
-
LP
Tokens
after
staking
token
X
and
Y.
Also,
the
total
10
− 15
liquidity
of
the
liquidity
pool
is
10
as
well,
so
the
first
LP
holds
a
100%
LPS
(with
few
tokens
deposited
into
the
blackhole
address).
Meanwhile,
in
the
liquidity
pool,
the
relative
price
of
token
Y
to
token
X
is:
1
Y=
100,000/1,000=100
X.
For
example,
if
token
X
is
TRX
and
Y
𝑥 0 / 𝑦 0 =
is
SUN,
then
1
SUN
=
100
TRX.
4.1.1.3
SunSwap
V3
SunSwap
V3
adopts
a
concentrated
liquidity
model
based
on
constant
product,
introducing
the
idea
of
virtual
liquidity
to
SunSwap
V2.
The
formula
for
this
market
maker
model
is
the
following:
(
𝑥
+
𝑥
_
𝑣𝑖𝑟𝑡𝑢𝑎𝑙
)
*
(
𝑦
+
𝑦
_
𝑣𝑖𝑟𝑡𝑢𝑎𝑙
)
=
𝐿
2
It
is
clear
from
the
mechanism
of
concentrated
liquidity
that
x_virtual
and
y_virtual
correlate
with
p_upper
and
p_lower.
The
formula
for
the
concentrated
liquidity
model
can
then
be
derived
as
the
following:
(
𝑥
+
𝐿
𝑃
𝑢𝑝𝑝𝑒𝑟
)
*
(
𝑦
+
𝐿
*
𝑃
𝑙𝑜𝑤𝑒𝑟
)
=
𝐿
2
It
can
be
inferred
from
the
formula
that
V3
allows
users
to
provide
liquidity
within
a
certain
price
range,
as
illustrated
below:
Figure
4
Simulation
of
real
liquidity
SunSwap
V3
calculates
liquidity
based
on
the
formula
L=
𝑥𝑦
SunSwap
V3
calculates
prices
based
on
the
formula
𝑝 = 𝑦 / 𝑥
It
can
be
inferred
from
the
above
formulas
that
∆
𝑥
=
(
1
𝑝
𝑐
−
1
𝑝
𝑏
)
𝐿
Note:
represents
the
amount
of
token0
added;
and
represent
the
respective
price
of
b
∆ 𝑥 𝑝 𝑏 𝑝 𝑐
and
c
in
Figure
4.
∆
𝑦
=
(
𝑝
𝑐
− 𝑝 𝑎) 𝐿
Note:
represents
the
amount
of
token1
added;
and
represent
the
respective
price
of
a
∆ 𝑦 𝑝 𝑎 𝑝 𝑐
and
c
in
Figure
4.
Two
liquidity
formulas
can
be
thereby
derived:
L=
∆
𝑥
𝑝
𝑏
𝑝
𝑐
𝑝
𝑏
− 𝑝 𝑐
L=
∆ 𝑦
𝑝
𝑐
− 𝑝 𝑎
Take
the
minimum
of
the
two
L
values
as
the
liquidity
obtained.
Example:
Add
1
X
and
5,000
Y
to
a
spot
pool
where
1
X
=
5,000
Y.
Set
the
lower
limit
of
the
price
range
to
4,545
Y
and
the
upper
limit
to
5,500
Y.
The
liquidity
obtained
is
calculated
as
follows:
,
=
,
=
.
𝑝 𝑐 = 5000/1≈70 . 71 𝑝 𝑏 5500/1≈74 . 16 𝑝 𝑎 4545/1≈67 . 42
;
output
L
in
Q64.96
format,
𝐿
=
Δ
𝑥
𝑝
𝑏
𝑝
𝑐
𝑝
𝑏
− 𝑝 𝑐
=
1
𝑋
*
74 . 16 * 70 . 71
74
.
16
−
70
.
71
L=1519437308014769733632.
;
then
output
L
in
Q64.96
format,
𝐿
=
∆ 𝑦
𝑝
𝑐
− 𝑝 𝑎
=
5000 𝑌
70
.
71
−
67
.
42
L=1517882343751509868544.
Take
the
minimum
of
the
two
values,
and
the
liquidity
is
1517882343751509868544.
4.1.2
Increasing
Liquidity:
When
there
is
existing
liquidity
in
the
pool,
additional
liquidity
can
be
added
according
to
the
ratio
of
the
amount
of
token
X
to
token
Y,
and
LP
Tokens
will
be
minted
based
on
this
ratio
as
well.
Suppose
the
current
amount
of
token
X
is
,
that
of
token
Y
,
and
that
of
LP
Tokens
𝑥 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑦 𝑐𝑢𝑟𝑟𝑒𝑛𝑡
;
the
newly-added
amount
of
token
X
is
and
Y
(under
common
circumstances,
𝑠 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑥 𝑎𝑑𝑑 𝑦 𝑎𝑑𝑑
/
=
/
,
so
liquidity
is
added
based
on
the
same
ratio),
and
the
amount
of
𝑥 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑥 𝑎𝑑𝑑 𝑦 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑦 𝑎𝑑𝑑
new
LP
Tokens
is
,
then
we
have:
𝑠 𝑎𝑑𝑑
𝑠
𝑎𝑑𝑑
=
𝑚𝑖𝑛
(
𝑥
𝑎𝑑𝑑
𝑥
𝑐𝑢𝑟𝑟𝑒𝑛𝑡
,
𝑦
𝑎𝑑𝑑
𝑦
𝑐𝑢𝑟𝑟𝑒𝑛𝑡
) × 𝑠 𝑐𝑢𝑟𝑟𝑒𝑛𝑡
E.g.
If
another
user
adds
2000
X
and
20
Y
to
the
liquidity
pool,
he/she
can
get
2000
LP
Tokens.
4.1.3
Withdrawing
Liquidity:
When
a
user
withdraws
liquidity,
he/she
can
get
X
and
Y
according
to
the
same
ratio.
Suppose
the
current
amount
of
token
X
is
,
that
of
token
Y
,
that
of
LP
Tokens
𝑥 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑦 𝑐𝑢𝑟𝑟𝑒𝑛𝑡
,
and
the
amount
of
LP
Tokens
to
be
removed
is
,
then
the
user
can
get
an
amount
𝑠 𝑐𝑢𝑟𝑟𝑒𝑛𝑡 𝑠 𝑟𝑒𝑚𝑜𝑣𝑒
of
and
of
the
two
tokens
respectively,
as
shown:
𝑥 𝑤𝑖𝑡ℎ𝑑𝑟𝑎𝑤 𝑦 𝑤𝑖𝑡ℎ𝑑𝑟𝑎𝑤
,
𝑥
𝑤𝑖𝑡ℎ𝑑𝑟𝑎𝑤
=
𝑠
𝑟𝑒𝑚𝑜𝑣𝑒
𝑠
𝑐𝑢𝑟𝑟𝑒𝑛𝑡
× 𝑥 𝑐𝑢𝑟𝑟𝑒𝑛𝑡
𝑦
𝑤𝑖𝑡ℎ𝑑𝑟𝑎𝑤
=
𝑠
𝑟𝑒𝑚𝑜𝑣𝑒
𝑠
𝑐𝑢𝑟𝑟𝑒𝑛𝑡
× 𝑦 𝑐𝑢𝑟𝑟𝑒𝑛𝑡
4.1.4
Swapping
Swapping
is
also
based
on
the
constant
product
formula,
with
and
representing
the
amount
𝑥 𝑦
of
token
X
and
token
Y:
(k
represents
a
constant)
𝑥 × 𝑦 = 𝑘
If
the
user
wants
to
swap
token
X
for
Y
in
the
liquidity
pool,
suppose
the
amount
of
X
to
be
swapped
is
and
the
amount
of
Y
gained
,
then:
∆ 𝑥 ∆ 𝑦
(
𝑥
+
∆
𝑥
)
×
(
𝑦
−
∆
𝑦
)
=
𝑘
∆
𝑦
=
𝑦
−
𝑘
𝑥
+
∆
𝑥
=
∆ 𝑥 × 𝑦
𝑥
+
∆
𝑥
As
is
shown,
the
product
of
the
total
amount
of
X
and
Y
always
remains
the
same
before
and
after
the
transaction.
This
means
that
the
price
of
this
transaction
can
be
seen
as
the
ratio
of
the
amount
of
token
X
to
that
of
Y,
given
that
the
amount
in
this
transaction
is
relatively
small
compared
to
the
total
tokens
of
the
liquidity
pool.
𝑝𝑟𝑖𝑐
𝑒
𝑦
=
∆ 𝑥
∆
𝑦
=
𝑥 + ∆ 𝑥
𝑦
≈
𝑥
𝑦
During
an
actual
transaction,
0.3%
will
be
deducted
as
transaction
fees,
before
the
following
calculation
is
done
based
on
the
constant-product
invariant.
E.g.
There
are
100
X
and
1
Y
in
the
liquidity
pool.
If
one
wishes
to
trade
20
X
through
the
swapping
mechanism,
then
the
actual
amount
to
be
swapped
is
19.94
X
(0.3%
deducted
as
fees).
According
to
the
formula
,
we
have:
𝑥 × 𝑦 = 𝑘
(
100
+
19
.
94
)
×
(
1
−
∆
𝑦
)
=
100
∆ 𝑦 = 0 . 1662
This
means
one
can
swap
20
X
for
0.1662
Y.
4.2
SUN
StableSwap
Model
The
swap
for
stablecoins
on
SUN
adopts
a
totally
different
model
from
SunSwap:
StableSwap.
With
the
development
of
stablecoins,
apart
from
the
mainstream
USDT,
other
stablecoins
can
also
be
traded
on
the
TRON
public
chain,
like
USDJ,
TUSD
and
USDC.
The
growing
market
share
and
variety
of
stablecoins
have
given
rise
to
the
massive
and
multifarious
demand
from
users
for
swapping
stablecoins.
The
unique
StableSwap
model,
thanks
to
its
low
fees
and
low
price
slippage,
becomes
the
best
choice
for
users
to
swap
stablecoins.
4.2.1
How
StableSwap
Works
(two-token
case)
The
core
of
the
StableSwap
model
is
to
lower
price
slippage
while
ensuring
that
the
liquidity
pool
can
provide
liquidity
at
any
price.
To
achieve
this
end,
we
combined
the
constant
sum
with
the
constant
product
formula.
Though
StableSwap
supports
multiple-token
market
making,
we
will
explain
how
this
model
works
taking
two-token
market
making
as
an
example
because
it
is
easier
for
you
to
understand.
The
constant
sum
formula
is
as
follows:
.
(const.
refers
to
a
constant)
𝑥 + 𝑦 = 𝑐𝑜𝑛𝑠𝑡
As
the
slope
of
this
linear
function
is
invariable,
transactions
come
with
zero
slippage.
If
you
have
two
tokens
X
and
Y,
selling
of
coin
X
will
lead
to
buying
=
of
coin
Y,
which
𝑑𝑥 − 𝑑𝑦 𝑑𝑥
means
the
price
determined
as
is
always
the
same.
However,
this
market
maker
− 𝑑𝑥 / 𝑑𝑦
model
has
its
problem
-
the
exhaustion
of
liquidity.
Suppose
const.
=
10,
if
a
user
sells
10
X,
then
there
would
be
zero
프로젝트로 돌아가기