tx · CYkRYRqixhzcBUwhi7Luja2EgmXmBpmHq9apum3g9Lsq

3N9be2mwrA52WJho6DiesZkk4351GvpnWuj:  -0.04000000 Waves

2022.08.05 07:13 [2170690] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves

{ "type": 13, "id": "CYkRYRqixhzcBUwhi7Luja2EgmXmBpmHq9apum3g9Lsq", "fee": 4000000, "feeAssetId": null, "timestamp": 1659672811813, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "42kqx59ZHipngxuxxUKr8sxdn5Q4ywASLUNm71pkpinBR22w4TToFFQttbJAv4Rwy5d4qaffmR3a1hyzLFLJc7fo", "EJmeETKQvt4vFc6JXxXXKTNvSf9gmobkeNSqb2BwVjcQvH4GTtwRJizKo3P8hmXfE2KuJaQfhFPnPVx9BnYJfxA", "UdvRrqvmxfRzvJkiM3XdzdJwBvLBRu84d2DGNcAN9u8SkktrywACDKio34152E59QeRZcqo1M72fHQFTzSV5rdv" ], "script": "base64:BgJBCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIECgIIARIECgIIARIAEgCIAQEPZ2V0U3RyaW5nT3JGYWlsAgdhZGRyZXNzA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCdCAIFB2FkZHJlc3MFA2tleQkAuQkCCQDMCAICCm1hbmRhdG9yeSAJAMwIAgkApQgBBQdhZGRyZXNzCQDMCAICAS4JAMwIAgUDa2V5CQDMCAICDyBpcyBub3QgZGVmaW5lZAUDbmlsAgABBWxjYWxjAQFsCQC5CAEFAWwBDmdldE51bWJlckJ5S2V5AQNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwUDa2V5AAABDmdldFN0cmluZ0J5S2V5AQNrZXkJAQt2YWx1ZU9yRWx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k4bkJ3WmM3ZnF3Q1RqdEEzbm5Sd2dUYmtNU3I1U1UyTm1EUgkAzAgCAixEVXV1TGpYdTk4bkJ3WmM3ZnF3Q1RqdEEzbm5Sd2dUYmtNU3I1U1UyTm1EUgUDbmlsBQNTRVAEEHB1YktleUFkbWluc0xpc3QJALUJAgkBC3ZhbHVlT3JFbHNlAgkAnQgCBQ9jb250cm9sQ29udHJhY3QCDCVzX19tdWx0aXNpZwUTcHViS2V5QWRtaW5zTGlzdFN0cgUDU0VQBAVjb3VudAkAZAIJAGQCCQBkAgMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAAAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAQABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAACAAEAAAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAMJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAMAAgAABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhVTcG9uc29yRmVlVHJhbnNhY3Rpb24ECXNwb25zb3JUeAUHJG1hdGNoMAMJARtjaGVja0lzVmFsaWRNaW5TcG9uc29yZWRGZWUBBQlzcG9uc29yVHgJAGcCBQVjb3VudAADBwkAZwIFBWNvdW50AAMcAawL", "chainId": 84, "height": 2170690, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7BjtfrzQK18GRL99Ks6KvZJdYxdhUCCrfvXxW9h2UUxe Next: T8qZPUstRzW3yfUS6qjcejZC78eSAJQxHoXTsHiFLY4 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 asPayment (v) = match v {
5353 case p: AttachedPayment =>
5454 p
5555 case _ =>
5656 throw("fail to cast into AttachedPayment")
5757 }
5858
5959
6060 func asSwapParamsSTRUCT (v) = match v {
6161 case struct: (Int, Int, Int, Int, Int) =>
6262 struct
6363 case _ =>
6464 throw("fail to cast into Int")
6565 }
6666
6767
6868 let SEP = "__"
6969
7070 let WAVELET = 100000000
7171
7272 let PAULI = 1000000
7373
7474 let PRICELET = 1000000
7575
7676 let DEFAULTSWAPFEE = 20000
7777
7878 let IdxNetAmount = 0
7979
8080 let IdxFeeAmount = 1
8181
8282 let IdxGrossAmount = 2
8383
8484 let IdxControlCfgNeutrinoDapp = 1
8585
8686 let IdxControlCfgAuctionDapp = 2
8787
8888 let IdxControlCfgRpdDapp = 3
8989
9090 let IdxControlCfgMathDapp = 4
9191
9292 let IdxControlCfgLiquidationDapp = 5
9393
9494 let IdxControlCfgRestDapp = 6
9595
9696 let IdxControlCfgNodeRegistryDapp = 7
9797
9898 let IdxControlCfgNsbtStakingDapp = 8
9999
100100 let IdxControlCfgMediatorDapp = 9
101101
102102 let IdxControlCfgSurfStakingDapp = 10
103103
104104 let IdxControlCfgGnsbtControllerDapp = 11
105105
106106 func keyControlAddress () = "%s%s__config__controlAddress"
107107
108108
109109 func keyControlCfg () = "%s__controlConfig"
110110
111111
112112 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
113113
114114
115115 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
116116
117117
118118 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
119119
120120 let controlCfg = readControlCfgOrFail(controlContract)
121121
122122 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
123123
124124 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
125125
126126 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
127127
128128 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
129129
130130 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
131131
132132 let NeutrinoAssetIdKey = "neutrino_asset_id"
133133
134134 let BondAssetIdKey = "bond_asset_id"
135135
136136 let AuctionContractKey = "auction_contract"
137137
138138 let NsbtStakingContractKey = "nsbtStakingContract"
139139
140140 let LiquidationContractKey = "liquidation_contract"
141141
142142 let RPDContractKey = "rpd_contract"
143143
144144 let ContolContractKey = "control_contract"
145145
146146 let MathContractKey = "math_contract"
147147
148148 let BalanceWavesLockIntervalKey = "balance_waves_lock_interval"
149149
150150 let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval"
151151
152152 let MinWavesSwapAmountKey = "min_waves_swap_amount"
153153
154154 let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount"
155155
156156 let NodeOracleProviderPubKeyKey = "node_oracle_provider"
157157
158158 let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart"
159159
160160 let WavesOutFeePartKey = "wavesOut_swap_feePart"
161161
162162 func keyNodeRegistry (address) = ("%s__" + address)
163163
164164
165165 let PriceKey = "price"
166166
167167 let PriceIndexKey = "price_index"
168168
169169 let IsBlockedKey = "is_blocked"
170170
171171 func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block))
172172
173173
174174 func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index))
175175
176176
177177 func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP))
178178
179179
180180 func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx))
181181
182182
183183 func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET))
184184
185185
186186 func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner)
187187
188188
189189 func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP)
190190
191191
192192 func getLeaseIdByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "id"], SEP)
193193
194194
195195 func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP)
196196
197197
198198 func getLeaseAmountByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "amount"], SEP)
199199
200200
201201 func getLeaseGroupNodeListKey (groupNum) = makeString(["%s%d%s", "leaseGroup", toString(groupNum), "nodeList"], SEP)
202202
203203
204204 func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount")
205205
206206
207207 func totalLockedKEY (swapType) = ("balance_lock_" + swapType)
208208
209209
210210 func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_")
211211
212212
213213 func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval")
214214
215215
216216 func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval"
217217
218218
219219 func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart")
220220
221221
222222 func swapsTimeframeKEY () = "swaps_timeframe"
223223
224224
225225 func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0)
226226
227227
228228 func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440)
229229
230230
231231 func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0)
232232
233233
234234 func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0)
235235
236236
237237 func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440)
238238
239239
240240 func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1)
241241
242242
243243 func keySwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "swapUserSpentInPeriod", userAddress], SEP)
244244
245245
246246 func keyUserLastSwapHeight (userAddress) = makeString(["%s%s", "userLastSwapHeight", userAddress], SEP)
247247
248248
249249 func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI)
250250
251251
252252 func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET)
253253
254254
255255 func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price)
256256
257257
258258 func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
259259
260260
261261 func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount)))
262262
263263
264264 func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
265265
266266
267267 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)))
268268
269269
270270 let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey))
271271
272272 let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey)
273273
274274 let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey)
275275
276276 let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey))
277277
278278 let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z")
279279
280280 let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF")
281281
282282 let neutrinoContract = this
283283
284284 let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey)
285285
286286 func checkIsValidMinSponsoredFee (tx) = {
287287 let MINTRANSFERFEE = 100000
288288 let SponsoredFeeUpperBound = 1000
289289 let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice)
290290 let minNeutrinoFee = (realNeutrinoFee * 2)
291291 let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100)
292292 let inputFee = value(tx.minSponsoredAssetFee)
293293 if (if ((inputFee >= minNeutrinoFee))
294294 then (maxNeutrinoFee >= inputFee)
295295 else false)
296296 then (tx.assetId == neutrinoAssetId)
297297 else false
298298 }
299299
300300
301301 func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block))
302302
303303
304304 func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index))
305305
306306
307307 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP)
308308
309309
310310 let sIdxSwapType = 1
311311
312312 let sIdxStatus = 2
313313
314314 let sIdxInAmount = 3
315315
316316 let sIdxPrice = 4
317317
318318 let sIdxOutNetAmount = 5
319319
320320 let sIdxOutFeeAmount = 6
321321
322322 let sIdxStartHeight = 7
323323
324324 let sIdxStartTimestamp = 8
325325
326326 let sIdxEndHeight = 9
327327
328328 let sIdxEndTimestamp = 10
329329
330330 let sIdxSelfUnlockHeight = 11
331331
332332 let sIdxRandUnlockHeight = 12
333333
334334 let sIdxIndex = 13
335335
336336 let sIdxWithdrawTxId = 14
337337
338338 let sIdxMinRand = 15
339339
340340 let sIdxMaxRand = 16
341341
342342 func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP)
343343
344344
345345 func strSwapDATA (swapType,status,inAmount,price,outNetAmount,outFeeAmount,startHeight,startTimestamp,endHeight,endTimestamp,selfUnlockHeight,randUnlockHeight,index,withdrawTxId,randMin,randMax) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s", swapType, status, inAmount, price, outNetAmount, outFeeAmount, startHeight, startTimestamp, endHeight, endTimestamp, selfUnlockHeight, randUnlockHeight, index, withdrawTxId, randMin, randMax], SEP)
346346
347347
348348 func pendingSwapDATA (swapType,inAssetAmount,selfUnlockHeight) = strSwapDATA(swapType, "PENDING", toString(inAssetAmount), "0", "0", "0", toString(height), toString(lastBlock.timestamp), "0", "0", toString(selfUnlockHeight), "0", "0", "NULL", "0", "0")
349349
350350
351351 func finishSwapDATA (dataArray,price,outNetAmount,outFeeAmount,randUnlockHeight,index,withdrawTxId) = 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])
352352
353353
354354 func swapDataFailOrREAD (userAddress,swapTxId) = {
355355 let swapKey = swapKEY(userAddress, swapTxId)
356356 split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP)
357357 }
358358
359359
360360 func applyFees (amountGross,feePart) = {
361361 let feeAmount = fraction(amountGross, feePart, PAULI)
362362 [(amountGross - feeAmount), feeAmount, amountGross]
363363 }
364364
365365
366366 func abs (x) = if ((0 > x))
367367 then -(x)
368368 else x
369369
370370
371371 func selectNode (unleaseAmount) = {
372372 let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship())
373373 let oldLeased0 = getNumberByKey(getLeaseAmountKey(0))
374374 let oldLeased1 = getNumberByKey(getLeaseAmountKey(1))
375375 let newLeased0 = (amountToLease + oldLeased0)
376376 let newLeased1 = (amountToLease + oldLeased1)
377377 if (if ((newLeased0 > 0))
378378 then true
379379 else (newLeased1 > 0))
380380 then {
381381 let delta0 = abs((newLeased0 - oldLeased1))
382382 let delta1 = abs((newLeased1 - oldLeased0))
383383 if ((delta1 >= delta0))
384384 then $Tuple2(0, newLeased0)
385385 else $Tuple2(1, newLeased1)
386386 }
387387 else $Tuple2(-1, 0)
388388 }
389389
390390
391391 func thisOnly (i) = if ((i.caller != this))
392392 then throw("Permission denied: this contract only allowed")
393393 else true
394394
395395
396396 func prepareUnleaseAndLease (unleaseAmount) = {
397397 let nodeTuple = selectNode(unleaseAmount)
398398 let nodeIndex = nodeTuple._1
399399 let newLeaseAmount = nodeTuple._2
400400 if ((newLeaseAmount > 0))
401401 then {
402402 let leaseIdKey = getLeaseIdKey(nodeIndex)
403403 let oldLease = getBinary(this, leaseIdKey)
404404 let unleaseOrEmpty = if (isDefined(oldLease))
405405 then [LeaseCancel(value(oldLease))]
406406 else nil
407407 let leaseAmountKey = getLeaseAmountKey(nodeIndex)
408408 let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount)
409409 (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, lcalc(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)])
410410 }
411411 else nil
412412 }
413413
414414
415415 func readNodeInfo (nodeIdx) = {
416416 let nodeAddress = getStakingNodeAddressByIndex(nodeIdx)
417417 let leasedAmtKEY = getLeaseAmountKey(nodeIdx)
418418 let leasedAmt = getNumberByKey(leasedAmtKEY)
419419 let leaseIdKEY = getLeaseIdKey(nodeIdx)
420420 let leaseId = value(getBinary(this, leaseIdKEY))
421421 $Tuple5(nodeAddress, leasedAmtKEY, leasedAmt, leaseIdKEY, leaseId)
422422 }
423423
424424
425425 func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapParamsByUserSYSREADONLY) = {
426426 let $t01722417304 = swapParamsByUserSYSREADONLY
427427 let swapLimitMax = $t01722417304._1
428428 let swapLimitSpent = $t01722417304._2
429429 let blcks2LmtReset = $t01722417304._3
430430 let minSwapAmount = minSwapAmountREAD(swapType)
431431 let totalLocked = totalLockedREAD(swapType)
432432 let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr)
433433 let nodeAddress = getStakingNodeByIndex(0)
434434 let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex))
435435 let isSwapByNode = (nodeAddress == userAddressStr)
436436 let balanceLockMaxInterval = if (isSwapByNode)
437437 then nodeBalanceLockIntervalREAD()
438438 else balanceLockIntervalREAD(swapType)
439439 let selfUnlockHeight = (height + balanceLockMaxInterval)
440440 let swapUsdnVolume = if ((swapType == "neutrino"))
441441 then pmtAmount
442442 else convertWavesToNeutrino(pmtAmount, priceByIndex)
443443 if ((minSwapAmount > pmtAmount))
444444 then minSwapAmountFAIL(swapType, minSwapAmount)
445445 else if (if (!(isSwapByNode))
446446 then (swapLimitSpent > 0)
447447 else false)
448448 then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset))))
449449 else if (if (!(isSwapByNode))
450450 then (swapUsdnVolume > swapLimitMax)
451451 else false)
452452 then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax)))
453453 else if (isBlocked)
454454 then emergencyShutdownFAIL()
455455 else {
456456 let leasePart = if ((swapType == "waves"))
457457 then prepareUnleaseAndLease(0)
458458 else nil
459459 $Tuple2(([IntegerEntry(keySwapUserSpentInPeriod(userAddressStr), swapUsdnVolume), IntegerEntry(keyUserLastSwapHeight(userAddressStr), height), IntegerEntry(totalLockedByUserKEY(swapType, userAddressStr), (totalLockedByUser + pmtAmount)), IntegerEntry(getBalanceUnlockBlockKey(userAddressStr), selfUnlockHeight), IntegerEntry(totalLockedKEY(swapType), (totalLocked + pmtAmount)), StringEntry(swapKEY(userAddressStr, txId58), pendingSwapDATA(swapType, pmtAmount, selfUnlockHeight))] ++ leasePart), unit)
460460 }
461461 }
462462
463463
464464 func commonWithdraw (account,index,swapTxId,withdrawTxId) = {
465465 let userAddress = addressFromStringValue(account)
466466 let dataArray = swapDataFailOrREAD(account, swapTxId)
467467 let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight])
468468 let swapType = dataArray[sIdxSwapType]
469469 let inAmount = parseIntValue(dataArray[sIdxInAmount])
470470 let swapStatus = dataArray[sIdxStatus]
471471 let startHeight = parseIntValue(dataArray[sIdxStartHeight])
472472 let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE)
473473 let totalLocked = totalLockedREAD(swapType)
474474 let totalLockedByUser = totalLockedByUserREAD(swapType, account)
475475 let unlockHeight = selfUnlockHeight
476476 let indexHeight = getHeightPriceByIndex(index)
477477 let prevIndexHeight = getHeightPriceByIndex((index - 1))
478478 let priceByIndex = getPriceHistory(indexHeight)
479479 let outAmountGrossTuple = if ((swapType == "waves"))
480480 then $Tuple2(convertWavesToNeutrino(inAmount, priceByIndex), neutrinoAssetId)
481481 else if ((swapType == "neutrino"))
482482 then $Tuple2(convertNeutrinoToWaves(inAmount, priceByIndex), unit)
483483 else throw(("Unsupported swap type " + swapType))
484484 let payoutsArray = applyFees(outAmountGrossTuple._1, outFeePart)
485485 let outNetAmount = payoutsArray[IdxNetAmount]
486486 let outFeeAmount = payoutsArray[IdxFeeAmount]
487487 if (isBlocked)
488488 then emergencyShutdownFAIL()
489489 else if ((swapStatus != "PENDING"))
490490 then throw("swap has been already processed")
491491 else if ((unlockHeight > height))
492492 then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds"))
493493 else if (if (if ((index > priceIndex))
494494 then true
495495 else (unlockHeight > indexHeight))
496496 then true
497497 else if ((prevIndexHeight != 0))
498498 then (prevIndexHeight >= unlockHeight)
499499 else false)
500500 then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight)
501501 else if ((0 >= payoutsArray[IdxGrossAmount]))
502502 then throw("balance equals zero")
503503 else if (if ((0 > outFeePart))
504504 then true
505505 else (outFeePart >= PAULI))
506506 then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart)))
507507 else {
508508 let unleaseAmount = if (if ((swapType == "neutrino"))
509509 then (outAmountGrossTuple._1 > 0)
510510 else false)
511511 then outAmountGrossTuple._1
512512 else 0
513513 let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAmountGrossTuple._2), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId))]
514514 $Tuple3(state, AttachedPayment(outAmountGrossTuple._2, outFeeAmount), unleaseAmount)
515515 }
516516 }
517517
518518
519519 @Callable(i)
520520 func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = {
521521 let checkCaller = thisOnly(i)
522522 if ((checkCaller == checkCaller))
523523 then if ((size(i.payments) != 0))
524524 then throw("no payments allowed")
525525 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(MinWavesSwapAmountKey, minWavesSwapAmountPrm), IntegerEntry(MinNeutrinoSwapAmountKey, minNeutrinoSwapAmountPrm), IntegerEntry(NeutrinoOutFeePartKey, neutrinoOutFeePartPrm), IntegerEntry(WavesOutFeePartKey, wavesOutFeePartPrm)]
526526 else throw("Strict value is not equal to itself.")
527527 }
528528
529529
530530
531531 @Callable(i)
532532 func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = {
533533 let checkCaller = thisOnly(i)
534534 if ((checkCaller == checkCaller))
535535 then if ((size(i.payments) != 0))
536536 then throw("no payments allowed")
537537 else [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)]
538538 else throw("Strict value is not equal to itself.")
539539 }
540540
541541
542542
543543 @Callable(i)
544544 func swapWavesToNeutrino () = if ((size(i.payments) != 1))
545545 then throw("swapWavesToNeutrino require only one payment")
546546 else {
547547 let pmt = value(i.payments[0])
548548 if (isDefined(pmt.assetId))
549549 then throw("Only Waves token is allowed for swapping.")
550550 else {
551551 let userAddress = toString(i.caller)
552552 let txId58 = toBase58String(i.transactionId)
553553 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
554554 let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
555555 commonSwapResult
556556 }
557557 }
558558
559559
560560
561561 @Callable(i)
562562 func swapNeutrinoToWaves () = if ((size(i.payments) != 1))
563563 then throw("swapNeutrinoToWaves require only one payment")
564564 else {
565565 let pmt = value(i.payments[0])
566566 if ((pmt.assetId != neutrinoAssetId))
567567 then throw("Only appropriate Neutrino tokens are allowed for swapping.")
568568 else {
569569 let userAddress = toString(i.caller)
570570 let txId58 = toBase58String(i.transactionId)
571571 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
572572 let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
573573 commonSwapResult
574574 }
575575 }
576576
577577
578578
579579 @Callable(i)
580580 func withdraw (account,index,swapTxId) = {
581581 let txId = toBase58String(i.transactionId)
582582 if ((size(i.payments) != 0))
583583 then throw("no payments allowed")
584584 else {
585585 let commonTuple = commonWithdraw(account, index, swapTxId, txId)
586586 let state = commonTuple._1
587587 let fee = commonTuple._2
588588 let unleaseAmt = commonTuple._3
589589 let unleaseInvOrEmpty = invoke(this, "internalUnleaseAndLease", [unleaseAmt], nil)
590590 if ((unleaseInvOrEmpty == unleaseInvOrEmpty))
591591 then {
592592 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil))
593593 let gnsbtAmtTotal = asInt(gnsbtData[1])
594594 let gnsbtAmtFromSurfTotal = asInt(asAnyList(gnsbtData[3])[3])
595595 let surfFeeAmt = if ((gnsbtAmtTotal != 0))
596596 then fraction(fee.amount, gnsbtAmtFromSurfTotal, gnsbtAmtTotal)
597597 else 0
598598 let nsbtFeeAmt = (fee.amount - surfFeeAmt)
599599 let surfDeposit = if ((surfFeeAmt > 0))
600600 then {
601601 let surfInv = invoke(surfStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, surfFeeAmt)])
602602 if ((surfInv == surfInv))
603603 then nil
604604 else throw("Strict value is not equal to itself.")
605605 }
606606 else nil
607607 if ((surfDeposit == surfDeposit))
608608 then {
609609 let nsbtDeposit = if ((nsbtFeeAmt > 0))
610610 then {
611611 let nsbtInv = invoke(nsbtStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, nsbtFeeAmt)])
612612 if ((nsbtInv == nsbtInv))
613613 then nil
614614 else throw("Strict value is not equal to itself.")
615615 }
616616 else nil
617617 if ((nsbtDeposit == nsbtDeposit))
618618 then state
619619 else throw("Strict value is not equal to itself.")
620620 }
621621 else throw("Strict value is not equal to itself.")
622622 }
623623 else throw("Strict value is not equal to itself.")
624624 }
625625 }
626626
627627
628628
629629 @Callable(i)
630630 func internalUnleaseAndLease (unleaseAmount) = if ((i.caller != this))
631631 then throw("internalUnleaseAndLease is not public method")
632632 else prepareUnleaseAndLease(unleaseAmount)
633633
634634
635635
636636 @Callable(i)
637637 func transferUsdnToUser (amount,addr) = if ((i.caller != auctionContract))
638638 then throw("Only auction contract is authorized")
639639 else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)]
640640
641641
642642
643643 @Callable(i)
644644 func acceptWaves () = if ((i.caller != auctionContract))
645645 then throw("Currently only auction contract is allowed to call")
646646 else $Tuple2(prepareUnleaseAndLease(0), "success")
647647
648648
649649
650650 @Callable(i)
651651 func approveLeasings (nListS,groupNum) = {
652652 let lAmt = (50 * WAVELET)
653653 let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7]
654654 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
655655 let mngPub = fromBase58String(mngPubS)
656656 let nodeRegAddrStr = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE")
657657 let nodeRegAddr = addressFromStringValue(nodeRegAddrStr)
658658 let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum)
659659 let lGrNodeOpt = getString(this, lGroupNodeListKEY)
660660 if (isDefined(lGrNodeOpt))
661661 then throw((("group " + toString(groupNum)) + " already initialized"))
662662 else {
663663 let nList = split(nListS, SEP)
664664 let expCount = size(nIdxs)
665665 if ((i.callerPublicKey != mngPub))
666666 then throw("approveLeasings not authorized")
667667 else {
668668 let $t02838428446 = readNodeInfo(0)
669669 let nAddr0 = $t02838428446._1
670670 let lAmtKEY0 = $t02838428446._2
671671 let lAmt0 = $t02838428446._3
672672 let lIdKEY0 = $t02838428446._4
673673 let lId0 = $t02838428446._5
674674 let $t02844928511 = readNodeInfo(1)
675675 let nAddr1 = $t02844928511._1
676676 let lAmtKEY1 = $t02844928511._2
677677 let lAmt1 = $t02844928511._3
678678 let lIdKEY1 = $t02844928511._4
679679 let lId1 = $t02844928511._5
680680 let newL0 = Lease(nAddr0, (lAmt0 - ((lAmt * expCount) / 2)))
681681 let newL1 = Lease(nAddr1, (lAmt1 - ((lAmt * expCount) / 2)))
682682 let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil)
683683 if ((validation == validation))
684684 then {
685685 func forEachNodeValidateAndGenerateLease (a,i) = {
686686 let node = nList[i]
687687 let la = Lease(addressFromStringValue(node), lAmt)
688688 (a ++ [la, BinaryEntry(getLeaseIdByAddressKey(node), lcalc(la)), IntegerEntry(getLeaseAmountByAddressKey(node), lAmt)])
689689 }
690690
691691 ([StringEntry(lGroupNodeListKEY, nListS), BinaryEntry(lIdKEY0, lcalc(newL0)), BinaryEntry(lIdKEY1, lcalc(newL1)), IntegerEntry(lAmtKEY0, newL0.amount), IntegerEntry(lAmtKEY1, newL1.amount), LeaseCancel(lId0), LeaseCancel(lId1), newL0, newL1] ++ {
692692 let $l = nIdxs
693693 let $s = size($l)
694694 let $acc0 = nil
695695 func $f0_1 ($a,$i) = if (($i >= $s))
696696 then $a
697697 else forEachNodeValidateAndGenerateLease($a, $l[$i])
698698
699699 func $f0_2 ($a,$i) = if (($i >= $s))
700700 then $a
701701 else throw("List size exceeds 8")
702702
703703 $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)
704704 })
705705 }
706706 else throw("Strict value is not equal to itself.")
707707 }
708708 }
709709 }
710710
711711
712712
713713 @Callable(i)
714714 func swapParamsByUserSYSREADONLY (userAddressStr,gnsbtDiff) = {
715715 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil))
716716 let gnsbtAmt = (asInt(gnsbtData[0]) + gnsbtDiff)
717717 let gnsbtAmtTotal = (asInt(gnsbtData[1]) + gnsbtDiff)
718718 let swapLimitMax = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil))
719719 let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0)
720720 let swapLimitTimelifeBlocks = swapsTimeframeREAD()
721721 let passedBlocksAfterLastSwap = (height - lastSwapHeight)
722722 let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks)
723723 let swapLimitSpent = if (isSwapTimelifeNew)
724724 then 0
725725 else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0)
726726 let blcks2LmtReset = if (isSwapTimelifeNew)
727727 then 0
728728 else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap)
729729 $Tuple2(nil, $Tuple5(swapLimitMax, swapLimitSpent, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal))
730730 }
731731
732732
733733
734734 @Callable(i)
735735 func updateReservesAndNeutrinoSupply () = {
736736 func getNumberByKeyInternal (key) = match getInteger(this, key) {
737737 case a: Int =>
738738 a
739739 case _ =>
740740 0
741741 }
742742
743743 let nMetrix = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
744744 let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx")
745745 let newIdx = (idx + 1)
746746 [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", asInt(nMetrix[3])), IntegerEntry("neutrinoSupply", asInt(nMetrix[5])), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(asInt(nMetrix[3]), asInt(nMetrix[0]))), IntegerEntry("surplus", asInt(nMetrix[6])), IntegerEntry("deficit", -(asInt(nMetrix[6])))]
747747 }
748748
749749
750750
751751 @Callable(i)
752752 func wavesBalancesVsPayment () = {
753753 let b = wavesBalance(this)
754754 [IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)]
755755 }
756756
757757
758758 @Verifier(tx)
759759 func verify () = {
760760 let id = toBase58String(tx.id)
761761 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
762762 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
763763 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
764764 then 1
765765 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
766766 then 1
767767 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
768768 then 1
769769 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
770770 then 2
771771 else 0))
772772 match tx {
773773 case sponsorTx: SponsorFeeTransaction =>
774774 if (checkIsValidMinSponsoredFee(sponsorTx))
775775 then (count >= 3)
776776 else false
777777 case _ =>
778778 (count >= 3)
779779 }
780780 }
781781

github/deemru/w8io/026f985 
66.93 ms