|
|
@@ -163,7 +163,7 @@ module.exports = class LpLib {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- calcSwapPrice() {
|
|
|
+ calcSwapPrice(lpList) {
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -171,6 +171,10 @@ module.exports = class LpLib {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ calcLpValue(lpList) {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
async perfectLpInfo(lpList) {
|
|
|
// 1. 更新所有lp的r0,r1
|
|
|
await this.putR0AndR1(lpList)
|
|
|
@@ -180,6 +184,7 @@ module.exports = class LpLib {
|
|
|
// 3. 计算token0与token1的相对价格(需要decimals0,decimals1)
|
|
|
this.calcSwapPrice(lpList)
|
|
|
// 4. 获取池子兑基本币价值
|
|
|
+ this.calcLpValue(lpList)
|
|
|
}
|
|
|
|
|
|
async getLpList(version) {
|