tx · 9XFbBUXPLZcJpYhU53UhmPggLGwL8hE2bbSzb8GpV2nk

3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi:  -0.04000000 Waves

2022.08.23 14:58 [2197101] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves

{ "type": 13, "id": "9XFbBUXPLZcJpYhU53UhmPggLGwL8hE2bbSzb8GpV2nk", "fee": 4000000, "feeAssetId": null, "timestamp": 1661256047355, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "5T2HWPRYwoxcTXPJA8BqkuCZg1qjtxBREDZJbkC74U4U5H8B73avHShz1PFPnnTseRREruQ5bKjF5vgNEPVcC8p4", "pHrME2iqAFsDQD87WXAfoqSQjCxkRiaM8WHCsjoxjWU5k4oAdD4WGJGPvdse98jE2MFQcGwUcCRrFRLV2TCKz9y", "3Tg3xCL429YdmbdSzWqXgkDiMVHaubBSRLJ5ZA7wH3JmBBHbNEzsd7uxMA9sLeFA3cXJBBMSvVAvUCJg6WzEZWQA" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABXAAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eEAAAAAAAd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AAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAPcPwq3", "chainId": 84, "height": 2197101, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DrecysSgZVcyzTwuipRov3KjjtBhzUMG37Qdbj38XRvk Next: HryhGkGQ4wsumQgUB5mtqa3SKHorT4xmBEML2My3VyzK Diff:
OldNewDifferences
7474
7575
7676 func keySwapAmountBParam () = "%s%s__config__swapBParam"
77+
78+
79+func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
80+
81+
82+func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
7783
7884
7985 func keyNeutrinoAssetId () = "neutrino_asset_id"
200206
201207 let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId()))
202208
209+let currentPrice = getIntegerValue(controlContract, keyPrice())
210+
211+let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
212+
213+let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
214+
215+let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
216+
217+let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
218+
219+let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
220+
221+let BR = if ((neutrinoSupply == 0))
222+ then 0
223+ else fraction(reservesInUsdn, MULT6, neutrinoSupply)
224+
203225 @Callable(i)
204226 func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this))
205227 then throw("not authorized")
209231
210232 @Callable(i)
211233 func calcSwapLimitREADONLY (gNsbtAmount) = {
212- let limit = if ((0 >= gNsbtAmount))
234+ let limitWavesInUsdn = if ((0 >= gNsbtAmount))
213235 then 0
214236 else {
215237 let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam()))
217239 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
218240 toInt(fraction(aParamX8, powPartX8, MULTX10))
219241 }
220- $Tuple2(nil, limit)
242+ let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice)
243+ let limitUsdn = if ((0 >= gNsbtAmount))
244+ then 0
245+ else {
246+ let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam()))
247+ let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam()))
248+ let brX6 = toBigInt(BR)
249+ let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
250+ toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6))
251+ }
252+ $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn])
221253 }
222254
223255
268300 func surfFunctionREADONLY (amount,assetId) = if ((0 > amount))
269301 then throw("amount should be positive")
270302 else {
271- let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
272- let price = asInt(neutrinoMetrics[nMetricIdxPrice])
303+ let price = currentPrice
273304 let priceBig = toBigInt(price)
274- let reserve = asInt(neutrinoMetrics[nMetricIdxReserve])
275305 let reserveBig = toBigInt(reserve)
276- let supply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
306+ let supply = neutrinoSupply
277307 let supplyBig = toBigInt(supply)
278- let BR = asInt(neutrinoMetrics[nMetricIdxBR])
279308 if ((BR >= MULT6))
280309 then throw((("BR = " + toString(BR)) + ", cannot buy SURF"))
281310 else {
323352
324353 @Callable(i)
325354 func calcNeutinoMetricsREADONLY () = {
326- let currentPrice = getIntegerValue(controlContract, keyPrice())
327- let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
328- let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
329- let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
330- let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
331- let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
332355 let surplus = (reservesInUsdn - neutrinoSupply)
333356 let deficit = (neutrinoSupply - reservesInUsdn)
334357 let surplusPercent = if ((neutrinoSupply == 0))
335358 then 0
336359 else (fraction(surplus, MULT6, neutrinoSupply) * 100)
337- let BR = if ((neutrinoSupply == 0))
338- then 0
339- else fraction(reservesInUsdn, MULT6, neutrinoSupply)
340360 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
341361 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
342362 let surfSupply = value(assetInfo(surfAssetId)).quantity
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let revisionNum = ""
55
66 let MULTSCALE = 8
77
88 let SCALE16 = 16
99
1010 let SEP = "__"
1111
1212 let HALF8 = 50000000
1313
1414 let EULERX16 = toBigInt(27182818284590452)
1515
1616 let TWOX = toBigInt(2)
1717
1818 let MULT6 = 1000000
1919
2020 let MULTX6 = toBigInt(1000000)
2121
2222 let MULT8 = 100000000
2323
2424 let MULTX8 = toBigInt(100000000)
2525
2626 let MULTX10 = toBigInt(10000000000)
2727
2828 let MULTX16 = toBigInt(10000000000000000)
2929
3030 let WAVESID = fromBase58String("WAVES")
3131
3232 let kResultIdxA = 0
3333
3434 let kResultIdxPaulB = 1
3535
3636 let kResultIdxWReservesInUsdn = 2
3737
3838 let kResultIdxMultBR = 3
3939
4040 let kResultIdxMultPower = 4
4141
4242 let kResultIdxMultExpInPowerStr = 5
4343
4444 let kResultIdxMultKStr = 6
4545
4646 let nMetricIdxPrice = 0
4747
4848 let nMetricIdxUsdnLockedBalance = 1
4949
5050 let nMetricIdxWavesLockedBalance = 2
5151
5252 let nMetricIdxReserve = 3
5353
5454 let nMetricIdxReserveInUsdn = 4
5555
5656 let nMetricIdxUsdnSupply = 5
5757
5858 let nMetricIdxSurplus = 6
5959
6060 let nMetricIdxSurplusPercent = 7
6161
6262 let nMetricIdxBR = 8
6363
6464 let nMetricIdxNsbtSupply = 9
6565
6666 let nMetricIdxMaxNsbtSupply = 10
6767
6868 let nMetricIdxSurfSupply = 11
6969
7070 func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress"
7171
7272
7373 func keySwapAmountAParam () = "%s%s__config__swapAParam"
7474
7575
7676 func keySwapAmountBParam () = "%s%s__config__swapBParam"
77+
78+
79+func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
80+
81+
82+func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
7783
7884
7985 func keyNeutrinoAssetId () = "neutrino_asset_id"
8086
8187
8288 func keyNsbtAssetId () = "bond_asset_id"
8389
8490
8591 func keySurfAssetId () = "surf_asset_id"
8692
8793
8894 func keyBalanceLocked () = "balance_lock_"
8995
9096
9197 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
9298
9399
94100 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
95101
96102
97103 func swapsTimeframeKEY () = "swaps_timeframe"
98104
99105
100106 func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP)
101107
102108
103109 func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP)
104110
105111
106112 func keyPrice () = "price"
107113
108114
109115 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
110116
111117
112118 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
113119
114120
115121 func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0)
116122
117123
118124 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
119125
120126
121127 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
122128
123129
124130 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
125131
126132
127133 func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult))
128134
129135
130136 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
131137
132138
133139 func asAnyList (val) = match val {
134140 case valAnyLyst: List[Any] =>
135141 valAnyLyst
136142 case _ =>
137143 throw("fail to cast into List[Any]")
138144 }
139145
140146
141147 func asInt (val) = match val {
142148 case valInt: Int =>
143149 valInt
144150 case _ =>
145151 throw("fail to cast into Int")
146152 }
147153
148154
149155 func asString (val) = match val {
150156 case valStr: String =>
151157 valStr
152158 case _ =>
153159 throw("fail to cast into String")
154160 }
155161
156162
157163 let IdxControlCfgNeutrinoDapp = 1
158164
159165 let IdxControlCfgAuctionDapp = 2
160166
161167 let IdxControlCfgRpdDapp = 3
162168
163169 let IdxControlCfgMathDapp = 4
164170
165171 let IdxControlCfgLiquidationDapp = 5
166172
167173 let IdxControlCfgRestDapp = 6
168174
169175 let IdxControlCfgNodeRegistryDapp = 7
170176
171177 let IdxControlCfgNsbtStakingDapp = 8
172178
173179 let IdxControlCfgMediatorDapp = 9
174180
175181 func keyControlAddress () = "%s%s__config__controlAddress"
176182
177183
178184 func keyControlCfg () = "%s__controlConfig"
179185
180186
181187 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
182188
183189
184190 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
185191
186192
187193 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
188194
189195 let controlCfg = readControlCfgOrFail(controlContract)
190196
191197 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
192198
193199 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
194200
195201 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
196202
197203 let neutrinoAssetId = fromBase58String(getStringOrFail(neutrinoContract, keyNeutrinoAssetId()))
198204
199205 let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId()))
200206
201207 let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId()))
202208
209+let currentPrice = getIntegerValue(controlContract, keyPrice())
210+
211+let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
212+
213+let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
214+
215+let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
216+
217+let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
218+
219+let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
220+
221+let BR = if ((neutrinoSupply == 0))
222+ then 0
223+ else fraction(reservesInUsdn, MULT6, neutrinoSupply)
224+
203225 @Callable(i)
204226 func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this))
205227 then throw("not authorized")
206228 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)]
207229
208230
209231
210232 @Callable(i)
211233 func calcSwapLimitREADONLY (gNsbtAmount) = {
212- let limit = if ((0 >= gNsbtAmount))
234+ let limitWavesInUsdn = if ((0 >= gNsbtAmount))
213235 then 0
214236 else {
215237 let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam()))
216238 let bParamX16 = toBigInt(getIntOrFail(this, keySwapAmountBParam()))
217239 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
218240 toInt(fraction(aParamX8, powPartX8, MULTX10))
219241 }
220- $Tuple2(nil, limit)
242+ let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice)
243+ let limitUsdn = if ((0 >= gNsbtAmount))
244+ then 0
245+ else {
246+ let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam()))
247+ let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam()))
248+ let brX6 = toBigInt(BR)
249+ let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
250+ toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6))
251+ }
252+ $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn])
221253 }
222254
223255
224256
225257 @Callable(i)
226258 func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = {
227259 let EXP = toBigInt(2718281)
228260 let EXPSCALE = 6
229261 let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3)
230262 let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10))
231263 let wReservesInUsdn = convertWavesToNeutrino(wRaw, price)
232264 let multBR = fraction(wReservesInUsdn, MULT8, uRaw)
233265 if ((multBR > 10678564816))
234266 then throw((("BR=" + toString(multBR)) + " > 10678.564816% will overflow exponent"))
235267 else {
236268 let multPower = (a * (multBR - MULT8))
237269 let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN)
238270 let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6)
239271 $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)])
240272 }
241273 }
242274
243275
244276
245277 @Callable(i)
246278 func curveFunctionREADONLY (wavesPayRaw) = {
247279 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
248280 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
249281 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
250282 let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
251283 let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
252284 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
253285 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
254286 let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
255287 let usdnPay = convertWavesToNeutrino(wavesPayRaw, price)
256288 let bigMaxNsbtSupply = toBigInt(mRaw)
257289 let bigNsbtSupply = toBigInt((mRaw - sRaw))
258290 let step1 = fraction(toBigInt(usdnPay), MULTX16, multK)
259291 let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply)
260292 let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply)))
261293 let nsbtAmountRaw = ((mRaw - sRaw) - step3)
262294 $Tuple2(nil, [nsbtAmountRaw, usdnPay, wRaw, uRaw, mRaw, sRaw, asInt(kCalcArray[kResultIdxA]), asInt(kCalcArray[kResultIdxPaulB]), asInt(kCalcArray[kResultIdxWReservesInUsdn]), price, asInt(kCalcArray[kResultIdxMultBR]), asInt(kCalcArray[kResultIdxMultPower]), kCalcArray[kResultIdxMultExpInPowerStr], kCalcArray[kResultIdxMultKStr], toString(step1), toString(step2), step3])
263295 }
264296
265297
266298
267299 @Callable(i)
268300 func surfFunctionREADONLY (amount,assetId) = if ((0 > amount))
269301 then throw("amount should be positive")
270302 else {
271- let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
272- let price = asInt(neutrinoMetrics[nMetricIdxPrice])
303+ let price = currentPrice
273304 let priceBig = toBigInt(price)
274- let reserve = asInt(neutrinoMetrics[nMetricIdxReserve])
275305 let reserveBig = toBigInt(reserve)
276- let supply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
306+ let supply = neutrinoSupply
277307 let supplyBig = toBigInt(supply)
278- let BR = asInt(neutrinoMetrics[nMetricIdxBR])
279308 if ((BR >= MULT6))
280309 then throw((("BR = " + toString(BR)) + ", cannot buy SURF"))
281310 else {
282311 let maxWavesPay = (fraction(supply, MULT8, price) - reserve)
283312 let maxUsdnPay = (supply - fraction(reserve, price, MULT8))
284313 let useAmount = if ((assetId == neutrinoAssetId))
285314 then if ((amount > maxUsdnPay))
286315 then maxUsdnPay
287316 else amount
288317 else if ((assetId == WAVESID))
289318 then if ((amount > maxWavesPay))
290319 then maxWavesPay
291320 else amount
292321 else 0
293322 let amountBig = toBigInt(useAmount)
294323 if ((assetId == neutrinoAssetId))
295324 then $Tuple2(nil, [toInt(fraction(fraction(amountBig, MULTX8, priceBig), (supplyBig - (amountBig / TWOX)), reserveBig)), 0, useAmount, reserve, supply, BR, reserve, (supply - useAmount), fraction(convertWavesToNeutrino(reserve, price), MULT6, (supply - useAmount)), (amount - useAmount), price])
296325 else if ((assetId == WAVESID))
297326 then $Tuple2(nil, [toInt(fraction(supplyBig, log(fraction((reserveBig + amountBig), MULTX16, reserveBig), 16, EULERX16, 16, 16, HALFUP), MULTX16)), useAmount, 0, reserve, supply, BR, (reserve + useAmount), supply, fraction(convertWavesToNeutrino((reserve + useAmount), price), MULT6, supply), (amount - useAmount), price])
298327 else throw("Unsupported asset")
299328 }
300329 }
301330
302331
303332
304333 @Callable(i)
305334 func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = {
306335 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
307336 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
308337 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
309338 let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA)
310339 let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA)
311340 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
312341 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
313342 let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
314343 let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw)))
315344 let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16)
316345 let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16)
317346 let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16))
318347 let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price)
319348 $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice])
320349 }
321350
322351
323352
324353 @Callable(i)
325354 func calcNeutinoMetricsREADONLY () = {
326- let currentPrice = getIntegerValue(controlContract, keyPrice())
327- let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
328- let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
329- let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
330- let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
331- let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
332355 let surplus = (reservesInUsdn - neutrinoSupply)
333356 let deficit = (neutrinoSupply - reservesInUsdn)
334357 let surplusPercent = if ((neutrinoSupply == 0))
335358 then 0
336359 else (fraction(surplus, MULT6, neutrinoSupply) * 100)
337- let BR = if ((neutrinoSupply == 0))
338- then 0
339- else fraction(reservesInUsdn, MULT6, neutrinoSupply)
340360 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
341361 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
342362 let surfSupply = value(assetInfo(surfAssetId)).quantity
343363 $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, surplus, surplusPercent, BR, nsbtSupply, nsbtSupplyMAX, surfSupply])
344364 }
345365
346366
347367
348368 @Callable(i)
349369 func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8))
350370
351371
352372
353373 @Callable(i)
354374 func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = {
355375 let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8)
356376 let v = fraction((amount1 + amount2), MULT8, (amount1 + w))
357377 $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8)))
358378 }
359379
360380
361381 @Verifier(tx)
362382 func verify () = {
363383 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
364384 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
365385 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
366386 then 1
367387 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
368388 then 1
369389 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
370390 then 1
371391 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
372392 then 2
373393 else 0))
374394 (count >= 3)
375395 }
376396

github/deemru/w8io/026f985 
51.29 ms