tx · BXAAZ2zTLk6if5hjvoGMwRyXyVkcMi4ioKcvok957Yqy

3N9be2mwrA52WJho6DiesZkk4351GvpnWuj:  -0.04100000 Waves

2023.02.27 10:00 [2467783] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves

{ "type": 13, "id": "BXAAZ2zTLk6if5hjvoGMwRyXyVkcMi4ioKcvok957Yqy", "fee": 4100000, "feeAssetId": null, "timestamp": 1677481312356, "version": 2, "chainId": 84, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "4YVMcswP4c9tqWs3fMMYbY6P4oTAuu7WMM3vD5rM8EkrkjqgCryg1qS5Sp7EQHk3nFmyDZjDp9QHJvmCR5AJ9Tia", "5gsP6wXfNVQZdJmUCQ6fCqAVXM7xDg6bDAMmTjL8QwyAfrJ5AjwdznxshiNdXT1XfkvAisFTWJHfiFseu2xZgHzf", "4L9zVvf5hNw72Fg1WXHnyLZCGkdSQUtBX7fNfLeZ7Eav6enpMLDfngi5zGpTjBiZGsSrYUUHyY4kiNPpCKrNE7fS" ], "script": "base64:BgJdCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIHCgUYAQEBARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIFCgMIAQESBAoCAQESBAoCCAESBgoECAEBCBIGCgQICAEBswEBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQVsY2FsYwEBbAkAuQgBBQFsAQ5nZXROdW1iZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAI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zYWN0aW9uBAlzcG9uc29yVHgFByRtYXRjaDADCQEbY2hlY2tJc1ZhbGlkTWluU3BvbnNvcmVkRmVlAQUJc3BvbnNvclR4CQBnAgUFY291bnQAAwcJAGcCBQVjb3VudAADsRydAw==", "height": 2467783, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 731LHi8RJPMrgiecRGEVQzBn632rg4hbYdDxxXZZzo9V Next: 8TCFfKQLAwGuzxGWqdhH7ve1vNPzHnQQARZakHCEmBAe Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], ""))
55
66
77 func lcalc (l) = calculateLeaseId(l)
88
99
1010 func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
1111
1212
1313 func getStringByKey (key) = valueOrElse(getString(this, key), "")
1414
1515
1616 func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false)
1717
1818
1919 func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(address, key), 0)
2020
2121
2222 func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "")
2323
2424
2525 func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(address, key), false)
2626
2727
2828 func asAnyList (v) = match v {
2929 case l: List[Any] =>
3030 l
3131 case _ =>
3232 throw("fail to cast into List[Any]")
3333 }
3434
3535
3636 func asString (v) = match v {
3737 case s: String =>
3838 s
3939 case _ =>
4040 throw("fail to cast into String")
4141 }
4242
4343
4444 func asInt (v) = match v {
4545 case i: Int =>
4646 i
4747 case _ =>
4848 throw("fail to cast into Int")
4949 }
5050
5151
5252 func asBytes (val) = match val {
5353 case valByte: ByteVector =>
5454 valByte
5555 case _ =>
5656 throw("fail to cast into ByteVector")
5757 }
5858
5959
6060 func asPayment (v) = match v {
6161 case p: AttachedPayment =>
6262 p
6363 case _ =>
6464 throw("fail to cast into AttachedPayment")
6565 }
6666
6767
6868 func asSwapParamsSTRUCT (v) = match v {
6969 case struct: (Int, Int, Int, Int, Int, Int, Int) =>
7070 struct
7171 case _ =>
7272 throw("fail to cast into Tuple5 ints")
7373 }
7474
7575
7676 let SEP = "__"
7777
7878 let LISTSEP = ":"
7979
8080 let MULT8 = 100000000
8181
8282 let MULT6 = 1000000
8383
8484 let DEFAULTSWAPFEE = 20000
8585
8686 let BRPROTECTED = 100000
8787
8888 let WAVESID = base58'WAVES'
8989
9090 let nMetricIdxPrice = 0
9191
9292 let nMetricIdxUsdnLockedBalance = 1
9393
9494 let nMetricIdxWavesLockedBalance = 2
9595
9696 let nMetricIdxReserve = 3
9797
9898 let nMetricIdxReserveInUsdn = 4
9999
100100 let nMetricIdxUsdnSupply = 5
101101
102102 let nMetricIdxSurplus = 6
103103
104104 let nMetricIdxSurplusPercent = 7
105105
106106 let nMetricIdxBR = 8
107107
108108 let nMetricIdxNsbtSupply = 9
109109
110110 let nMetricIdxMaxNsbtSupply = 10
111111
112112 let nMetricIdxSurfSupply = 11
113113
114114 let nMetricUsdnUsdtPeg = 12
115115
116116 let nMetricCurrentPriceAdj = 13
117117
118118 let nMetricBasketInfo = 14
119119
120120 let nMetricWeightedPrice = 15
121121
122122 let nMetricTotalReservesUsd = 16
123123
124124 let IdxControlCfgNeutrinoDapp = 1
125125
126126 let IdxControlCfgAuctionDapp = 2
127127
128128 let IdxControlCfgRpdDapp = 3
129129
130130 let IdxControlCfgMathDapp = 4
131131
132132 let IdxControlCfgLiquidationDapp = 5
133133
134134 let IdxControlCfgRestDapp = 6
135135
136136 let IdxControlCfgNodeRegistryDapp = 7
137137
138138 let IdxControlCfgNsbtStakingDapp = 8
139139
140140 let IdxControlCfgMediatorDapp = 9
141141
142142 let IdxControlCfgSurfStakingDapp = 10
143143
144144 let IdxControlCfgGnsbtControllerDapp = 11
145145
146146 let IdxControlCfgRestV2Dapp = 12
147147
148148 let IdxControlCfgGovernanceDapp = 13
149149
150150 func keyControlAddress () = "%s%s__config__controlAddress"
151151
152152
153153 func keyControlCfg () = "%s__controlConfig"
154154
155155
156156 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
157157
158158
159159 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
160160
161161
162162 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
163163
164164 let controlCfg = readControlCfgOrFail(controlContract)
165165
166166 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
167167
168168 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
169169
170170 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
171171
172172 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
173173
174174 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
175175
176176 let nodeRegistryContract = getContractAddressOrFail(controlCfg, IdxControlCfgNodeRegistryDapp)
177177
178178 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
179179
180180 let NeutrinoAssetIdKey = "neutrino_asset_id"
181181
182182 let BondAssetIdKey = "bond_asset_id"
183183
184184 let AuctionContractKey = "auction_contract"
185185
186186 let NsbtStakingContractKey = "nsbtStakingContract"
187187
188188 let LiquidationContractKey = "liquidation_contract"
189189
190190 let RPDContractKey = "rpd_contract"
191191
192192 let ContolContractKey = "control_contract"
193193
194194 let MathContractKey = "math_contract"
195195
196196 let BalanceWavesLockIntervalKey = "balance_waves_lock_interval"
197197
198198 let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval"
199199
200200 func MinTokenSwapAmountKey (assetId) = ("min_outNeutrino_swap_amount_" + assetId)
201201
202202
203203 let MinNeutrinoSwapAmountKey = "min_outMulti_swap_amount"
204204
205205 let LegacyMinNeutrinoSwapAmountKey = "min_neutrino_swap_amount"
206206
207207 let NodeOracleProviderPubKeyKey = "node_oracle_provider"
208208
209209 let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart"
210210
211211 let WavesOutFeePartKey = "wavesOut_swap_feePart"
212212
213213 func keyNodeRegistry (address) = ("%s__" + address)
214214
215215
216216 let PriceKey = "price"
217217
218218 let PriceIndexKey = "price_index"
219219
220220 let IsBlockedKey = "is_blocked"
221221
222222 func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block))
223223
224224
225225 func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index))
226226
227227
228228 func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP))
229229
230230
231231 func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx))
232232
233233
234234 func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * MULT8))
235235
236236
237237 func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner)
238238
239239
240240 func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP)
241241
242242
243243 func getLeaseIdByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "id"], SEP)
244244
245245
246246 func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP)
247247
248248
249249 func getLeaseAmountByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "amount"], SEP)
250250
251251
252252 func getLeaseGroupNodeListKey (groupNum) = makeString(["%s%d%s", "leaseGroup", toString(groupNum), "nodeList"], SEP)
253253
254254
255255 func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount")
256256
257257
258258 func totalLockedKEY (swapType,assetId) = makeString(["%s%s%s", "balanceLock", swapType, assetId], SEP)
259259
260260
261261 func totalLockedByUserKEY (swapType,owner,assetId) = makeString(["%s%s%s%s", "balanceLock", swapType, owner, assetId], "_")
262262
263263
264264 func balanceLockIntervalKEY (swapType) = if ((swapType == "outMulti"))
265265 then BalanceNeutrinoLockIntervalKey
266266 else BalanceWavesLockIntervalKey
267267
268268
269269 func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval"
270270
271271
272272 func swapsTimeframeKEY () = "swaps_timeframe"
273273
274274
275275 func brProtectedKEY () = "min_BR_protection_level"
276276
277277
278278 func basketAssetsKey () = "%s%s__common__basketAssets"
279279
280280
281281 func basketDKey () = "%s%s__common__basketD"
282282
283283
284284 func basketKKey () = "%s%s__common__basketK"
285285
286286
287287 func basketBKey () = "%s%s__common__basketB"
288288
289289
290290 func basketLogbDeltaKey () = "%s%s__common__basketLogbDelta"
291291
292292
293293 func basketWeightByAssetKey (assetId) = ("%s%s%s__common__weightByAsset__" + assetId)
294294
295295
296296 func keyPriceByAsset (assetId) = ("%s%s%s__common__priceByAsset__" + assetId)
297297
298298
299299 func minSwapAmountREAD (swapType,assetId) = if ((swapType == "outMulti"))
300300 then valueOrElse(getInteger(MinNeutrinoSwapAmountKey), getNumberByKey(LegacyMinNeutrinoSwapAmountKey))
301301 else getNumberByKey(MinTokenSwapAmountKey(assetId))
302302
303303
304304 func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440)
305305
306306
307307 func totalLockedREAD (swapType,assetId) = valueOrElse(getInteger(this, totalLockedKEY(swapType, assetId)), 0)
308308
309309
310310 func totalLockedByUserREAD (swapType,owner,assetId) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner, assetId)), 0)
311311
312312
313313 func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440)
314314
315315
316316 func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1)
317317
318318
319319 func keySwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "swapUserSpentInPeriod", userAddress], SEP)
320320
321321
322322 func keyUserLastSwapHeight (userAddress) = makeString(["%s%s", "userLastSwapHeight", userAddress], SEP)
323323
324324
325325 func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price)
326326
327327
328328 func convertTokenToUsd (amount,price) = fraction(amount, price, MULT8)
329329
330330
331331 func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8)
332332
333333
334334 func convertWavesToBond (amount,price) = convertTokenToUsd(amount, price)
335335
336336
337337 func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
338338
339339
340340 func convertBasketItemToNeutrino (inAmount,inAsset,basketInfoStr,neutrinoPrice) = {
341341 let basketInfo = split_4C(basketInfoStr, "_")
342342 func findItem (acc,item) = {
343343 let bItem = split(item, LISTSEP)
344344 if ((bItem[0] == inAsset))
345345 then bItem
346346 else acc
347347 }
348348
349349 let it = {
350350 let $l = basketInfo
351351 let $s = size($l)
352352 let $acc0 = nil
353353 func $f0_1 ($a,$i) = if (($i >= $s))
354354 then $a
355355 else findItem($a, $l[$i])
356356
357357 func $f0_2 ($a,$i) = if (($i >= $s))
358358 then $a
359359 else throw("List size exceeds 10")
360360
361361 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
362362 }
363363 let dlog6 = valueOrElse(getInteger(basketLogbDeltaKey()), -18820642)
364364 let d6 = valueOrElse(getInteger(basketDKey()), 50000)
365365 let b6 = valueOrElse(getInteger(basketBKey()), 1250000)
366366 let w6 = valueOrElse(getInteger(basketWeightByAssetKey(inAsset)), 166666)
367367 let p6 = ((dlog6 - w6) + parseIntValue(it[1]))
368368 let pp6 = pow(b6, 6, p6, 6, 6, HALFUP)
369369 let outAmountGross = fraction(inAmount, parseIntValue(it[2]), if ((neutrinoPrice == 0))
370370 then MULT8
371371 else (neutrinoPrice * 100))
372372 let multiplier = ((MULT6 + d6) - pp6)
373373 let netAmount = fraction(outAmountGross, multiplier, MULT6)
374374 let feeAmount = if ((netAmount >= outAmountGross))
375375 then 0
376376 else (outAmountGross - netAmount)
377377 [outAmountGross, netAmount, feeAmount]
378378 }
379379
380380
381381 func convertNeutrinoToBasket (amount,basketInfoStr,neutrinoSupply) = {
382382 let basketInfo = split_4C(basketInfoStr, "_")
383383 func conv (acc,item) = {
384384 let parts = split(item, LISTSEP)
385385 let assetId = parts[0]
386386 let share = parseIntValue(parts[1])
387387 let price = parseIntValue(parts[2])
388388 let reserv = parseIntValue(parts[3])
389389 if ((neutrinoSupply == 0))
390390 then throw("Attempt to burn neutrino at zero supply")
391391 else {
392392 let outAmount = fraction(amount, reserv, neutrinoSupply)
393393 let wavesTuple = if ((assetId == "WAVES"))
394394 then $Tuple2(outAmount, price)
395395 else $Tuple2(acc._2, acc._3)
396396 $Tuple3((acc._1 :+ $Tuple4(assetId, outAmount, price, share)), wavesTuple._1, wavesTuple._2)
397397 }
398398 }
399399
400400 let $l = basketInfo
401401 let $s = size($l)
402402 let $acc0 = $Tuple3(nil, 0, 0)
403403 func $f0_1 ($a,$i) = if (($i >= $s))
404404 then $a
405405 else conv($a, $l[$i])
406406
407407 func $f0_2 ($a,$i) = if (($i >= $s))
408408 then $a
409409 else throw("List size exceeds 10")
410410
411411 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
412412 }
413413
414414
415415 func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount)))
416416
417417
418418 func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
419419
420420
421421 func priceIndexFAIL (index,priceIndex,indexHeight,unlockHeight,prevIndexHeight) = throw(((((((((("invalid price history index: index=" + toString(index)) + " priceIndex=") + toString(priceIndex)) + " indexHeight=") + toString(indexHeight)) + " unlockHeight=") + toString(unlockHeight)) + " prevIndexHeight=") + toString(prevIndexHeight)))
422422
423423
424424 let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey))
425425
426426 let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey)
427427
428428 let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey)
429429
430430 let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey))
431431
432432 let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z")
433433
434434 let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF")
435435
436436 let neutrinoContract = this
437437
438438 let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey)
439439
440440 func checkIsValidMinSponsoredFee (tx) = {
441441 let MINTRANSFERFEE = 100000
442442 let SponsoredFeeUpperBound = 1000
443443 let realNeutrinoFee = convertTokenToUsd(MINTRANSFERFEE, currentPrice)
444444 let minNeutrinoFee = (realNeutrinoFee * 2)
445445 let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100)
446446 let inputFee = value(tx.minSponsoredAssetFee)
447447 if (if ((inputFee >= minNeutrinoFee))
448448 then (maxNeutrinoFee >= inputFee)
449449 else false)
450450 then (tx.assetId == neutrinoAssetId)
451451 else false
452452 }
453453
454454
455455 func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block))
456456
457457
458458 func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index))
459459
460460
461461 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP)
462462
463463
464464 let sIdxSwapType = 1
465465
466466 let sIdxStatus = 2
467467
468468 let sIdxInAmount = 3
469469
470470 let sIdxStartHeight = 7
471471
472472 let sIdxStartTimestamp = 8
473473
474474 let sIdxSelfUnlockHeight = 11
475475
476476 let sIdxMinRand = 15
477477
478478 let sIdxMaxRand = 16
479479
480480 let sIdxInAsset = 20
481481
482482 func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP)
483483
484484
485485 func strSwapDATA (swapType,status,inAmount,price,outNetAmount,outFeeAmount,startHeight,startTimestamp,endHeight,endTimestamp,selfUnlockHeight,randUnlockHeight,index,withdrawTxId,randMin,randMax,outSurfAmt,br,basketData,inAsset) = makeString_2C(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d%s%s", swapType, status, inAmount, price, outNetAmount, outFeeAmount, startHeight, startTimestamp, endHeight, endTimestamp, selfUnlockHeight, randUnlockHeight, index, withdrawTxId, randMin, randMax, outSurfAmt, br, basketData, inAsset], SEP)
486486
487487
488488 func pendingSwapDATA (swapType,inAssetAmount,selfUnlockHeight,inAsset) = strSwapDATA(swapType, "PENDING", toString(inAssetAmount), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(selfUnlockHeight), "0", "0", "NULL", "0", "0", "0", "0", "", inAsset)
489489
490490
491491 func finishSwapDATA (dataArray,price,outNetAmount,outFeeAmount,randUnlockHeight,index,withdrawTxId,outSurfAmt,br,basketData,inAsset) = strSwapDATA(dataArray[sIdxSwapType], "FINISHED", dataArray[sIdxInAmount], toString(price), toString(outNetAmount), toString(outFeeAmount), dataArray[sIdxStartHeight], dataArray[sIdxStartTimestamp], toString(height), toString(lastBlock.timestamp), dataArray[sIdxSelfUnlockHeight], toString(randUnlockHeight), toString(index), withdrawTxId, dataArray[sIdxMinRand], dataArray[sIdxMaxRand], toString(outSurfAmt), toString(br), basketData, inAsset)
492492
493493
494494 func swapDataFailOrREAD (userAddress,swapTxId) = {
495495 let swapKey = swapKEY(userAddress, swapTxId)
496496 split_4C(valueOrErrorMessage(getString(swapKey), ("no swap data for " + swapKey)), SEP)
497497 }
498498
499499
500500 func applyFees (amountOutGross,inAmtToSURF,feePart) = {
501501 let feeAmount = fraction(amountOutGross, feePart, MULT6)
502502 [(amountOutGross - feeAmount), feeAmount]
503503 }
504504
505505
506506 func applyFeesBasket (basketOut) = {
507507 let k6 = valueOrElse(getInteger(basketKKey()), MULT6)
508508 let d6 = valueOrElse(getInteger(basketDKey()), 50000)
509509 let feePart = fraction(k6, d6, MULT6)
510510 func feeApplier (acc,item) = {
511511 let feeAmount = fraction(item._2, feePart, MULT6)
512512 (acc :+ makeString([item._1, toString(item._3), toString((item._2 - feeAmount)), toString(feeAmount), toString(item._4)], LISTSEP))
513513 }
514514
515515 let a = {
516516 let $l = basketOut
517517 let $s = size($l)
518518 let $acc0 = nil
519519 func $f0_1 ($a,$i) = if (($i >= $s))
520520 then $a
521521 else feeApplier($a, $l[$i])
522522
523523 func $f0_2 ($a,$i) = if (($i >= $s))
524524 then $a
525525 else throw("List size exceeds 10")
526526
527527 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
528528 }
529529 makeString_2C(a, "_")
530530 }
531531
532532
533533 func abs (x) = if ((0 > x))
534534 then -(x)
535535 else x
536536
537537
538538 func selectNode (unleaseAmount) = {
539539 let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship())
540540 let oldLeased0 = getNumberByKey(getLeaseAmountKey(0))
541541 let oldLeased1 = getNumberByKey(getLeaseAmountKey(1))
542542 let newLeased0 = (amountToLease + oldLeased0)
543543 let newLeased1 = (amountToLease + oldLeased1)
544544 if (if ((newLeased0 > 0))
545545 then true
546546 else (newLeased1 > 0))
547547 then {
548548 let delta0 = abs((newLeased0 - oldLeased1))
549549 let delta1 = abs((newLeased1 - oldLeased0))
550550 if ((delta1 >= delta0))
551551 then $Tuple2(0, newLeased0)
552552 else $Tuple2(1, newLeased1)
553553 }
554554 else $Tuple2(-1, 0)
555555 }
556556
557557
558558 func thisOnly (i) = if ((i.caller != this))
559559 then throw("Permission denied: this contract only allowed")
560560 else true
561561
562562
563563 func prepareUnleaseAndLease (unleaseAmount) = {
564564 let nodeTuple = selectNode(unleaseAmount)
565565 let nodeIndex = nodeTuple._1
566566 let newLeaseAmount = nodeTuple._2
567567 if ((newLeaseAmount > 0))
568568 then {
569569 let leaseIdKey = getLeaseIdKey(nodeIndex)
570570 let oldLease = getBinary(this, leaseIdKey)
571571 let unleaseOrEmpty = if (isDefined(oldLease))
572572 then [LeaseCancel(value(oldLease))]
573573 else nil
574574 let leaseAmountKey = getLeaseAmountKey(nodeIndex)
575575 let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount)
576576 (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, lcalc(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)])
577577 }
578578 else nil
579579 }
580580
581581
582582 func readNodeInfo (nodeIdx) = {
583583 let nodeAddress = getStakingNodeAddressByIndex(nodeIdx)
584584 let leasedAmtKEY = getLeaseAmountKey(nodeIdx)
585585 let leasedAmt = getNumberByKey(leasedAmtKEY)
586586 let leaseIdKEY = getLeaseIdKey(nodeIdx)
587587 let leaseId = value(getBinary(this, leaseIdKEY))
588588 $Tuple5(nodeAddress, leasedAmtKEY, leasedAmt, leaseIdKEY, leaseId)
589589 }
590590
591591
592592 func commonSwap (swapType,pmtAmount,inAsset,userAddressStr,txId58) = {
593593 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil))
594594 let tokenSwapLimitUsd = swapParamsSTRUCT._1
595595 let swapLimitSpent = swapParamsSTRUCT._2
596596 let blcks2LmtReset = swapParamsSTRUCT._3
597597 let usdnSwapLimitMax = swapParamsSTRUCT._7
598598 let minSwapAmount = minSwapAmountREAD(swapType, inAsset)
599599 let totalLocked = totalLockedREAD(swapType, inAsset)
600600 let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr, inAsset)
601601 let nodeAddress = getStakingNodeByIndex(0)
602602 let isSwapByNode = (nodeAddress == userAddressStr)
603603 let balanceLockMaxInterval = if (isSwapByNode)
604604 then nodeBalanceLockIntervalREAD()
605605 else balanceLockIntervalREAD(swapType)
606606 let selfUnlockHeight = (height + balanceLockMaxInterval)
607607 let pr = valueOrElse(getInteger(controlContract, keyPriceByAsset(inAsset)), MULT6)
608608 let swapUsdnVolume = if ((swapType == "outNeutrino"))
609609 then convertTokenToUsd(pmtAmount, pr)
610610 else pmtAmount
611611 let swapLimitMax = if ((swapType == "outNeutrino"))
612612 then tokenSwapLimitUsd
613613 else usdnSwapLimitMax
614614 if ((minSwapAmount > pmtAmount))
615615 then minSwapAmountFAIL(swapType, minSwapAmount)
616616 else if (if (!(isSwapByNode))
617617 then (swapLimitSpent > 0)
618618 else false)
619619 then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset))))
620620 else if (if (!(isSwapByNode))
621621 then (swapUsdnVolume > swapLimitMax)
622622 else false)
623623 then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax)))
624624 else if (isBlocked)
625625 then emergencyShutdownFAIL()
626626 else {
627627 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
628628 let basketInfo = asString(neutrinoMetrics[nMetricBasketInfo])
629629 let weightedPrice = asInt(neutrinoMetrics[nMetricWeightedPrice])
630630 let out = convertBasketItemToNeutrino(pmtAmount, inAsset, basketInfo, weightedPrice)
631631 if (if ((swapType == "outNeutrino"))
632632 then (0 >= out[1])
633633 else false)
634634 then throw((((((("Net amount is non-positive, cannot swap. (gross, net, fee) = (" + toString(out[0])) + ", ") + toString(out[1])) + ", ") + toString(out[2])) + ")"))
635635 else {
636636 let leasePart = if (if ((swapType == "outNeutrino"))
637637 then (inAsset == "WAVES")
638638 else false)
639639 then prepareUnleaseAndLease(0)
640640 else nil
641641 $Tuple2(([IntegerEntry(keySwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr, inAsset), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType, inAsset), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight, inAsset))] ++ leasePart), unit)
642642 }
643643 }
644644 }
645645
646646
647647 let bFuncIdxSurf = 0
648648
649649 let bFuncIdxWaves = 1
650650
651651 let bFuncIdxUsdn = 2
652652
653653 let bFuncIdxReserveStart = 3
654654
655655 let bFuncIdxSupplyStart = 4
656656
657657 let bFuncIdxBRStart = 5
658658
659659 let bFuncIdxReserveEnd = 6
660660
661661 let bFuncIdxSupplyEnd = 7
662662
663663 let bFuncIdxBREnd = 8
664664
665665 let bFuncIdxRest = 9
666666
667667 let bFuncIdxWavesPrice = 10
668668
669669 func calcWithdrawT2U (inAmount,inAsset,basketInfo,weightedPrice) = {
670670 let outAmt = convertBasketItemToNeutrino(inAmount, inAsset, basketInfo, weightedPrice)
671671 $Tuple12(outAmt[0], neutrinoAssetId, 0, inAsset, 0, weightedPrice, inAmount, 0, 0, 0, nil, [outAmt[1], outAmt[2]])
672672 }
673673
674674
675675 func calcWithdrawU2Basket (usdnIn,basketInfo,neutrinoSupply) = {
676676 let outAmtGross = convertNeutrinoToBasket(usdnIn, basketInfo, neutrinoSupply)
677677 $Tuple12(outAmtGross._2, unit, 0, neutrinoAssetId, outAmtGross._2, outAmtGross._3, usdnIn, neutrinoSupply, usdnIn, 0, outAmtGross._1, nil)
678678 }
679679
680680
681681 func calcWithdraw (swapType,inAmount,price,neutrinoMetrics,inAsset) = {
682682 let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
683683 let basketInfo = asString(neutrinoMetrics[nMetricBasketInfo])
684684 let weightedPrice = asInt(neutrinoMetrics[nMetricWeightedPrice])
685685 let outDataTuple = if ((swapType == "outNeutrino"))
686686 then calcWithdrawT2U(inAmount, inAsset, basketInfo, weightedPrice)
687687 else if ((swapType == "outMulti"))
688688 then calcWithdrawU2Basket(inAmount, basketInfo, neutrinoSupply)
689689 else throw(("Unsupported swap type " + swapType))
690690 let outAmtGross = outDataTuple._1
691691 let outAssetId = outDataTuple._2
692692 let inAmtToSurfPart = outDataTuple._3
693693 let inAssetId = outDataTuple._4
694694 let unleaseAmt = outDataTuple._5
695695 let withdrawPrice = outDataTuple._6
696696 let basketData = outDataTuple._11
697697 let netFeeData = outDataTuple._12
698698 let outNetAmt = if ((swapType == "outNeutrino"))
699699 then netFeeData[0]
700700 else 0
701701 let outFeeAmt = if ((swapType == "outNeutrino"))
702702 then netFeeData[1]
703703 else 0
704704 let outSurfAmt = if ((0 >= inAmtToSurfPart))
705705 then 0
706706 else asInt(asAnyList(invoke(mathContract, "surfFunctionREADONLY", [inAmtToSurfPart, inAssetId], nil))[bFuncIdxSurf])
707707 let withdrawBasket = if ((swapType == "outMulti"))
708708 then applyFeesBasket(basketData)
709709 else ""
710710 $Tuple9(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross, withdrawPrice, withdrawBasket)
711711 }
712712
713713
714714 func keyApplyInProgress () = "%s__applyInProgress"
715715
716716
717717 func keyProposalDataById (proposalId) = ("%s%d__proposalData__" + toString(proposalId))
718718
719719
720720 let govIdxTxIds = 9
721721
722722 func validateUpdate (tx) = match tx {
723723 case o: Order =>
724724 throw("Orders aren't allowed")
725725 case t: DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|InvokeExpressionTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
726726 let txId = toBase58String(t.id)
727727 let proposalId = valueOrErrorMessage(getInteger(govContract, keyApplyInProgress()), "Apply is not happening")
728728 let txList = split(split(getStringOrFail(govContract, keyProposalDataById(proposalId)), SEP)[govIdxTxIds], LISTSEP)
729729 if (!(isDefined(indexOf(txList, txId))))
730730 then throw(((("Unknown txId: " + txId) + " for proposalId=") + toString(proposalId)))
731731 else true
732732 case _ =>
733733 throw("Match error")
734734 }
735735
736736
737737 @Callable(i)
738738 func constructorV1 (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = {
739739 let checkCaller = thisOnly(i)
740740 if ((checkCaller == checkCaller))
741741 then if ((size(i.payments) != 0))
742742 then throw("no payments allowed")
743743 else [StringEntry(NeutrinoAssetIdKey, neutrinoAssetIdPrm), StringEntry(BondAssetIdKey, bondAssetIdPrm), StringEntry(AuctionContractKey, auctionContractPrm), StringEntry(LiquidationContractKey, liquidationContractPrm), StringEntry(RPDContractKey, rpdContractPrm), StringEntry(NodeOracleProviderPubKeyKey, nodeOracleProviderPubKeyPrm), IntegerEntry(BalanceWavesLockIntervalKey, balanceWavesLockIntervalPrm), IntegerEntry(BalanceNeutrinoLockIntervalKey, balanceNeutrinoLockIntervalPrm), IntegerEntry(MinTokenSwapAmountKey("WAVES"), minWavesSwapAmountPrm), IntegerEntry(MinNeutrinoSwapAmountKey, minNeutrinoSwapAmountPrm), IntegerEntry(NeutrinoOutFeePartKey, neutrinoOutFeePartPrm), IntegerEntry(WavesOutFeePartKey, wavesOutFeePartPrm)]
744744 else throw("Strict value is not equal to itself.")
745745 }
746746
747747
748748
749749 @Callable(i)
750750 func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = {
751751 let checkCaller = thisOnly(i)
752752 if ((checkCaller == checkCaller))
753753 then if ((size(i.payments) != 0))
754754 then throw("no payments allowed")
755755 else [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)]
756756 else throw("Strict value is not equal to itself.")
757757 }
758758
759759
760760
761761 @Callable(i)
762762 func constructorV3 (assetsWeightsMins,dParam,kParam,bParam,deltaParam) = {
763763 let checkCaller = thisOnly(i)
764764 if ((checkCaller == checkCaller))
765765 then if ((size(i.payments) != 0))
766766 then throw("no payments allowed")
767767 else {
768768 func prepare (acc,item) = {
769769 let parts = split(item, "_")
770770 let assetId = parts[0]
771771 let weight = parseIntValue(parts[1])
772772 let minVal = parseIntValue(parts[2])
773773 $Tuple2((acc._1 :+ assetId), ((acc._2 :+ IntegerEntry(basketWeightByAssetKey(assetId), weight)) :+ IntegerEntry(MinTokenSwapAmountKey(assetId), minVal)))
774774 }
775775
776776 let r = {
777777 let $l = assetsWeightsMins
778778 let $s = size($l)
779779 let $acc0 = $Tuple2(nil, nil)
780780 func $f0_1 ($a,$i) = if (($i >= $s))
781781 then $a
782782 else prepare($a, $l[$i])
783783
784784 func $f0_2 ($a,$i) = if (($i >= $s))
785785 then $a
786786 else throw("List size exceeds 10")
787787
788788 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
789789 }
790790 (((((r._2 :+ IntegerEntry(basketDKey(), dParam)) :+ IntegerEntry(basketKKey(), kParam)) :+ IntegerEntry(basketBKey(), bParam)) :+ IntegerEntry(basketLogbDeltaKey(), log(deltaParam, 6, bParam, 6, 6, HALFUP))) :+ StringEntry(basketAssetsKey(), makeString(r._1, SEP)))
791791 }
792792 else throw("Strict value is not equal to itself.")
793793 }
794794
795795
796796
797797 @Callable(i)
798798 func swapTokenToNeutrino () = if ((size(i.payments) != 1))
799799 then throw("swapTokenToNeutrino require only one payment")
800800 else {
801801 let pmt = value(i.payments[0])
802802 let basketAssets = valueOrElse(getString(basketAssetsKey()), "WAVES")
803803 let pmtAssetIdStr = toBase58String(valueOrElse(pmt.assetId, WAVESID))
804804 if (!(contains(basketAssets, pmtAssetIdStr)))
805805 then throw(((pmtAssetIdStr + " is not one of basket tokens:") + basketAssets))
806806 else {
807807 let userAddress = toString(i.caller)
808808 let txId58 = toBase58String(i.transactionId)
809809 commonSwap("outNeutrino", pmt.amount, pmtAssetIdStr, userAddress, txId58)
810810 }
811811 }
812812
813813
814814
815815 @Callable(i)
816816 func swapNeutrinoToBasket () = if ((size(i.payments) != 1))
817817 then throw("swapNeutrinoToBasket require only one payment")
818818 else {
819819 let pmt = value(i.payments[0])
820820 if ((pmt.assetId != neutrinoAssetId))
821821 then throw("Only appropriate Neutrino tokens are allowed for swapping.")
822822 else {
823823 let userAddress = toString(i.caller)
824824 let txId58 = toBase58String(i.transactionId)
825825 commonSwap("outMulti", pmt.amount, toBase58String(neutrinoAssetId), userAddress, txId58)
826826 }
827827 }
828828
829829
830830
831831 @Callable(i)
832832 func withdraw (account,index,swapTxId) = {
833833 let txId = toBase58String(i.transactionId)
834834 if ((size(i.payments) != 0))
835835 then throw("no payments allowed")
836836 else {
837837 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
838838 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
839839 let userAddress = addressFromStringValue(account)
840840 let dataArray = swapDataFailOrREAD(account, swapTxId)
841841 let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight])
842842 let swapType = dataArray[sIdxSwapType]
843843 let inAmount = parseIntValue(dataArray[sIdxInAmount])
844844 let swapStatus = dataArray[sIdxStatus]
845845 let startHeight = parseIntValue(dataArray[sIdxStartHeight])
846846 let inAsset = dataArray[sIdxInAsset]
847847 let totalLocked = totalLockedREAD(swapType, inAsset)
848848 let totalLockedByUser = totalLockedByUserREAD(swapType, account, inAsset)
849849 let unlockHeight = selfUnlockHeight
850850 let indexHeight = getHeightPriceByIndex(index)
851851 let prevIndexHeight = getHeightPriceByIndex((index - 1))
852852 let priceByIndex = getPriceHistory(indexHeight)
853853 if (isBlocked)
854854 then emergencyShutdownFAIL()
855855 else if ((swapStatus != "PENDING"))
856856 then throw("swap has been already processed")
857857 else if ((unlockHeight > height))
858858 then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds"))
859859 else if (if (if ((index > priceIndex))
860860 then true
861861 else (unlockHeight > indexHeight))
862862 then true
863863 else if ((prevIndexHeight != 0))
864864 then (prevIndexHeight >= unlockHeight)
865865 else false)
866866 then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight)
867867 else {
868868 let withdrawTuple = calcWithdraw(swapType, inAmount, priceByIndex, neutrinoMetrics, inAsset)
869869 let outNetAmount = withdrawTuple._1
870870 let outAssetId = withdrawTuple._2
871871 let outSurfAmt = withdrawTuple._3
872872 let unleaseAmt = withdrawTuple._5
873873 let outFeeAmount = withdrawTuple._6
874874 let outAmtGross = withdrawTuple._7
875875 let withdrawPrice = withdrawTuple._8
876876 let withdrawBasket = withdrawTuple._9
877877 if (if ((swapType == "outNeutrino"))
878878 then (0 >= outAmtGross)
879879 else false)
880880 then throw("balance equals zero")
881881 else {
882882 let surfCondition = if ((outSurfAmt > 0))
883883 then {
884884 let issueResult = invoke(auctionContract, "issueSurf", [outSurfAmt, account], nil)
885885 if ((issueResult == issueResult))
886886 then 0
887887 else throw("Strict value is not equal to itself.")
888888 }
889889 else 0
890890 if ((surfCondition == surfCondition))
891891 then {
892892 let unleaseInvOrEmpty = invoke(this, "internalUnleaseAndLease", [unleaseAmt], nil)
893893 if ((unleaseInvOrEmpty == unleaseInvOrEmpty))
894894 then {
895895 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil))
896896 let gnsbtAmtTotal = asInt(gnsbtData[1])
897897 let gnsbtAmtFromSurfTotal = asInt(asAnyList(gnsbtData[3])[3])
898898 let commonActions = [IntegerEntry(totalLockedByUserKEY(swapType, account, inAsset), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType, inAsset), (totalLocked - inAmount)), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, withdrawPrice, outNetAmount, outFeeAmount, unlockHeight, index, txId, outSurfAmt, BR, withdrawBasket, inAsset))]
899899 func deposits (surfFees,nsbtFees,surfPayments,nsbtPayments) = {
900900 let surfDeposit = if ((surfFees > 0))
901901 then asInt(invoke(surfStakingContract, "deposit", nil, surfPayments))
902902 else 0
903903 let nsbtDeposit = if ((nsbtFees > 0))
904904 then asInt(invoke(nsbtStakingContract, "deposit", nil, nsbtPayments))
905905 else 0
906906 (surfDeposit + nsbtDeposit)
907907 }
908908
909909 func divideFees (feeAmount) = {
910910 let surfAmt1 = if ((gnsbtAmtTotal != 0))
911911 then fraction(feeAmount, gnsbtAmtFromSurfTotal, gnsbtAmtTotal)
912912 else 0
913913 let surfAmt2 = if ((gnsbtAmtTotal != 0))
914914 then fraction(feeAmount, (MULT6 - BR), MULT6)
915915 else 0
916916 let surfAmt = max([surfAmt1, surfAmt2])
917917 let nsbtAmt = (feeAmount - surfAmt)
918918 [surfAmt, nsbtAmt]
919919 }
920920
921921 let transfers = if ((swapType == "outMulti"))
922922 then {
923923 let basket = split_4C(withdrawBasket, "_")
924924 func looper (acc,item) = {
925925 let it = split(item, LISTSEP)
926926 let tempAssetId = fromBase58String(it[0])
927927 let assetId = if ((tempAssetId == WAVESID))
928928 then unit
929929 else tempAssetId
930930 let netAmount = parseIntValue(it[2])
931931 let feeAmount = parseIntValue(it[3])
932932 let fees = divideFees(feeAmount)
933933 $Tuple5((acc._1 :+ ScriptTransfer(userAddress, netAmount, assetId)), (acc._2 :+ AttachedPayment(assetId, fees[0])), (acc._3 :+ AttachedPayment(assetId, fees[1])), (acc._4 + fees[0]), (acc._5 + fees[1]))
934934 }
935935
936936 let r = {
937937 let $l = basket
938938 let $s = size($l)
939939 let $acc0 = $Tuple5(nil, nil, nil, 0, 0)
940940 func $f0_1 ($a,$i) = if (($i >= $s))
941941 then $a
942942 else looper($a, $l[$i])
943943
944944 func $f0_2 ($a,$i) = if (($i >= $s))
945945 then $a
946946 else throw("List size exceeds 10")
947947
948948 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
949949 }
950950 let depoResult = deposits(r._4, r._5, r._2, r._3)
951951 $Tuple2(r._1, depoResult)
952952 }
953953 else {
954954 let fees = divideFees(outFeeAmount)
955955 let depoResult = deposits(fees[0], fees[1], [AttachedPayment(outAssetId, fees[0])], [AttachedPayment(outAssetId, fees[1])])
956956 $Tuple2([ScriptTransfer(userAddress, outNetAmount, outAssetId)], depoResult)
957957 }
958958 $Tuple2((commonActions ++ transfers._1), transfers._2)
959959 }
960960 else throw("Strict value is not equal to itself.")
961961 }
962962 else throw("Strict value is not equal to itself.")
963963 }
964964 }
965965 }
966966 }
967967
968968
969969
970970 @Callable(i)
971971 func internalUnleaseAndLease (unleaseAmount) = if ((i.caller != this))
972972 then throw("internalUnleaseAndLease is not public method")
973973 else prepareUnleaseAndLease(unleaseAmount)
974974
975975
976976
977977 @Callable(i)
978978 func transferUsdnToUser (amount,addr) = if ((i.caller != auctionContract))
979979 then throw("Only auction contract is authorized")
980980 else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)]
981981
982982
983983
984984 @Callable(i)
985985 func acceptWaves () = if (if ((i.caller != auctionContract))
986986 then (i.caller != govContract)
987987 else false)
988988 then throw("Currently only auction and governance contracts are allowed to call")
989989 else $Tuple2(prepareUnleaseAndLease(0), "success")
990990
991991
992992
993993 @Callable(i)
994994 func approveLeasings (nListS,groupNum,lAmt) = {
995995 let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7]
996996 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
997997 let mngPub = fromBase58String(mngPubS)
998998 let nodeRegAddrStr = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE")
999999 let nodeRegAddr = addressFromStringValue(nodeRegAddrStr)
10001000 let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum)
10011001 let lGrNodeOpt = getString(this, lGroupNodeListKEY)
10021002 if (isDefined(lGrNodeOpt))
10031003 then throw((("group " + toString(groupNum)) + " already initialized"))
10041004 else {
10051005 let nList = split(nListS, SEP)
10061006 let expCount = size(nIdxs)
10071007 if ((i.callerPublicKey != mngPub))
10081008 then throw("approveLeasings not authorized")
10091009 else {
10101010 let $t04371943781 = readNodeInfo(0)
10111011 let nAddr0 = $t04371943781._1
10121012 let lAmtKEY0 = $t04371943781._2
10131013 let lAmt0 = $t04371943781._3
10141014 let lIdKEY0 = $t04371943781._4
10151015 let lId0 = $t04371943781._5
10161016 let newL0 = Lease(nAddr0, (lAmt0 - (lAmt * expCount)))
10171017 let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil)
10181018 if ((validation == validation))
10191019 then {
10201020 func forEachNodeValidateAndGenerateLease (a,i) = {
10211021 let node = nList[i]
10221022 let la = Lease(addressFromStringValue(node), lAmt)
10231023 (a ++ [la, BinaryEntry(getLeaseIdByAddressKey(node), lcalc(la)), IntegerEntry(getLeaseAmountByAddressKey(node), lAmt)])
10241024 }
10251025
10261026 ([StringEntry(lGroupNodeListKEY, nListS), BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0] ++ {
10271027 let $l = nIdxs
10281028 let $s = size($l)
10291029 let $acc0 = nil
10301030 func $f0_1 ($a,$i) = if (($i >= $s))
10311031 then $a
10321032 else forEachNodeValidateAndGenerateLease($a, $l[$i])
10331033
10341034 func $f0_2 ($a,$i) = if (($i >= $s))
10351035 then $a
10361036 else throw("List size exceeds 8")
10371037
10381038 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
10391039 })
10401040 }
10411041 else throw("Strict value is not equal to itself.")
10421042 }
10431043 }
10441044 }
10451045
10461046
10471047
10481048 @Callable(i)
10491049 func rebalanceLeasings (amount,groupNum) = {
10501050 let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7]
10511051 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
10521052 let mngPub = fromBase58String(mngPubS)
10531053 let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum)
10541054 let nListS = getStringOrFail(this, lGroupNodeListKEY)
10551055 let nList = split(nListS, SEP)
10561056 if ((i.callerPublicKey != mngPub))
10571057 then throw("rebalanceLeasings not authorized")
10581058 else {
10591059 let unleaseAmt = ((amount / size(nList)) + 1)
10601060 let $t04502145083 = readNodeInfo(0)
10611061 let nAddr0 = $t04502145083._1
10621062 let lAmtKEY0 = $t04502145083._2
10631063 let lAmt0 = $t04502145083._3
10641064 let lIdKEY0 = $t04502145083._4
10651065 let lId0 = $t04502145083._5
10661066 let newL0 = Lease(nAddr0, (lAmt0 + (unleaseAmt * size(nList))))
10671067 func forEachNodeDoUnlease (a,i) = {
10681068 let node = nList[i]
10691069 let lIdKEY = getLeaseIdByAddressKey(node)
10701070 let lId = getBinaryValue(this, lIdKEY)
10711071 let lAmtKEY = getLeaseAmountByAddressKey(node)
10721072 let lAmt = getIntegerValue(this, lAmtKEY)
10731073 let ula = LeaseCancel(value(lId))
10741074 let la = Lease(addressFromStringValue(node), (lAmt - unleaseAmt))
10751075 (a ++ [LeaseCancel(value(lId)), la, BinaryEntry(lIdKEY, lcalc(la)), IntegerEntry(lAmtKEY, la.amount)])
10761076 }
10771077
10781078 ({
10791079 let $l = nIdxs
10801080 let $s = size($l)
10811081 let $acc0 = nil
10821082 func $f0_1 ($a,$i) = if (($i >= $s))
10831083 then $a
10841084 else forEachNodeDoUnlease($a, $l[$i])
10851085
10861086 func $f0_2 ($a,$i) = if (($i >= $s))
10871087 then $a
10881088 else throw("List size exceeds 8")
10891089
10901090 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8)
10911091 } ++ [BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0])
10921092 }
10931093 }
10941094
10951095
10961096
10971097 @Callable(i)
10981098 func swapParamsByUserSYSREADONLY (userAddressStr,gnsbtDiff) = {
10991099 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil))
11001100 let gnsbtAmt = (asInt(gnsbtData[0]) + gnsbtDiff)
11011101 let gnsbtAmtTotal = (asInt(gnsbtData[1]) + gnsbtDiff)
11021102 let swapLimitData = asAnyList(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil))
11031103 let tokenSwapLimitInUsdMax = asInt(swapLimitData[0])
11041104 let usdnSwapLimitMax = asInt(swapLimitData[2])
11051105 let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0)
11061106 let swapLimitTimelifeBlocks = swapsTimeframeREAD()
11071107 let passedBlocksAfterLastSwap = (height - lastSwapHeight)
11081108 let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks)
11091109 let swapLimitSpentInUsdn = if (isSwapTimelifeNew)
11101110 then 0
11111111 else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0)
11121112 let blcks2LmtReset = if (isSwapTimelifeNew)
11131113 then 0
11141114 else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap)
11151115 $Tuple2(nil, $Tuple7(tokenSwapLimitInUsdMax, swapLimitSpentInUsdn, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal, 0, usdnSwapLimitMax))
11161116 }
11171117
11181118
11191119
11201120 @Callable(i)
11211121 func calcWithdrawResultSYSREADONLY (swapType,inAmount,price,inAsset) = {
11221122 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
11231123 $Tuple2(nil, calcWithdraw(swapType, inAmount, price, neutrinoMetrics, inAsset))
11241124 }
11251125
11261126
11271127
11281128 @Callable(i)
11291129 func replaceCommunityNode (oldAddrStr,newAddrStr,groupNum,penaltyAmount) = {
11301130 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
11311131 let mngPub = fromBase58String(mngPubS)
11321132 if ((i.callerPublicKey != mngPub))
11331133 then throw("replaceCommunityNode not authorized")
11341134 else {
11351135 let groupKey = getLeaseGroupNodeListKey(groupNum)
11361136 let groupNodeListS = getStringOrFail(this, groupKey)
11371137 if (!(contains(groupNodeListS, oldAddrStr)))
11381138 then throw(((("Group " + toString(groupNum)) + " does not contain address ") + oldAddrStr))
11391139 else {
11401140 let doReplace = invoke(nodeRegistryContract, "replaceApprovedNode", [oldAddrStr, newAddrStr, groupNum, penaltyAmount], nil)
11411141 if ((doReplace == doReplace))
11421142 then {
11431143 let oldLeaseIdKey = getLeaseIdByAddressKey(oldAddrStr)
11441144 let oldLeaseAmtKey = getLeaseAmountByAddressKey(oldAddrStr)
11451145 let leaseAmt = getIntegerValue(oldLeaseAmtKey)
11461146 let newLeaseIdKey = getLeaseIdByAddressKey(newAddrStr)
11471147 let newLeaseAmtKey = getLeaseAmountByAddressKey(newAddrStr)
11481148 let newLease = Lease(addressFromStringValue(newAddrStr), leaseAmt)
11491149 let updatedGroupNodeListS = makeString(split(groupNodeListS, oldAddrStr), newAddrStr)
11501150 $Tuple2([LeaseCancel(getBinaryValue(oldLeaseIdKey)), DeleteEntry(oldLeaseIdKey), DeleteEntry(oldLeaseAmtKey), StringEntry(groupKey, updatedGroupNodeListS), newLease, BinaryEntry(newLeaseIdKey, lcalc(newLease)), IntegerEntry(newLeaseAmtKey, leaseAmt)], unit)
11511151 }
11521152 else throw("Strict value is not equal to itself.")
11531153 }
11541154 }
11551155 }
11561156
11571157
11581158 @Verifier(tx)
11591159 func verify () = {
11601160 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
11611161 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
11621162 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
11631163 then 1
11641164 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
11651165 then 1
11661166 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
11671167 then 1
11681168 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
11691169 then 2
11701170 else 0))
11711171 if (if (isBlocked)
11721172 then (getStringValue(controlContract, "is_blocked_caller") == toString(govContract))
11731173 else false)
11741174 then validateUpdate(tx)
11751175 else match tx {
11761176 case sponsorTx: SponsorFeeTransaction =>
11771177 if (checkIsValidMinSponsoredFee(sponsorTx))
11781178 then (count >= 3)
11791179 else false
11801180 case _ =>
11811181 (count >= 3)
11821182 }
11831183 }
11841184

github/deemru/w8io/026f985 
90.36 ms