You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
搜索代码库中与 Bonding curve 相关的实现或文档,以便结合项目上下文介绍。
[3 tools called]
Bonding Curve 算法介绍
基本概念
Bonding Curve(联合曲线) 是一种自动做市机制,用数学函数定义代币/NFT的价格与供应量的关系。价格随供应量变化,无需传统订单簿。
核心原理
价格函数:价格 = f(供应量)
P = k * S^n(k 为常数,S 为当前供应量,n 为指数)P = k * S(n=1)P = k * S^2(n=2,更陡峭)买入(铸造):
卖出(销毁):
在 NFT 中的应用优势
常见改进方向
数学示例
假设使用线性曲线:
P = 0.01 * S卖出时,第 100 个 NFT 的持有者可以按约 0.99 ETH 的价格卖出(第 99 个 NFT 的价格)。
在您的项目中的应用
在 NFT 铸造和出售系统中,Bonding curve 可以:
如需针对您的具体场景设计曲线参数或改进方案,请说明需求。
Beta Was this translation helpful? Give feedback.
All reactions