tx · 55cw3hVWu7YLPwVgxpDrT2FQRqDRXiycbhrtg2K8JjMo

3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi:  -0.04000000 Waves

2022.09.26 14:40 [2246051] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves

{ "type": 13, "id": "55cw3hVWu7YLPwVgxpDrT2FQRqDRXiycbhrtg2K8JjMo", "fee": 4000000, "feeAssetId": null, "timestamp": 1664192459216, "version": 1, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "2xs4DD195BeZpt8HM8FeHXSDjjBx8N9z1jH6Dj1gUZkcXLBZ16ik98aDVUSnneQqqLjaEKo6E8eB23M8VR1HT71X", "4sjcynWGuYJFzfUgWfzhGvKKAktAuAvCGMHU2QXuM3DVBFU1pk5uCcnHotP6CLcPuqw5oLdCkUTNGaurBUt9HKSs", "QW2Sa3mTc5qG1jxvn3SMvozX7xLkFJKpJ8repamcuFDevD6A9bFkKcjpvSC8VwEMYDKVLLVfygHELA2kBn8H3rW" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAABeAAAAAAtyZXZpc2lvbk51bQIAAAAoZGRjNmU1MWVhNjMxNDJmMjY3OGNjMTQ1YWUyODUxZGE3NmVhMjQ1OQAAAAAJTVVMVFNDQUxFAAAAAAAAAAAIAAAAAAdTQ0FMRTE2AAAAAAAAAAAQAAAAAANTRVACAAAAAl9fAAAAAAVIQUxGOAAAAAAAAvrwgAAAAAAIRVVMRVJYMTYJAAE2AAAAAQAAYJKhE9jVdAAAAAAEVFdPWAkAATYAAAABAAAAAAAAAAACAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1V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kAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADr7eFiQ==", "chainId": 84, "height": 2246051, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C56HDkyxree3ybz1WY5p55UQ3NVPEVyaE5iyJCZLgrdh Next: 6os9rBNfRjZz8BoUau1FW92aPriR6giBgp9ck2W13sJu Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let revisionNum = ""
4+let revisionNum = "ddc6e51ea63142f2678cc145ae2851da76ea2459"
55
66 let MULTSCALE = 8
77
222222 else {
223223 func balancesSUM (outOfMarketSupply,nextAddress) = ((outOfMarketSupply + valueOrElse(getInteger(usdnStakingContract, rpdUserBalanceKey(nextAddress, neutrinoAssetIdStr)), 0)) + assetBalance(addressFromStringValue(nextAddress), neutrinoAssetId))
224224
225- let sum = {
226- let $l = split(outOfMarketAddressList, SEP)
227- let $s = size($l)
228- let $acc0 = 0
229- func $f0_1 ($a,$i) = if (($i >= $s))
230- then $a
231- else balancesSUM($a, $l[$i])
225+ let $l = split(outOfMarketAddressList, SEP)
226+ let $s = size($l)
227+ let $acc0 = 0
228+ func $f0_1 ($a,$i) = if (($i >= $s))
229+ then $a
230+ else balancesSUM($a, $l[$i])
232231
233- func $f0_2 ($a,$i) = if (($i >= $s))
234- then $a
235- else throw("List size exceeds 4")
232+ func $f0_2 ($a,$i) = if (($i >= $s))
233+ then $a
234+ else throw("List size exceeds 4")
236235
237- $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
238- }
239- throw((((("" + outOfMarketAddressList) + " ") + toString(sum)) + "neutrinoAssetIdStr"))
236+ $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
240237 }
241238 }
242239
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let revisionNum = ""
4+let revisionNum = "ddc6e51ea63142f2678cc145ae2851da76ea2459"
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"
7777
7878
7979 func keyUsdnSwapAmountAParam () = "%s%s__config__usdnSwapAParam"
8080
8181
8282 func keyUsdnSwapAmountBParam () = "%s%s__config__usdnSwapBParam"
8383
8484
8585 func keyNeutrinoAssetId () = "neutrino_asset_id"
8686
8787
8888 func keyNsbtAssetId () = "bond_asset_id"
8989
9090
9191 func keySurfAssetId () = "surf_asset_id"
9292
9393
9494 func keyBalanceLocked () = "balance_lock_"
9595
9696
9797 func keyWavesLockedBalance () = (keyBalanceLocked() + "waves")
9898
9999
100100 func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino")
101101
102102
103103 func swapsTimeframeKEY () = "swaps_timeframe"
104104
105105
106106 func keyUserLastQuickSwapHeight (userAddress) = makeString(["%s%s", "userLastQuickSwapHeight", userAddress], SEP)
107107
108108
109109 func keyQuickSwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "quickSwapUserSpentInPeriod", userAddress], SEP)
110110
111111
112112 func keyPrice () = "price"
113113
114114
115115 let RpdBalanceKey = "rpd_balance"
116116
117117 func rpdUserBalanceKey (owner,assetId) = makeString([RpdBalanceKey, assetId, owner], "_")
118118
119119
120120 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
121121
122122
123123 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
124124
125125
126126 func getNumberByKey (address,key) = valueOrElse(getInteger(address, key), 0)
127127
128128
129129 func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
130130
131131
132132 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
133133
134134
135135 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
136136
137137
138138 func toX16 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULTX16, toBigInt(origScaleMult))
139139
140140
141141 func fromX16 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULTX16))
142142
143143
144144 func asAnyList (val) = match val {
145145 case valAnyLyst: List[Any] =>
146146 valAnyLyst
147147 case _ =>
148148 throw("fail to cast into List[Any]")
149149 }
150150
151151
152152 func asInt (val) = match val {
153153 case valInt: Int =>
154154 valInt
155155 case _ =>
156156 throw("fail to cast into Int")
157157 }
158158
159159
160160 func asString (val) = match val {
161161 case valStr: String =>
162162 valStr
163163 case _ =>
164164 throw("fail to cast into String")
165165 }
166166
167167
168168 let IdxControlCfgNeutrinoDapp = 1
169169
170170 let IdxControlCfgAuctionDapp = 2
171171
172172 let IdxControlCfgRpdDapp = 3
173173
174174 let IdxControlCfgMathDapp = 4
175175
176176 let IdxControlCfgLiquidationDapp = 5
177177
178178 let IdxControlCfgRestDapp = 6
179179
180180 let IdxControlCfgNodeRegistryDapp = 7
181181
182182 let IdxControlCfgNsbtStakingDapp = 8
183183
184184 let IdxControlCfgMediatorDapp = 9
185185
186186 func keyControlAddress () = "%s%s__config__controlAddress"
187187
188188
189189 func keyControlCfg () = "%s__controlConfig"
190190
191191
192192 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
193193
194194
195195 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
196196
197197
198198 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
199199
200200 let controlCfg = readControlCfgOrFail(controlContract)
201201
202202 let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp)
203203
204204 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
205205
206206 let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp)
207207
208208 let usdnStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp)
209209
210210 let neutrinoAssetIdStr = getStringOrFail(neutrinoContract, keyNeutrinoAssetId())
211211
212212 let neutrinoAssetId = fromBase58String(neutrinoAssetIdStr)
213213
214214 let nsbtAssetId = fromBase58String(getStringValue(neutrinoContract, keyNsbtAssetId()))
215215
216216 let surfAssetId = fromBase58String(getStringValue(auctionContract, keySurfAssetId()))
217217
218218 func calcUsdnOutOfMarketSupply () = {
219219 let outOfMarketAddressList = valueOrElse(getString(controlContract, "%s%s__control__outOfMarketAddressList"), "")
220220 if ((outOfMarketAddressList == ""))
221221 then 0
222222 else {
223223 func balancesSUM (outOfMarketSupply,nextAddress) = ((outOfMarketSupply + valueOrElse(getInteger(usdnStakingContract, rpdUserBalanceKey(nextAddress, neutrinoAssetIdStr)), 0)) + assetBalance(addressFromStringValue(nextAddress), neutrinoAssetId))
224224
225- let sum = {
226- let $l = split(outOfMarketAddressList, SEP)
227- let $s = size($l)
228- let $acc0 = 0
229- func $f0_1 ($a,$i) = if (($i >= $s))
230- then $a
231- else balancesSUM($a, $l[$i])
225+ let $l = split(outOfMarketAddressList, SEP)
226+ let $s = size($l)
227+ let $acc0 = 0
228+ func $f0_1 ($a,$i) = if (($i >= $s))
229+ then $a
230+ else balancesSUM($a, $l[$i])
232231
233- func $f0_2 ($a,$i) = if (($i >= $s))
234- then $a
235- else throw("List size exceeds 4")
232+ func $f0_2 ($a,$i) = if (($i >= $s))
233+ then $a
234+ else throw("List size exceeds 4")
236235
237- $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
238- }
239- throw((((("" + outOfMarketAddressList) + " ") + toString(sum)) + "neutrinoAssetIdStr"))
236+ $f0_2($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4)
240237 }
241238 }
242239
243240
244241 let currentPrice = getIntegerValue(controlContract, keyPrice())
245242
246243 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoContract, keyNeutrinoLockedBalance()), 0)
247244
248245 let wavesLockedBalance = valueOrElse(getInteger(neutrinoContract, keyWavesLockedBalance()), 0)
249246
250247 let reserve = (wavesBalance(neutrinoContract).regular - wavesLockedBalance)
251248
252249 let reservesInUsdn = convertWavesToNeutrino(reserve, currentPrice)
253250
254251 let neutrinoOutOfMarketSupply = calcUsdnOutOfMarketSupply()
255252
256253 let neutrinoTotalSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAssetId)).quantity) - assetBalance(neutrinoContract, neutrinoAssetId)) - assetBalance(liquidationContract, neutrinoAssetId))
257254
258255 let neutrinoSupply = (neutrinoTotalSupply - neutrinoOutOfMarketSupply)
259256
260257 let BR = if ((neutrinoSupply == 0))
261258 then 0
262259 else fraction(reservesInUsdn, MULT6, neutrinoSupply)
263260
264261 @Callable(i)
265262 func constructor (neutrinoAddress,nsbtLockAddress,swapAmountAParam) = if ((i.caller != this))
266263 then throw("not authorized")
267264 else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), IntegerEntry(keySwapAmountAParam(), swapAmountAParam)]
268265
269266
270267
271268 @Callable(i)
272269 func calcSwapLimitREADONLY (gNsbtAmount) = {
273270 let limitWavesInUsdn = if ((0 >= gNsbtAmount))
274271 then 0
275272 else {
276273 let aParamX8 = toBigInt(getIntOrFail(this, keySwapAmountAParam()))
277274 let bParamX16 = toBigInt(getIntOrFail(this, keySwapAmountBParam()))
278275 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
279276 toInt(fraction(aParamX8, powPartX8, MULTX10))
280277 }
281278 let limitWaves = convertNeutrinoToWaves(limitWavesInUsdn, currentPrice)
282279 let limitUsdn = if ((0 >= gNsbtAmount))
283280 then 0
284281 else {
285282 let aParamX8 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountAParam()))
286283 let bParamX16 = toBigInt(getIntOrFail(this, keyUsdnSwapAmountBParam()))
287284 let brX6 = toBigInt(BR)
288285 let powPartX8 = pow(toBigInt(gNsbtAmount), 6, bParamX16, 16, 8, CEILING)
289286 toInt(fraction(fraction(aParamX8, powPartX8, MULTX10), brX6, MULTX6))
290287 }
291288 $Tuple2(nil, [limitWavesInUsdn, limitWaves, limitUsdn])
292289 }
293290
294291
295292
296293 @Callable(i)
297294 func calculateKREADONLY (wRaw,uRaw,price,mRaw,sRaw) = {
298295 let EXP = toBigInt(2718281)
299296 let EXPSCALE = 6
300297 let a = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_a"), 3)
301298 let paulB = valueOrElse(getInteger(auctionContract, "nsbtCurveParam_b"), ((3 * MULT6) / 10))
302299 let wReservesInUsdn = convertWavesToNeutrino(wRaw, price)
303300 let multBR = fraction(wReservesInUsdn, MULT8, uRaw)
304301 if ((multBR > 10678564816))
305302 then throw((("BR=" + toString(multBR)) + " > 10678.564816% will overflow exponent"))
306303 else {
307304 let multPower = (a * (multBR - MULT8))
308305 let multExpInPower = pow(EXP, EXPSCALE, toBigInt(multPower), MULTSCALE, SCALE16, DOWN)
309306 let multK = fraction(toBigInt(paulB), multExpInPower, MULTX6)
310307 $Tuple2(nil, [a, paulB, wReservesInUsdn, multBR, multPower, toString(multExpInPower), toString(multK)])
311308 }
312309 }
313310
314311
315312
316313 @Callable(i)
317314 func curveFunctionREADONLY (wavesPayRaw) = {
318315 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
319316 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
320317 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
321318 let uRaw = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
322319 let sRaw = asInt(neutrinoMetrics[nMetricIdxNsbtSupply])
323320 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
324321 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
325322 let multK = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
326323 let usdnPay = convertWavesToNeutrino(wavesPayRaw, price)
327324 let bigMaxNsbtSupply = toBigInt(mRaw)
328325 let bigNsbtSupply = toBigInt((mRaw - sRaw))
329326 let step1 = fraction(toBigInt(usdnPay), MULTX16, multK)
330327 let step2 = fraction(step1, bigNsbtSupply, bigMaxNsbtSupply)
331328 let step3 = toInt(fraction(bigNsbtSupply, bigMaxNsbtSupply, (step2 + bigMaxNsbtSupply)))
332329 let nsbtAmountRaw = ((mRaw - sRaw) - step3)
333330 $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])
334331 }
335332
336333
337334
338335 @Callable(i)
339336 func surfFunctionREADONLY (amount,assetId) = if ((0 > amount))
340337 then throw("amount should be positive")
341338 else {
342339 let price = currentPrice
343340 let priceBig = toBigInt(price)
344341 let reserveBig = toBigInt(reserve)
345342 let supply = neutrinoSupply
346343 let supplyBig = toBigInt(supply)
347344 if ((BR >= MULT6))
348345 then throw((("BR = " + toString(BR)) + ", cannot buy SURF"))
349346 else {
350347 let maxWavesPay = (fraction(supply, MULT8, price) - reserve)
351348 let maxUsdnPay = (supply - fraction(reserve, price, MULT8))
352349 let useAmount = if ((assetId == neutrinoAssetId))
353350 then if ((amount > maxUsdnPay))
354351 then maxUsdnPay
355352 else amount
356353 else if ((assetId == WAVESID))
357354 then if ((amount > maxWavesPay))
358355 then maxWavesPay
359356 else amount
360357 else 0
361358 let amountBig = toBigInt(useAmount)
362359 if ((assetId == neutrinoAssetId))
363360 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])
364361 else if ((assetId == WAVESID))
365362 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])
366363 else throw("Unsupported asset")
367364 }
368365 }
369366
370367
371368
372369 @Callable(i)
373370 func calcContractNsbtPriceSYSREADONLY (nsbtSupplyDELTA) = {
374371 let neutrinoMetrics = asAnyList(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil))
375372 let price = asInt(neutrinoMetrics[nMetricIdxPrice])
376373 let wRaw = asInt(neutrinoMetrics[nMetricIdxReserve])
377374 let uRaw = (asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) - nsbtSupplyDELTA)
378375 let sRaw = (asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) + nsbtSupplyDELTA)
379376 let mRaw = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply])
380377 let kCalcArray = asAnyList(invoke(this, "calculateKREADONLY", [wRaw, uRaw, price, mRaw, sRaw], nil))
381378 let multKX16 = parseBigIntValue(asString(kCalcArray[kResultIdxMultKStr]))
382379 let multStep1X16 = fraction(toBigInt(mRaw), MULTX16, toBigInt((mRaw - sRaw)))
383380 let multStep2X16 = fraction(multStep1X16, multStep1X16, MULTX16)
384381 let multNsbt2usdnPriceX16 = fraction(multKX16, multStep2X16, MULTX16)
385382 let nsbt2usdnPrice = toInt(fraction(multNsbt2usdnPriceX16, toBigInt(MULT6), MULTX16))
386383 let nsbt2wavesPrice = fraction(nsbt2usdnPrice, MULT6, price)
387384 $Tuple2(nil, [nsbt2usdnPrice, nsbt2wavesPrice])
388385 }
389386
390387
391388
392389 @Callable(i)
393390 func calcNeutinoMetricsREADONLY () = {
394391 let nsbtSupplyMAX = value(assetInfo(nsbtAssetId)).quantity
395392 let nsbtSupply = (nsbtSupplyMAX - assetBalance(auctionContract, nsbtAssetId))
396393 let surfSupply = value(assetInfo(surfAssetId)).quantity
397394 $Tuple2(nil, [currentPrice, neutrinoLockedBalance, wavesLockedBalance, reserve, reservesInUsdn, neutrinoSupply, neutrinoOutOfMarketSupply, neutrinoTotalSupply, BR, nsbtSupply, nsbtSupplyMAX, surfSupply])
398395 }
399396
400397
401398
402399 @Callable(i)
403400 func getUnstakeComissionAmountREADONLY (amount,startHeight,halfLife) = $Tuple2(nil, fraction(amount, pow(2, 0, fraction(-((height - startHeight)), MULT8, halfLife), 8, 8, HALFUP), MULT8))
404401
405402
406403
407404 @Callable(i)
408405 func mergeStakesREADONLY (amount1,height1,amount2,height2,halfLife) = {
409406 let w = fraction(amount2, pow(2, 0, fraction((height2 - height1), MULT8, halfLife), 8, 8, HALFUP), MULT8)
410407 let v = fraction((amount1 + amount2), MULT8, (amount1 + w))
411408 $Tuple2(nil, (height1 + ((HALF8 - (halfLife * log(v, 8, 2, 0, 8, HALFUP))) / MULT8)))
412409 }
413410
414411
415412 @Verifier(tx)
416413 func verify () = {
417414 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
418415 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
419416 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
420417 then 1
421418 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
422419 then 1
423420 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
424421 then 1
425422 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
426423 then 2
427424 else 0))
428425 (count >= 3)
429426 }
430427

github/deemru/w8io/026f985 
66.75 ms