bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 2쪽 중 2쪽
Y
in
the
liquidity
pool.
On
the
other
hand,
the
constant
product
function
is
.
𝑥 × 𝑦 = 𝑐𝑜𝑛𝑠𝑡
As
the
curve
of
this
function
extends
along
the
coordinate
axes
infinitely,
the
liquidity
of
any
token
can
never
be
zero,
which
means
users
can
always
trade
one
asset
for
the
other
asset.
However,
the
slope
of
this
curve
is
ever-changing,
leading
to
changes
in
prices.
In
this
way,
users
can
never
complete
all
swaps
at
a
constant
price,
suffering
from
slippage
instead.
We
can
take
a
look
at
the
figure
below
to
better
compare
the
features
of
the
two
formulas.
Figure
5
Constant
sum
and
constant
product
models
To
better
leverage
the
advantages
of
both,
StableSwap
integrates
the
two
formulas.
Thus,
we
introduced
the
sum
of
the
constant
sum
and
constant
product:
As
α
(
𝑥
+
𝑦
)
+
β
(
𝑥𝑦
)
=
𝑐𝑜𝑛𝑠𝑡
.
is
shown
in
Figure
6,
this
curve
stands
between
the
constant
sum
and
the
constant
product
function,
like
a
pan
mapped
to
the
two-dimensional
surface.
Figure
6
Hybrid
constant
function
model
When
trading
within
the
range
of
the
“bottom
of
the
pan”,
users
get
to
enjoy
relatively
stable
prices
and
thus
avoid
slippage.
This
also
means
that
the
market
maker
model
is
not
suitable
for
assets
with
volatile
prices,
but
only
for
the
swap
of
stablecoins.
For
liquidity
providers,
StableSwap
dramatically
reduces
the
risk
of
impermanent
loss,
which
is
greatly
lower
than
the
constant
product
model
as
long
as
the
prices
are
within
the
“bottom
of
the
pan”.
Even
if
the
prices
move
to
the
two
sides
of
the
“pan”,
arbitrageurs
will
quickly
engage
in
arbitrage
to
pull
the
prices
back
to
the
“bottom”.
Meanwhile,
the
two
sides
of
the
“pan”
extend
along
the
two
axes
infinitely,
avoiding
the
exhaustion
of
liquidity.
At
any
price,
no
asset
will
be
zero,
though
there
may
be
high
slippage.
4.2.2
How
StableSwap
Works
(multiple-token
case)
In
this
section,
we
will
introduce
the
model
more
detailedly
on
how
exactly
StableSwap
works
in
the
case
of
multiple
tokens.
The
constant
sum
function
can
be
generalized
for
any
number
of
tokens
having
a
linear
invariant:
𝑥 𝑖 = 𝑐𝑜𝑛𝑠𝑡
The
generalization
also
goes
for
the
constant
product
invariant:
𝑖
=
1
𝑛
∏
𝑥
𝑖
𝑤
𝑖
=
𝑐𝑜𝑛𝑠𝑡
.
refers
to
the
reserve
of
each
asset,
the
weight
of
each
asset
and
.
a
constant
.
𝑥 𝑖 𝑤 𝑖 𝑐𝑜𝑛𝑠𝑡
In
actual
use
cases,
the
formulas
are
simplified
as
the
two
fundamental
ones:
&
𝑖
=
1
𝑛
∑
𝑥
𝑖
=
𝐷
𝑖
=
1
𝑛
∏
𝑥
𝑖
=
(
𝐷
𝑛
)
𝑛
represents
the
total
supply
of
tokens
in
the
liquidity
pool
when
the
price
(or
amount)
of
all
𝐷
tokens
is
the
same;
refers
to
how
many
types
of
tokens
there
are
in
the
pool.
𝑛
Based
on
the
two
formulas,
we
introduced
,
the
weight
of
the
constant
sum
invariant.
When
χ
,
the
formula
is
the
constant
product
one;
when
,
it
is
the
constant
sum
invariant;
χ = 0 χ → ∞
when
assumes
a
value
in
between,
it
is
the
combination
of
the
two.
χ
In
addition,
considering
the
number
of
different
tokens
may
vary,
we
multiply
the
two
sides
of
𝑛
the
equation
by
,
then
add
the
constant
product
function
and
get
the
following:
χ
𝐷
𝑛 − 1
χ
𝐷
𝑛 − 1
∑
𝑥
𝑖
+
∏
𝑥
𝑖
=
χ
𝐷
𝑛
+
(
𝐷
𝑛
)
𝑛
In
addition,
to
allow
to
be
adjusted
when
the
price
deviates
from
1
by
a
large
margin,
we
χ
introduced
the
constant
𝐴
and
variable
.
We
can
get
,
by
multiplying
𝐴
and
,
∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
χ =
𝐴 ∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
with
being
the
balance
level
of
liquidity
in
the
pool.
∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
When
the
distribution
of
tokens
in
the
liquidity
pool
is
completely
balanced,
;
∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
= 1 , χ = 𝐴
while
and
both
are
close
to
zero
when
the
distribution
is
extremely
unbalanced,
so
the
∏ 𝑥 𝑖
(
𝐷
𝑛
)
𝑛
χ
function
becomes
the
constant
product
one.
As
the
constant
sum
function
only
applies
to
the
case
when
the
relative
price
has
no
volatility
and
stands
at
1,
it
does
not
suit
the
scenario
of
extreme
unbalanced
distribution
of
tokens
in
the
pool
with
the
price
deviating
from
1
by
a
sharp
margin.
Substitute
into
the
equation,
and
we
can
get
the
market
maker
function
in
the
end:
χ
𝐴
𝑛
𝑛
∑
𝑥
𝑖
+
𝐷
=
𝐴𝐷
𝑛
𝑛
+
𝐷
𝑛 + 1
𝑛
𝑛
∏
𝑥
𝑖
Based
on
the
function,
the
swap
of
tokens
can
impact
on
the
value
of
.
Take
USDT,
USDJ
and
𝑥 𝑖
TUSD
in
3pool
for
example.
Let’s
suppose
the
supply
of
the
three
tokens
is
𝑥 1 , 𝑥 2 , 𝑥 3
respectively.
The
value
of
will
become
when
we
sell
)
USDT
to
get
USDJ.
If
we
𝑥 1 𝑥 1 , ( 𝑥 1 , − 𝑥 1
substitute
into
the
equation
above,
we
can
calculate
and
is
the
number
of
USDJ
𝑥
1
,
𝑥
2
,
,
𝑥
2
−
𝑥
2
,
tokens
obtained.
During
this
process,
𝐴
and
𝐷
both
remain
the
same.
But
this
does
not
mean
𝐴
and
𝐷
are
always
invariable.
When
LPs
increase
or
reduce
liquidity
of
the
pool,
𝐷
will
change
accordingly.
Based
on
the
formula
above,
the
new
𝑥
will
be
used
to
calculate
the
new
𝐷
.
𝐷
will
be
greater
if
liquidity
rises,
and
smaller
if
liquidity
narrows.
As
is
shown
in
Figure
7,
with
𝐴
unchanged,
higher
𝐷
will
move
the
curve
upwards,
with
the
“bottom
of
the
pan”
larger
than
before,
vice
versa.
Figure
7
Changes
of
𝐷
𝐴
is
an
adjustable
parameter.
When
𝐷
remains
the
same,
we
can
see
from
Figure
8
how
the
change
of
𝐴
influences
the
market
making
curve.
The
greater
𝐴
is,
the
more
the
curve
approaches
the
constant
sum
curve,
and
the
larger
the
area
of
the
“bottom
of
the
pan”,
otherwise,
the
closer
the
curve
is
to
the
constant
product
curve,
the
smaller
the
"bottom
of
the
pan"
area.
Figure
8
Changes
of
𝐴
4.3
Benefits
for
veSUN
Holders
At
present,
the
SUN.io
platform
allows
users
to
stake
SUN
in
exchange
for
veSUN.
Users
who
hold
veSUN
enjoy
the
following
benefits:
●
get
rewards
from
transaction
fees
in
the
stablecoin
pool
●
boost
liquidity
pool
mining
●
vote
for
the
weights
of
liquidity
pools
4.3.1
How
to
Get
veSUN
Users
can
get
veSUN
by
staking
SUN.
The
details
are
as
follows:
If
SUN
is
staked
for
a
duration
of
(
=4
years),
then
we
have
𝑡 1 𝑡 1 ≤ 𝑡 𝑚𝑎𝑥
𝐴𝑚𝑜𝑢𝑛𝑡
𝑣𝑒𝑆𝑈𝑁
=
𝐴𝑚𝑜𝑢𝑛𝑡
𝑆𝑈𝑁
𝑡
1
𝑡
𝑚𝑎𝑥
This
means
that
veSUN
(voting
rights)
shares
a
linear
relationship
with
the
amount
of
SUN
and
the
staking
duration
(
).
is
a
real-time
value,
which
means
that
as
time
passes,
will
𝑡 1 𝑡 1 𝑡 1
decrease,
so
the
amount
of
veSUN
will
be
smaller
accordingly.
veSUN
will
become
zero
if
SUN
is
unstaked.
4.3.2
Get
Rewards
from
Transaction
Fees
The
platform
grants
50%
of
the
transaction
fees
in
all
stablecoin
pools
to
veSUN
holders
in
the
form
of
TUSD.
At
present,
we
take
multiple
snapshots
of
the
amount
of
veSUN
held
by
users
within
each
round
(from
Thursday
00:00
to
Tuesday
00:00
next
week).
After
the
round
ends,
the
weighted
TUSD
rewards
will
be
calculated
and
rewarded
to
users
in
proportion
to
their
veSUN
holdings
by
triggering
smart
contracts.
4.3.3
Boost
Liquidity
Pool
Mining
Unlike
ordinary
liquidity
mining,
the
governance
mining
of
SUN.io
takes
into
consideration
veSUN
and
introduces
a
new
concept,
virtual
balance
,
to
the
calculation
of
the
input
of
𝑏
𝑢
*
users.
The
value
of
is
related
to
the
user’s
real
balance
,
the
total
liquidity
in
the
liquidity
pool
,
𝑏
𝑢
*
𝑏
𝑢
𝑆
the
amount
of
veSUN
held
by
the
user
and
the
amount
of
veSUN
on
the
whole
𝐴𝑚𝑜𝑢𝑛𝑡 𝑢
platform
,
as
shown:
𝐴𝑀𝑂𝑈𝑁𝑇
𝑏
𝑢
*
=
𝑚𝑖𝑛
(
0
.
4
𝑏
𝑢
+
0
.
6
𝑆
𝐴𝑚𝑜𝑢𝑛𝑡
𝑢
𝐴𝑀𝑂𝑈𝑁𝑇
, 𝑏 𝑢 )
Based
on
this
formula,
the
virtual
balance
only
represents
0.4
times
the
actual
balance
if
a
𝑏
𝑢
*
𝑏
𝑢
user
does
not
hold
any
veSUN,
but
if
the
user
holds
enough
veSUN,
,
at
its
maximum
can
be
𝑏
𝑢
*
equal
to
.
𝑏 𝑢
As
the
mining
rewards
are
distributed
based
on
the
virtual
balance,
with
the
same
actual
balance,
veSUN
holders
can
boost
their
mining
speed
up
to
2.5
times
that
of
non-veSUN
holders.
In
addition,
the
value
of
the
amount
of
veSUN
is
stored
in
smart
contracts
and
is
only
changed
when
users
deposit
or
withdraw
tokens,
or
claim
rewards.
4.3.4
Vote
for
the
Weights
of
Liquidity
Pools
Users
can
leverage
veSUN
to
vote
for
mining
of
different
liquidity
pools.
Snapshots
of
the
votes
will
be
taken
each
week
to
determine
the
weights
of
pools
for
the
next
week.
With
the
value
of
veSUN
decreasing
all
the
time,
users
can
vote
according
to
the
percentage
of
veSUN
they
hold.
To
prevent
users
from
changing
their
votes
too
frequently,
they
are
only
allowed
to
change
their
votes
10
days
after
voting
in
a
mining
pool.
As
this
feature
only
requires
the
value
from
the
veSUN
smart
contracts,
other
use
cases
for
veSUN
will
not
be
affected.
5
Milestones
5.1
SUN
1.0
5.1.1
Genesis
Mining
In
September
2020,
Genesis
Mining
was
initiated,
allowing
users
to
stake
TRX
in
smart
contracts
to
get
SUNOLD.
After
this
mining
stage
ended,
SUNOLD
was
delivered
to
users
automatically
through
smart
contracts.
5.1.2
Official
Mining
In
the
middle
of
September
2020,
official
mining
offered
multiple
mining
pools
including
TRX,
JST,
USDT,
SUNOLD,
USDJ,
WIN,
BTT,
quality
community
projects
and
liquidity
mining
pools,
where
users
could
engage
in
mining
through
staking.
5.1.3
JustLend
Mining
In
December
2020,
the
SUN
platform
supported
mining
by
depositing
TRX,
JST,
USDT,
SUNOLD,
USDJ,
WIN,
BTC,
ETH
and
WBTT.
5.1.4
Century
Mining
In
March
2021,
the
Century
Mining
was
initiated,
supporting
the
mining
of
SUNOLD,
TRX,
JST,
BTT
and
WIN
by
staking
LP
Tokens
on
JustSwap
and
depositing
jTokens
on
JustLend.
5.2
SUN
2.0
5.2.1
SUN
Redenomination
Plan
In
May
2021,
to
lower
the
threshold
for
users
to
hold
tokens
and
promote
the
SUN
ecosystem,
the
SUN
tokens
were
redenominated
at
a
ratio
of
1:1000
and
the
total
supply
changed
from
19,900,730
to
19,900,730,000,
while
the
market
cap
of
SUN
is
maintained.
To
better
differentiate
the
old
and
new
tokens,
we
refer
to
the
old
SUN
tokens
as
SUNOLD
and
rename
the
new
tokens
as
SUN,
assuming
a
brand
new
logo.
5.2.2
Platform
Upgrading
In
May
2021,
the
SUN.io
platform
was
upgraded
to
the
first
integrated
platform
of
stablecoin
swapping,
token
mining
and
DAO.
At
the
preliminary
stage
of
its
initiation,
SUN
introduced
the
3pool
swap
pool,
supporting
the
swap
among
USDT,
USDJ
and
TUSD.
The
later
upgraded
platform
enjoys
advantages
of
low
transaction
fees,
slippage
and
impermanent
loss,
with
higher
efficiency
and
security.
5.2.3
Brand-New
Mining
Model
In
June
2021,
SUN.io
introduced
new
mining
models
of
3pool
LP,
SUN-TRX
LP,
SUN
Stake
and
SUN
Stake
&
Lock,
with
two
phases:
Genesis
Mining
and
Governance
Mining.
During
Governance
Mining,
users
could
stake
SUN
to
get
voting
rights
(veSUN),
and
vote
to
decide
the
weights
of
different
liquidity
pools
in
mining.
5.2.4
New
Stablecoin
Pool
-
USDC
Pool
In
August
2021,
the
SUN.io
platform
launched
a
new
stablecoin
pool:
USDC
Pool
(USDC+3SUN).
The
liquidity
mining
pool
of
USDC
LP
arrived
at
the
same
time,
where
users
could
stake
tokens
to
participate
in
governance
mining
and
gain
rewards.
5.2.5
Second
Phase
of
Governance
Mining
On
September
15,
2021,
the
second
phase
of
SUN
Governance
Mining
went
live,
during
which
the
role
of
veSUN
(voting
rights
users
obtained
by
locking
SUN)
was
further
exploited
on
the
SUN.io
platform.
The
main
use
cases
for
veSUN
are:
obtaining
TUSD
rewards,
boosting
liquidity
pool
mining
and
voting
to
determine
the
weights
of
liquidity
pools
in
mining.
5.2.6
Acquisition
of
JustSwap
In
October
2021,
SUN.io
completed
the
acquisition
of
JustSwap,
which
marks
our
brand
upgrade
and
efforts
to
build
the
largest
decentralized
exchange
on
TRON.
5.2.7
Launching
SunSwap
V3
On
June
28,
2023,
SUN.io
is
launching
SunSwap
V3.
The
concentrated
liquidity
of
SunSwap
V3
boosts
capital
efficiency,
allowing
users
to
add
liquidity
by
customizing
the
token
pair,
fee
tier,
and
price
range.
As
trading
fees
will
be
allocated
in
proportion
to
the
share
of
each
position
within
the
price
range.
5.2.8
SUN
DAO
on
SUN.io
On
July
31,
2024,
SUN.io
has
officially
launched
SUN
DAO.
SUN
DAO
is
a
platform
aimed
at
achieving
genuine
community
autonomy
and
open
collaboration
through
blockchain
technology
and
smart
contracts.
As
a
decentralized
autonomous
organization
(DAO),
we
provide
a
fair,
transparent,
and
efficient
decision-making
framework
for
community
members,
enabling
everyone
to
equally
participate
in
project
development
and
governance
.
5.3
SunPump
5.3.1
Launch
SunPump
On
August
12,
2024,
the
SUN.io
platform
launched
the
brand-new
SunPump
platform.
As
the
first
meme
token
launch
platform
focused
on
the
TRON
network,
SunPump
aims
to
provide
creators
with
a
convenient
and
low-cost
way
to
launch
their
tokens.
5.3.2
AI
Assistant
–
The
First
AI
Agent
on
Tron!
On
December
23,
2024,
SunPump
launched
its
AI
assistant—an
innovative
feature
designed
to
make
token
creation
faster,
easier,
and
more
enjoyable!
With
the
power
of
AI,
users
can
now
generate
token
details
through
a
simple
conversation
with
our
AI
agent
bot,
simplifying
the
entire
process
and
boosting
efficiency.
6
Future
Plans
6.1
Optimize
User
Experience
6.1.1
Improve
Asset
Utilization
Efficiency
The
SUN.io
platform
will
optimize
our
current
AMM
program
and
StableSwap
models,
enhancing
features
such
as
liquidity
pooling,
orders
within
certain
price
ranges,
limit
orders
and
providing
liquidity
for
a
specific
token.
Through
technological
upgrading
and
business
model
innovation,
we
can
help
users
reduce
their
impermanent
loss.
6.1.2
Facilitate
Trading
Across
Chains
Going
forward,
SUN.io
will
connect
multiple
heterogeneous
blockchain
networks
and
realize
the
cross-chain
swap
of
assets.
We
will
offer
users
a
more
convenient,
cost-effective
and
secure
way
to
trade
assets
across
various
blockchains.
6.1.3
Optimize
User
Experience
To
cater
to
users’
preferences
and
enhance
interactions,
SUN.io
will
boost
user
experience
by
upgrading
our
product
portfolio
in
terms
of
their
availability,
operability
and
security.
6.2
Expand
Product
Ecosystem
6.2.1
Provide
Diverse
DEX
Products
Based
on
current
products
and
user
profiles,
we
will
introduce
other
DEX
products
like
smart
routes,
orders
within
certain
price
ranges,
limit
orders,
market
making
for
a
specific
token,
margin
trading
and
futures
trading
to
provide
the
SUN.io
platform
with
more
diverse
use
case
scenarios
and
improve
the
utilization
ratio
of
users’
assets.
6.2.2
Build
a
One-Stop
DeFi
Platform
Based
on
current
DEX
products,
the
SUN.io
platform
will
provide
our
users,
including
market
makers,
traders
and
arbitrageurs,
with
more
choices,
higher
profitability
and
more
convenient
one-stop
services
by
way
of
smart
routes,
investment
plan
recommendation
and
integration
of
multiple
models,
combined
with
other
lending
and
insurance
products.
6.2.3
Join
Hands
to
Make
DeFi
Prosper
Apart
from
developing
proprietary
products,
we
also
hope
to
work
with
more
developers
and
partners
to
build
a
better
ecosystem
of
SUN.io.
Through
IDO,
fund
investment
and
project
incubators,
we
can
jointly
contribute
to
the
prosperity
of
DeFi
with
all-round
support
of
funds,
technology
and
other
resources.
6.3
Grant
Value
to
Users
6.3.1
Long-Term
Mining
Program
To
incentivize
users
participating
in
the
SUN
ecosystem,
we
will
continue
to
launch
mining
programs,
including
but
not
limited
to
liquidity
mining,
SUN-staked
mining,
etc.
6.3.2
Promote
DAO
Program
The
SUN.io
platform
will
advance
its
decentralized
autonomous
organization
(DAO)
program.
With
SUN
as
the
sole
governance
token,
the
platform
grants
users
the
right
to
determine
future
development
paths
of
all
products.
6.3.3
Maintain
Token
Value
In
the
future,
transaction
fees
will
only
account
for
a
fraction
of
the
revenue
of
the
SUN.io
platform,
while
revenue
from
other
products
will
be
bought
back,
burned
and
redistributed,
along
with
future
R&D,
to
maintain
the
value
of
the
SUN
token,
bringing
benefits
to
users
in
a
sustained
way.프로젝트로 돌아가기