tx · 91q5zjyaVMW4S2c2ySi2xtdyWa5rRq3NxtHjEU8SmG8a

3N9be2mwrA52WJho6DiesZkk4351GvpnWuj:  -0.03700000 Waves

2023.01.07 12:05 [2394331] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves

{ "type": 13, "id": "91q5zjyaVMW4S2c2ySi2xtdyWa5rRq3NxtHjEU8SmG8a", "fee": 3700000, "feeAssetId": null, "timestamp": 1673082346982, "version": 2, "chainId": 84, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "PZ4jd8dQGEHKRDPL7mD9LrsSmyEtpNYvPHKxv6gRqfup36QGNJ73X9UTVTLg7J8EnZj1BCib2Fr4mbqA3Ti32Wy", "65qkjrX4QV7brgThA4urkRTxwYxwZPCgTqQKfTVicFSjyXycqgH3u4f8TsZmNDcnKNi8cT4A5FytbH8h8F7Qov6S", "fswVLoMCpGtDHPEPKULBRfirsMfXfUwqZVwhJKzAktZdpAwAhewHVAAVNEW1kjAcPUbLeJugUbcoJ7CD6GH7RCM" ], "script": "base64:BgJXCAISDgoMCAgICAgIAQEBAQEBEgUKAwgIARIAEgASBQoDCAEIEgMKAQESBAoCAQgSABIFCgMIAQESBAoCAQESBAoCCAESBQoDCAEBEgYKBAgIAQESABIAqAEBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQdhZGRyZXNzBQNrZXkJALkJAgkAzAgCAgptYW5kYXRvcnkgCQDMCAIJAKUIAQUHYWRkcmVzcwkAzAgCAgEuCQDMCAIFA2tleQkAzAgCAg8gaXMgbm90IGRlZmluZWQFA25pbAIAAQVsY2FsYwEBbAkAuQgBBQFsAQ5nZXROdW1iZXJCeUtleQEDa2V5CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMFA2tleQ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ckbWF0Y2gwAhVTcG9uc29yRmVlVHJhbnNhY3Rpb24ECXNwb25zb3JUeAUHJG1hdGNoMAMJARtjaGVja0lzVmFsaWRNaW5TcG9uc29yZWRGZWUBBQlzcG9uc29yVHgJAGcCBQVjb3VudAADBwkAZwIFBWNvdW50AAPta7/t", "height": 2394331, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C8WxQYAr55HoeNifbxH5pRVS131xdyMgNoCL8apzStiC Next: 4xKYLTW2puBWSmkjN2BfNKoWQSgA9qLvTiqbF69ipSpd Diff:
OldNewDifferences
523523
524524 func calcWithdrawW2U (wavesIn,price) = {
525525 let outAmtGross = convertWavesToNeutrino(wavesIn, price)
526- $Tuple9(outAmtGross, neutrinoAssetId, 0, unit, 0, wavesIn, 0, 0, 0)
526+ $Tuple10(outAmtGross, neutrinoAssetId, 0, unit, 0, price, wavesIn, 0, 0, 0)
527527 }
528528
529529
541541 let allowedUsdn = (allowedUsdnBeforeMinBr + allowedUsdnAfterMinBr)
542542 let usdn2SURF = (usdnIn - allowedUsdn)
543543 let outAmtGross = convertNeutrinoToWaves(allowedUsdn, price)
544- $Tuple9(outAmtGross, unit, usdn2SURF, neutrinoAssetId, outAmtGross, allowedUsdn, maxAllowedUsdnBeforeMinBr, allowedUsdnBeforeMinBr, allowedUsdnAfterMinBr)
544+ $Tuple10(outAmtGross, unit, usdn2SURF, neutrinoAssetId, outAmtGross, price, allowedUsdn, maxAllowedUsdnBeforeMinBr, allowedUsdnBeforeMinBr, allowedUsdnAfterMinBr)
545545 }
546546
547547
567567 let inAmtToSurfPart = outDataTuple._3
568568 let inAssetId = outDataTuple._4
569569 let unleaseAmt = outDataTuple._5
570+ let withdrawPrice = outDataTuple._6
570571 let payoutsArray = applyFees(outAmtGross, inAmtToSurfPart, outFeePart)
571572 let outNetAmt = payoutsArray[IdxNetAmount]
572573 let outFeeAmt = payoutsArray[IdxFeeAmount]
576577 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [inAmtToSurfPart, inAssetId], nil))
577578 asInt(surfResult[bFuncIdxSurf])
578579 }
579- $Tuple7(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross)
580+ $Tuple8(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross, withdrawPrice)
580581 }
581582 }
582583
618619 let unleaseAmt = withdrawTuple._5
619620 let outFeeAmount = withdrawTuple._6
620621 let outAmtGross = withdrawTuple._7
622+ let withdrawPrice = withdrawTuple._8
621623 if ((0 >= outAmtGross))
622624 then throw("balance equals zero")
623625 else {
624626 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
625- let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAssetId), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId, outSurfAmt, BR))]
627+ let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAssetId), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, withdrawPrice, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId, outSurfAmt, BR))]
626628 let surfCondition = if ((outSurfAmt > 0))
627629 then {
628630 let issueResult = invoke(auctionContract, "issueSurf", [outSurfAmt, account], nil)
818820 if ((i.callerPublicKey != mngPub))
819821 then throw("approveLeasings not authorized")
820822 else {
821- let $t03546335525 = readNodeInfo(0)
822- let nAddr0 = $t03546335525._1
823- let lAmtKEY0 = $t03546335525._2
824- let lAmt0 = $t03546335525._3
825- let lIdKEY0 = $t03546335525._4
826- let lId0 = $t03546335525._5
823+ let $t03574835810 = readNodeInfo(0)
824+ let nAddr0 = $t03574835810._1
825+ let lAmtKEY0 = $t03574835810._2
826+ let lAmt0 = $t03574835810._3
827+ let lIdKEY0 = $t03574835810._4
828+ let lId0 = $t03574835810._5
827829 let newL0 = Lease(nAddr0, (lAmt0 - (lAmt * expCount)))
828830 let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil)
829831 if ((validation == validation))
868870 then throw("rebalanceLeasings not authorized")
869871 else {
870872 let unleaseAmt = ((amount / size(nList)) + 1)
871- let $t03676536827 = readNodeInfo(0)
872- let nAddr0 = $t03676536827._1
873- let lAmtKEY0 = $t03676536827._2
874- let lAmt0 = $t03676536827._3
875- let lIdKEY0 = $t03676536827._4
876- let lId0 = $t03676536827._5
873+ let $t03705037112 = readNodeInfo(0)
874+ let nAddr0 = $t03705037112._1
875+ let lAmtKEY0 = $t03705037112._2
876+ let lAmt0 = $t03705037112._3
877+ let lIdKEY0 = $t03705037112._4
878+ let lId0 = $t03705037112._5
877879 let newL0 = Lease(nAddr0, (lAmt0 + (unleaseAmt * size(nList))))
878880 func forEachNodeDoUnlease (a,i) = {
879881 let node = nList[i]
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 WAVELET = 100000000
8181
8282 let PAULI = 1000000
8383
8484 let PRICELET = 1000000
8585
8686 let DEFAULTSWAPFEE = 20000
8787
8888 let BRPROTECTED = 100000
8989
9090 let IdxNetAmount = 0
9191
9292 let IdxFeeAmount = 1
9393
9494 let IdxGrossAmount = 2
9595
9696 let IdxControlCfgNeutrinoDapp = 1
9797
9898 let IdxControlCfgAuctionDapp = 2
9999
100100 let IdxControlCfgRpdDapp = 3
101101
102102 let IdxControlCfgMathDapp = 4
103103
104104 let IdxControlCfgLiquidationDapp = 5
105105
106106 let IdxControlCfgRestDapp = 6
107107
108108 let IdxControlCfgNodeRegistryDapp = 7
109109
110110 let IdxControlCfgNsbtStakingDapp = 8
111111
112112 let IdxControlCfgMediatorDapp = 9
113113
114114 let IdxControlCfgSurfStakingDapp = 10
115115
116116 let IdxControlCfgGnsbtControllerDapp = 11
117117
118118 let IdxControlCfgRestV2Dapp = 12
119119
120120 let IdxControlCfgGovernanceDapp = 13
121121
122122 func keyControlAddress () = "%s%s__config__controlAddress"
123123
124124
125125 func keyControlCfg () = "%s__controlConfig"
126126
127127
128128 func readControlCfgOrFail (control) = split_4C(getStringOrFail(control, keyControlCfg()), SEP)
129129
130130
131131 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
132132
133133
134134 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
135135
136136 let controlCfg = readControlCfgOrFail(controlContract)
137137
138138 let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp)
139139
140140 let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp)
141141
142142 let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp)
143143
144144 let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp)
145145
146146 let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp)
147147
148148 let nodeRegistryContract = getContractAddressOrFail(controlCfg, IdxControlCfgNodeRegistryDapp)
149149
150150 let govContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp)
151151
152152 let NeutrinoAssetIdKey = "neutrino_asset_id"
153153
154154 let BondAssetIdKey = "bond_asset_id"
155155
156156 let AuctionContractKey = "auction_contract"
157157
158158 let NsbtStakingContractKey = "nsbtStakingContract"
159159
160160 let LiquidationContractKey = "liquidation_contract"
161161
162162 let RPDContractKey = "rpd_contract"
163163
164164 let ContolContractKey = "control_contract"
165165
166166 let MathContractKey = "math_contract"
167167
168168 let BalanceWavesLockIntervalKey = "balance_waves_lock_interval"
169169
170170 let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval"
171171
172172 let MinWavesSwapAmountKey = "min_waves_swap_amount"
173173
174174 let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount"
175175
176176 let NodeOracleProviderPubKeyKey = "node_oracle_provider"
177177
178178 let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart"
179179
180180 let WavesOutFeePartKey = "wavesOut_swap_feePart"
181181
182182 func keyNodeRegistry (address) = ("%s__" + address)
183183
184184
185185 let PriceKey = "price"
186186
187187 let PriceIndexKey = "price_index"
188188
189189 let IsBlockedKey = "is_blocked"
190190
191191 func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block))
192192
193193
194194 func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index))
195195
196196
197197 func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP))
198198
199199
200200 func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx))
201201
202202
203203 func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET))
204204
205205
206206 func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner)
207207
208208
209209 func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP)
210210
211211
212212 func getLeaseIdByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "id"], SEP)
213213
214214
215215 func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP)
216216
217217
218218 func getLeaseAmountByAddressKey (nodeAddress) = makeString(["%s%s%s", "leaseByAddress", nodeAddress, "amount"], SEP)
219219
220220
221221 func getLeaseGroupNodeListKey (groupNum) = makeString(["%s%d%s", "leaseGroup", toString(groupNum), "nodeList"], SEP)
222222
223223
224224 func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount")
225225
226226
227227 func totalLockedKEY (swapType) = ("balance_lock_" + swapType)
228228
229229
230230 func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_")
231231
232232
233233 func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval")
234234
235235
236236 func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval"
237237
238238
239239 func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart")
240240
241241
242242 func swapsTimeframeKEY () = "swaps_timeframe"
243243
244244
245245 func brProtectedKEY () = "min_BR_protection_level"
246246
247247
248248 func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0)
249249
250250
251251 func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440)
252252
253253
254254 func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0)
255255
256256
257257 func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0)
258258
259259
260260 func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440)
261261
262262
263263 func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1)
264264
265265
266266 func keySwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "swapUserSpentInPeriod", userAddress], SEP)
267267
268268
269269 func keyUserLastSwapHeight (userAddress) = makeString(["%s%s", "userLastSwapHeight", userAddress], SEP)
270270
271271
272272 func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI)
273273
274274
275275 func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET)
276276
277277
278278 func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price)
279279
280280
281281 func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
282282
283283
284284 func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount)))
285285
286286
287287 func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
288288
289289
290290 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)))
291291
292292
293293 let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey))
294294
295295 let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey)
296296
297297 let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey)
298298
299299 let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey))
300300
301301 let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z")
302302
303303 let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF")
304304
305305 let neutrinoContract = this
306306
307307 let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey)
308308
309309 func checkIsValidMinSponsoredFee (tx) = {
310310 let MINTRANSFERFEE = 100000
311311 let SponsoredFeeUpperBound = 1000
312312 let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice)
313313 let minNeutrinoFee = (realNeutrinoFee * 2)
314314 let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100)
315315 let inputFee = value(tx.minSponsoredAssetFee)
316316 if (if ((inputFee >= minNeutrinoFee))
317317 then (maxNeutrinoFee >= inputFee)
318318 else false)
319319 then (tx.assetId == neutrinoAssetId)
320320 else false
321321 }
322322
323323
324324 func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block))
325325
326326
327327 func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index))
328328
329329
330330 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP)
331331
332332
333333 let sIdxSwapType = 1
334334
335335 let sIdxStatus = 2
336336
337337 let sIdxInAmount = 3
338338
339339 let sIdxStartHeight = 7
340340
341341 let sIdxStartTimestamp = 8
342342
343343 let sIdxSelfUnlockHeight = 11
344344
345345 let sIdxMinRand = 15
346346
347347 let sIdxMaxRand = 16
348348
349349 func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP)
350350
351351
352352 func strSwapDATA (swapType,status,inAmount,price,outNetAmount,outFeeAmount,startHeight,startTimestamp,endHeight,endTimestamp,selfUnlockHeight,randUnlockHeight,index,withdrawTxId,randMin,randMax,outSurfAmt,br) = makeString(["%s%s%d%d%d%d%d%d%d%d%d%d%d%s%d%d%d%d", swapType, status, inAmount, price, outNetAmount, outFeeAmount, startHeight, startTimestamp, endHeight, endTimestamp, selfUnlockHeight, randUnlockHeight, index, withdrawTxId, randMin, randMax, outSurfAmt, br], SEP)
353353
354354
355355 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", "0", "0")
356356
357357
358358 func finishSwapDATA (dataArray,price,outNetAmount,outFeeAmount,randUnlockHeight,index,withdrawTxId,outSurfAmt,br) = 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))
359359
360360
361361 func swapDataFailOrREAD (userAddress,swapTxId) = {
362362 let swapKey = swapKEY(userAddress, swapTxId)
363363 split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP)
364364 }
365365
366366
367367 func applyFees (amountOutGross,inAmtToSURF,feePart) = {
368368 let feeAmount = fraction(amountOutGross, feePart, PAULI)
369369 [(amountOutGross - feeAmount), feeAmount]
370370 }
371371
372372
373373 func abs (x) = if ((0 > x))
374374 then -(x)
375375 else x
376376
377377
378378 func selectNode (unleaseAmount) = {
379379 let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship())
380380 let oldLeased0 = getNumberByKey(getLeaseAmountKey(0))
381381 let oldLeased1 = getNumberByKey(getLeaseAmountKey(1))
382382 let newLeased0 = (amountToLease + oldLeased0)
383383 let newLeased1 = (amountToLease + oldLeased1)
384384 if (if ((newLeased0 > 0))
385385 then true
386386 else (newLeased1 > 0))
387387 then {
388388 let delta0 = abs((newLeased0 - oldLeased1))
389389 let delta1 = abs((newLeased1 - oldLeased0))
390390 if ((delta1 >= delta0))
391391 then $Tuple2(0, newLeased0)
392392 else $Tuple2(1, newLeased1)
393393 }
394394 else $Tuple2(-1, 0)
395395 }
396396
397397
398398 func thisOnly (i) = if ((i.caller != this))
399399 then throw("Permission denied: this contract only allowed")
400400 else true
401401
402402
403403 func prepareUnleaseAndLease (unleaseAmount) = {
404404 let nodeTuple = selectNode(unleaseAmount)
405405 let nodeIndex = nodeTuple._1
406406 let newLeaseAmount = nodeTuple._2
407407 if ((newLeaseAmount > 0))
408408 then {
409409 let leaseIdKey = getLeaseIdKey(nodeIndex)
410410 let oldLease = getBinary(this, leaseIdKey)
411411 let unleaseOrEmpty = if (isDefined(oldLease))
412412 then [LeaseCancel(value(oldLease))]
413413 else nil
414414 let leaseAmountKey = getLeaseAmountKey(nodeIndex)
415415 let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount)
416416 (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, lcalc(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)])
417417 }
418418 else nil
419419 }
420420
421421
422422 func readNodeInfo (nodeIdx) = {
423423 let nodeAddress = getStakingNodeAddressByIndex(nodeIdx)
424424 let leasedAmtKEY = getLeaseAmountKey(nodeIdx)
425425 let leasedAmt = getNumberByKey(leasedAmtKEY)
426426 let leaseIdKEY = getLeaseIdKey(nodeIdx)
427427 let leaseId = value(getBinary(this, leaseIdKEY))
428428 $Tuple5(nodeAddress, leasedAmtKEY, leasedAmt, leaseIdKEY, leaseId)
429429 }
430430
431431
432432 func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapParamsByUserSYSREADONLY) = {
433433 let swapLimitSpent = swapParamsByUserSYSREADONLY._2
434434 let blcks2LmtReset = swapParamsByUserSYSREADONLY._3
435435 let wavesSwapLimitMax = swapParamsByUserSYSREADONLY._6
436436 let usdnSwapLimitMax = swapParamsByUserSYSREADONLY._7
437437 let minSwapAmount = minSwapAmountREAD(swapType)
438438 let totalLocked = totalLockedREAD(swapType)
439439 let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr)
440440 let nodeAddress = getStakingNodeByIndex(0)
441441 let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex))
442442 let isSwapByNode = (nodeAddress == userAddressStr)
443443 let balanceLockMaxInterval = if (isSwapByNode)
444444 then nodeBalanceLockIntervalREAD()
445445 else balanceLockIntervalREAD(swapType)
446446 let selfUnlockHeight = (height + balanceLockMaxInterval)
447447 let swapUsdnVolume = if ((swapType == "neutrino"))
448448 then pmtAmount
449449 else convertWavesToNeutrino(pmtAmount, priceByIndex)
450450 let swapLimitMax = if ((swapType == "neutrino"))
451451 then usdnSwapLimitMax
452452 else convertWavesToNeutrino(wavesSwapLimitMax, priceByIndex)
453453 if ((minSwapAmount > pmtAmount))
454454 then minSwapAmountFAIL(swapType, minSwapAmount)
455455 else if (if (!(isSwapByNode))
456456 then (swapLimitSpent > 0)
457457 else false)
458458 then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset))))
459459 else if (if (!(isSwapByNode))
460460 then (swapUsdnVolume > swapLimitMax)
461461 else false)
462462 then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax)))
463463 else if (isBlocked)
464464 then emergencyShutdownFAIL()
465465 else {
466466 let leasePart = if ((swapType == "waves"))
467467 then prepareUnleaseAndLease(0)
468468 else nil
469469 $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)
470470 }
471471 }
472472
473473
474474 let nMetricIdxPrice = 0
475475
476476 let nMetricIdxUsdnLockedBalance = 1
477477
478478 let nMetricIdxWavesLockedBalance = 2
479479
480480 let nMetricIdxReserve = 3
481481
482482 let nMetricIdxReserveInUsdn = 4
483483
484484 let nMetricIdxUsdnSupply = 5
485485
486486 let nMetricIdxSurplus = 6
487487
488488 let nMetricIdxSurplusPercent = 7
489489
490490 let nMetricIdxBR = 8
491491
492492 let nMetricIdxNsbtSupply = 9
493493
494494 let nMetricIdxMaxNsbtSupply = 10
495495
496496 let nMetricIdxSurfSupply = 11
497497
498498 let nMetricUsdnUsdtPeg = 12
499499
500500 let nMetricCurrentPriceAdj = 13
501501
502502 let bFuncIdxSurf = 0
503503
504504 let bFuncIdxWaves = 1
505505
506506 let bFuncIdxUsdn = 2
507507
508508 let bFuncIdxReserveStart = 3
509509
510510 let bFuncIdxSupplyStart = 4
511511
512512 let bFuncIdxBRStart = 5
513513
514514 let bFuncIdxReserveEnd = 6
515515
516516 let bFuncIdxSupplyEnd = 7
517517
518518 let bFuncIdxBREnd = 8
519519
520520 let bFuncIdxRest = 9
521521
522522 let bFuncIdxWavesPrice = 10
523523
524524 func calcWithdrawW2U (wavesIn,price) = {
525525 let outAmtGross = convertWavesToNeutrino(wavesIn, price)
526- $Tuple9(outAmtGross, neutrinoAssetId, 0, unit, 0, wavesIn, 0, 0, 0)
526+ $Tuple10(outAmtGross, neutrinoAssetId, 0, unit, 0, price, wavesIn, 0, 0, 0)
527527 }
528528
529529
530530 func calcWithdrawU2W (usdnIn,price,br,reservesInUsdn,usdnSupply) = {
531531 let brProtected = valueOrElse(getInteger(this, brProtectedKEY()), BRPROTECTED)
532532 let maxAllowedUsdnBeforeMinBr = if ((brProtected >= br))
533533 then 0
534534 else fraction((reservesInUsdn - fraction(brProtected, usdnSupply, PAULI)), PAULI, (PAULI - brProtected))
535535 let allowedUsdnBeforeMinBr = if ((usdnIn > maxAllowedUsdnBeforeMinBr))
536536 then maxAllowedUsdnBeforeMinBr
537537 else usdnIn
538538 let allowedUsdnAfterMinBr = if ((usdnIn > maxAllowedUsdnBeforeMinBr))
539539 then fraction((usdnIn - maxAllowedUsdnBeforeMinBr), br, PAULI)
540540 else 0
541541 let allowedUsdn = (allowedUsdnBeforeMinBr + allowedUsdnAfterMinBr)
542542 let usdn2SURF = (usdnIn - allowedUsdn)
543543 let outAmtGross = convertNeutrinoToWaves(allowedUsdn, price)
544- $Tuple9(outAmtGross, unit, usdn2SURF, neutrinoAssetId, outAmtGross, allowedUsdn, maxAllowedUsdnBeforeMinBr, allowedUsdnBeforeMinBr, allowedUsdnAfterMinBr)
544+ $Tuple10(outAmtGross, unit, usdn2SURF, neutrinoAssetId, outAmtGross, price, allowedUsdn, maxAllowedUsdnBeforeMinBr, allowedUsdnBeforeMinBr, allowedUsdnAfterMinBr)
545545 }
546546
547547
548548 func calcWithdraw (swapType,inAmount,price,neutrinoMetrics) = {
549549 let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE)
550550 if (if ((0 > outFeePart))
551551 then true
552552 else (outFeePart >= PAULI))
553553 then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart)))
554554 else {
555555 let brProtected = valueOrElse(getInteger(this, brProtectedKEY()), BRPROTECTED)
556556 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
557557 let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn])
558558 let usdnSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply])
559559 let priceAdj = asInt(neutrinoMetrics[nMetricCurrentPriceAdj])
560560 let outDataTuple = if ((swapType == "waves"))
561561 then calcWithdrawW2U(inAmount, price)
562562 else if ((swapType == "neutrino"))
563563 then calcWithdrawU2W(inAmount, priceAdj, BR, reservesInUsdn, usdnSupply)
564564 else throw(("Unsupported swap type " + swapType))
565565 let outAmtGross = outDataTuple._1
566566 let outAssetId = outDataTuple._2
567567 let inAmtToSurfPart = outDataTuple._3
568568 let inAssetId = outDataTuple._4
569569 let unleaseAmt = outDataTuple._5
570+ let withdrawPrice = outDataTuple._6
570571 let payoutsArray = applyFees(outAmtGross, inAmtToSurfPart, outFeePart)
571572 let outNetAmt = payoutsArray[IdxNetAmount]
572573 let outFeeAmt = payoutsArray[IdxFeeAmount]
573574 let outSurfAmt = if ((0 >= inAmtToSurfPart))
574575 then 0
575576 else {
576577 let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [inAmtToSurfPart, inAssetId], nil))
577578 asInt(surfResult[bFuncIdxSurf])
578579 }
579- $Tuple7(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross)
580+ $Tuple8(outNetAmt, outAssetId, outSurfAmt, inAmtToSurfPart, unleaseAmt, outFeeAmt, outAmtGross, withdrawPrice)
580581 }
581582 }
582583
583584
584585 func commonWithdraw (account,index,swapTxId,withdrawTxId,neutrinoMetrics) = {
585586 let userAddress = addressFromStringValue(account)
586587 let dataArray = swapDataFailOrREAD(account, swapTxId)
587588 let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight])
588589 let swapType = dataArray[sIdxSwapType]
589590 let inAmount = parseIntValue(dataArray[sIdxInAmount])
590591 let swapStatus = dataArray[sIdxStatus]
591592 let startHeight = parseIntValue(dataArray[sIdxStartHeight])
592593 let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE)
593594 let totalLocked = totalLockedREAD(swapType)
594595 let totalLockedByUser = totalLockedByUserREAD(swapType, account)
595596 let unlockHeight = selfUnlockHeight
596597 let indexHeight = getHeightPriceByIndex(index)
597598 let prevIndexHeight = getHeightPriceByIndex((index - 1))
598599 let priceByIndex = getPriceHistory(indexHeight)
599600 if (isBlocked)
600601 then emergencyShutdownFAIL()
601602 else if ((swapStatus != "PENDING"))
602603 then throw("swap has been already processed")
603604 else if ((unlockHeight > height))
604605 then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds"))
605606 else if (if (if ((index > priceIndex))
606607 then true
607608 else (unlockHeight > indexHeight))
608609 then true
609610 else if ((prevIndexHeight != 0))
610611 then (prevIndexHeight >= unlockHeight)
611612 else false)
612613 then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight)
613614 else {
614615 let withdrawTuple = calcWithdraw(swapType, inAmount, priceByIndex, neutrinoMetrics)
615616 let outNetAmount = withdrawTuple._1
616617 let outAssetId = withdrawTuple._2
617618 let outSurfAmt = withdrawTuple._3
618619 let unleaseAmt = withdrawTuple._5
619620 let outFeeAmount = withdrawTuple._6
620621 let outAmtGross = withdrawTuple._7
622+ let withdrawPrice = withdrawTuple._8
621623 if ((0 >= outAmtGross))
622624 then throw("balance equals zero")
623625 else {
624626 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
625- let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAssetId), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, priceByIndex, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId, outSurfAmt, BR))]
627+ let state = [IntegerEntry(totalLockedByUserKEY(swapType, account), (totalLockedByUser - inAmount)), IntegerEntry(totalLockedKEY(swapType), (totalLocked - inAmount)), ScriptTransfer(userAddress, outNetAmount, outAssetId), StringEntry(swapKEY(account, swapTxId), finishSwapDATA(dataArray, withdrawPrice, outNetAmount, outFeeAmount, unlockHeight, index, withdrawTxId, outSurfAmt, BR))]
626628 let surfCondition = if ((outSurfAmt > 0))
627629 then {
628630 let issueResult = invoke(auctionContract, "issueSurf", [outSurfAmt, account], nil)
629631 if ((issueResult == issueResult))
630632 then 0
631633 else throw("Strict value is not equal to itself.")
632634 }
633635 else 0
634636 if ((surfCondition == surfCondition))
635637 then $Tuple3(state, AttachedPayment(outAssetId, outFeeAmount), unleaseAmt)
636638 else throw("Strict value is not equal to itself.")
637639 }
638640 }
639641 }
640642
641643
642644 func keyApplyInProgress () = "%s__applyInProgress"
643645
644646
645647 func keyProposalDataById (proposalId) = ("%s%d__proposalData__" + toString(proposalId))
646648
647649
648650 let govIdxTxIds = 9
649651
650652 func validateUpdate (tx) = match tx {
651653 case o: Order =>
652654 throw("Orders aren't allowed")
653655 case t: DataTransaction|SponsorFeeTransaction|SetScriptTransaction|CreateAliasTransaction|LeaseCancelTransaction|LeaseTransaction|IssueTransaction|InvokeExpressionTransaction|UpdateAssetInfoTransaction|InvokeScriptTransaction|SetAssetScriptTransaction|TransferTransaction|ExchangeTransaction|MassTransferTransaction|BurnTransaction|ReissueTransaction =>
654656 let txId = toBase58String(t.id)
655657 let proposalId = valueOrErrorMessage(getInteger(govContract, keyApplyInProgress()), "Apply is not happening")
656658 let txList = split(split(getStringOrFail(govContract, keyProposalDataById(proposalId)), SEP)[govIdxTxIds], LISTSEP)
657659 if (!(isDefined(indexOf(txList, txId))))
658660 then throw(((("Unknown txId: " + txId) + " for proposalId=") + toString(proposalId)))
659661 else true
660662 case _ =>
661663 throw("Match error")
662664 }
663665
664666
665667 @Callable(i)
666668 func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = {
667669 let checkCaller = thisOnly(i)
668670 if ((checkCaller == checkCaller))
669671 then if ((size(i.payments) != 0))
670672 then throw("no payments allowed")
671673 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)]
672674 else throw("Strict value is not equal to itself.")
673675 }
674676
675677
676678
677679 @Callable(i)
678680 func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = {
679681 let checkCaller = thisOnly(i)
680682 if ((checkCaller == checkCaller))
681683 then if ((size(i.payments) != 0))
682684 then throw("no payments allowed")
683685 else [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)]
684686 else throw("Strict value is not equal to itself.")
685687 }
686688
687689
688690
689691 @Callable(i)
690692 func swapWavesToNeutrino () = if ((size(i.payments) != 1))
691693 then throw("swapWavesToNeutrino require only one payment")
692694 else {
693695 let pmt = value(i.payments[0])
694696 if (isDefined(pmt.assetId))
695697 then throw("Only Waves token is allowed for swapping.")
696698 else {
697699 let userAddress = toString(i.caller)
698700 let txId58 = toBase58String(i.transactionId)
699701 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
700702 let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
701703 commonSwapResult
702704 }
703705 }
704706
705707
706708
707709 @Callable(i)
708710 func swapNeutrinoToWaves () = if ((size(i.payments) != 1))
709711 then throw("swapNeutrinoToWaves require only one payment")
710712 else {
711713 let pmt = value(i.payments[0])
712714 if ((pmt.assetId != neutrinoAssetId))
713715 then throw("Only appropriate Neutrino tokens are allowed for swapping.")
714716 else {
715717 let userAddress = toString(i.caller)
716718 let txId58 = toBase58String(i.transactionId)
717719 let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
718720 let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
719721 commonSwapResult
720722 }
721723 }
722724
723725
724726
725727 @Callable(i)
726728 func withdraw (account,index,swapTxId) = {
727729 let txId = toBase58String(i.transactionId)
728730 if ((size(i.payments) != 0))
729731 then throw("no payments allowed")
730732 else {
731733 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
732734 let BR = asInt(neutrinoMetrics[nMetricIdxBR])
733735 let commonTuple = commonWithdraw(account, index, swapTxId, txId, neutrinoMetrics)
734736 let state = commonTuple._1
735737 let fee = commonTuple._2
736738 let unleaseAmt = commonTuple._3
737739 let unleaseInvOrEmpty = invoke(this, "internalUnleaseAndLease", [unleaseAmt], nil)
738740 if ((unleaseInvOrEmpty == unleaseInvOrEmpty))
739741 then {
740742 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", ["", 0, 0], nil))
741743 let gnsbtAmtTotal = asInt(gnsbtData[1])
742744 let gnsbtAmtFromSurfTotal = asInt(asAnyList(gnsbtData[3])[3])
743745 let surfFeeAmt1 = if ((gnsbtAmtTotal != 0))
744746 then fraction(fee.amount, gnsbtAmtFromSurfTotal, gnsbtAmtTotal)
745747 else 0
746748 let surfFeeAmt2 = if ((gnsbtAmtTotal != 0))
747749 then fraction(fee.amount, (PAULI - BR), PAULI)
748750 else 0
749751 let surfFeeAmt = max([surfFeeAmt1, surfFeeAmt2])
750752 let nsbtFeeAmt = (fee.amount - surfFeeAmt)
751753 let surfDeposit = if ((surfFeeAmt > 0))
752754 then {
753755 let surfInv = invoke(surfStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, surfFeeAmt)])
754756 if ((surfInv == surfInv))
755757 then nil
756758 else throw("Strict value is not equal to itself.")
757759 }
758760 else nil
759761 if ((surfDeposit == surfDeposit))
760762 then {
761763 let nsbtDeposit = if ((nsbtFeeAmt > 0))
762764 then {
763765 let nsbtInv = invoke(nsbtStakingContract, "deposit", nil, [AttachedPayment(fee.assetId, nsbtFeeAmt)])
764766 if ((nsbtInv == nsbtInv))
765767 then nil
766768 else throw("Strict value is not equal to itself.")
767769 }
768770 else nil
769771 if ((nsbtDeposit == nsbtDeposit))
770772 then state
771773 else throw("Strict value is not equal to itself.")
772774 }
773775 else throw("Strict value is not equal to itself.")
774776 }
775777 else throw("Strict value is not equal to itself.")
776778 }
777779 }
778780
779781
780782
781783 @Callable(i)
782784 func internalUnleaseAndLease (unleaseAmount) = if ((i.caller != this))
783785 then throw("internalUnleaseAndLease is not public method")
784786 else prepareUnleaseAndLease(unleaseAmount)
785787
786788
787789
788790 @Callable(i)
789791 func transferUsdnToUser (amount,addr) = if ((i.caller != auctionContract))
790792 then throw("Only auction contract is authorized")
791793 else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)]
792794
793795
794796
795797 @Callable(i)
796798 func acceptWaves () = if (if ((i.caller != auctionContract))
797799 then (i.caller != govContract)
798800 else false)
799801 then throw("Currently only auction and governance contracts are allowed to call")
800802 else $Tuple2(prepareUnleaseAndLease(0), "success")
801803
802804
803805
804806 @Callable(i)
805807 func approveLeasings (nListS,groupNum,lAmt) = {
806808 let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7]
807809 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
808810 let mngPub = fromBase58String(mngPubS)
809811 let nodeRegAddrStr = valueOrElse(getString("%s%s__cfg__nodesRegistryAddress"), "3P9vKqQKjUdmpXAfiWau8krREYAY1Xr69pE")
810812 let nodeRegAddr = addressFromStringValue(nodeRegAddrStr)
811813 let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum)
812814 let lGrNodeOpt = getString(this, lGroupNodeListKEY)
813815 if (isDefined(lGrNodeOpt))
814816 then throw((("group " + toString(groupNum)) + " already initialized"))
815817 else {
816818 let nList = split(nListS, SEP)
817819 let expCount = size(nIdxs)
818820 if ((i.callerPublicKey != mngPub))
819821 then throw("approveLeasings not authorized")
820822 else {
821- let $t03546335525 = readNodeInfo(0)
822- let nAddr0 = $t03546335525._1
823- let lAmtKEY0 = $t03546335525._2
824- let lAmt0 = $t03546335525._3
825- let lIdKEY0 = $t03546335525._4
826- let lId0 = $t03546335525._5
823+ let $t03574835810 = readNodeInfo(0)
824+ let nAddr0 = $t03574835810._1
825+ let lAmtKEY0 = $t03574835810._2
826+ let lAmt0 = $t03574835810._3
827+ let lIdKEY0 = $t03574835810._4
828+ let lId0 = $t03574835810._5
827829 let newL0 = Lease(nAddr0, (lAmt0 - (lAmt * expCount)))
828830 let validation = invoke(nodeRegAddr, "validateAndApproveLeasings", [nListS], nil)
829831 if ((validation == validation))
830832 then {
831833 func forEachNodeValidateAndGenerateLease (a,i) = {
832834 let node = nList[i]
833835 let la = Lease(addressFromStringValue(node), lAmt)
834836 (a ++ [la, BinaryEntry(getLeaseIdByAddressKey(node), lcalc(la)), IntegerEntry(getLeaseAmountByAddressKey(node), lAmt)])
835837 }
836838
837839 ([StringEntry(lGroupNodeListKEY, nListS), BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0] ++ {
838840 let $l = nIdxs
839841 let $s = size($l)
840842 let $acc0 = nil
841843 func $f0_1 ($a,$i) = if (($i >= $s))
842844 then $a
843845 else forEachNodeValidateAndGenerateLease($a, $l[$i])
844846
845847 func $f0_2 ($a,$i) = if (($i >= $s))
846848 then $a
847849 else throw("List size exceeds 8")
848850
849851 $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)
850852 })
851853 }
852854 else throw("Strict value is not equal to itself.")
853855 }
854856 }
855857 }
856858
857859
858860
859861 @Callable(i)
860862 func rebalanceLeasings (amount,groupNum) = {
861863 let nIdxs = [0, 1, 2, 3, 4, 5, 6, 7]
862864 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
863865 let mngPub = fromBase58String(mngPubS)
864866 let lGroupNodeListKEY = getLeaseGroupNodeListKey(groupNum)
865867 let nListS = getStringOrFail(this, lGroupNodeListKEY)
866868 let nList = split(nListS, SEP)
867869 if ((i.callerPublicKey != mngPub))
868870 then throw("rebalanceLeasings not authorized")
869871 else {
870872 let unleaseAmt = ((amount / size(nList)) + 1)
871- let $t03676536827 = readNodeInfo(0)
872- let nAddr0 = $t03676536827._1
873- let lAmtKEY0 = $t03676536827._2
874- let lAmt0 = $t03676536827._3
875- let lIdKEY0 = $t03676536827._4
876- let lId0 = $t03676536827._5
873+ let $t03705037112 = readNodeInfo(0)
874+ let nAddr0 = $t03705037112._1
875+ let lAmtKEY0 = $t03705037112._2
876+ let lAmt0 = $t03705037112._3
877+ let lIdKEY0 = $t03705037112._4
878+ let lId0 = $t03705037112._5
877879 let newL0 = Lease(nAddr0, (lAmt0 + (unleaseAmt * size(nList))))
878880 func forEachNodeDoUnlease (a,i) = {
879881 let node = nList[i]
880882 let lIdKEY = getLeaseIdByAddressKey(node)
881883 let lId = getBinaryValue(this, lIdKEY)
882884 let lAmtKEY = getLeaseAmountByAddressKey(node)
883885 let lAmt = getIntegerValue(this, lAmtKEY)
884886 let ula = LeaseCancel(value(lId))
885887 let la = Lease(addressFromStringValue(node), (lAmt - unleaseAmt))
886888 (a ++ [LeaseCancel(value(lId)), la, BinaryEntry(lIdKEY, lcalc(la)), IntegerEntry(lAmtKEY, la.amount)])
887889 }
888890
889891 ({
890892 let $l = nIdxs
891893 let $s = size($l)
892894 let $acc0 = nil
893895 func $f0_1 ($a,$i) = if (($i >= $s))
894896 then $a
895897 else forEachNodeDoUnlease($a, $l[$i])
896898
897899 func $f0_2 ($a,$i) = if (($i >= $s))
898900 then $a
899901 else throw("List size exceeds 8")
900902
901903 $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)
902904 } ++ [BinaryEntry(lIdKEY0, lcalc(newL0)), IntegerEntry(lAmtKEY0, newL0.amount), LeaseCancel(lId0), newL0])
903905 }
904906 }
905907
906908
907909
908910 @Callable(i)
909911 func swapParamsByUserSYSREADONLY (userAddressStr,gnsbtDiff) = {
910912 let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil))
911913 let gnsbtAmt = (asInt(gnsbtData[0]) + gnsbtDiff)
912914 let gnsbtAmtTotal = (asInt(gnsbtData[1]) + gnsbtDiff)
913915 let swapLimitData = asAnyList(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil))
914916 let wavesSwapLimitInUsdnMax = asInt(swapLimitData[0])
915917 let wavesSwapLimitMax = asInt(swapLimitData[1])
916918 let usdnSwapLimitMax = asInt(swapLimitData[2])
917919 let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0)
918920 let swapLimitTimelifeBlocks = swapsTimeframeREAD()
919921 let passedBlocksAfterLastSwap = (height - lastSwapHeight)
920922 let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks)
921923 let swapLimitSpentInUsdn = if (isSwapTimelifeNew)
922924 then 0
923925 else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0)
924926 let blcks2LmtReset = if (isSwapTimelifeNew)
925927 then 0
926928 else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap)
927929 $Tuple2(nil, $Tuple7(wavesSwapLimitInUsdnMax, swapLimitSpentInUsdn, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal, wavesSwapLimitMax, usdnSwapLimitMax))
928930 }
929931
930932
931933
932934 @Callable(i)
933935 func calcWithdrawResultSYSREADONLY (swapType,inAmount,price) = {
934936 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
935937 $Tuple2(nil, calcWithdraw(swapType, inAmount, price, neutrinoMetrics))
936938 }
937939
938940
939941
940942 @Callable(i)
941943 func replaceCommunityNode (oldAddrStr,newAddrStr,groupNum,penaltyAmount) = {
942944 let mngPubS = valueOrElse(getString("%s%s__cfg__leasingManagerPub"), "7AUMX54ukYMYvPmma7yoFf5NjZhs4Bu5nz3Ez9EV8sur")
943945 let mngPub = fromBase58String(mngPubS)
944946 if ((i.callerPublicKey != mngPub))
945947 then throw("replaceCommunityNode not authorized")
946948 else {
947949 let groupKey = getLeaseGroupNodeListKey(groupNum)
948950 let groupNodeListS = getStringOrFail(this, groupKey)
949951 if (!(contains(groupNodeListS, oldAddrStr)))
950952 then throw(((("Group " + toString(groupNum)) + " does not contain address ") + oldAddrStr))
951953 else {
952954 let doReplace = invoke(nodeRegistryContract, "replaceApprovedNode", [oldAddrStr, newAddrStr, groupNum, penaltyAmount], nil)
953955 if ((doReplace == doReplace))
954956 then {
955957 let oldLeaseIdKey = getLeaseIdByAddressKey(oldAddrStr)
956958 let oldLeaseAmtKey = getLeaseAmountByAddressKey(oldAddrStr)
957959 let leaseAmt = getIntegerValue(oldLeaseAmtKey)
958960 let newLeaseIdKey = getLeaseIdByAddressKey(oldAddrStr)
959961 let newLeaseAmtKey = getLeaseAmountByAddressKey(oldAddrStr)
960962 let newLease = Lease(addressFromStringValue(newAddrStr), leaseAmt)
961963 let updatedGroupNodeListS = makeString(split(groupNodeListS, oldAddrStr), newAddrStr)
962964 $Tuple2([LeaseCancel(getBinaryValue(oldLeaseIdKey)), DeleteEntry(oldLeaseIdKey), DeleteEntry(oldLeaseAmtKey), StringEntry(groupKey, updatedGroupNodeListS), newLease, BinaryEntry(newLeaseIdKey, lcalc(newLease)), IntegerEntry(newLeaseAmtKey, leaseAmt)], unit)
963965 }
964966 else throw("Strict value is not equal to itself.")
965967 }
966968 }
967969 }
968970
969971
970972
971973 @Callable(i)
972974 func updateReservesAndNeutrinoSupply () = {
973975 func getNumberByKeyInternal (key) = match getInteger(this, key) {
974976 case a: Int =>
975977 a
976978 case _ =>
977979 0
978980 }
979981
980982 let nMetrix = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
981983 let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx")
982984 let newIdx = (idx + 1)
983985 [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])))]
984986 }
985987
986988
987989
988990 @Callable(i)
989991 func wavesBalancesVsPayment () = {
990992 let b = wavesBalance(this)
991993 [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)]
992994 }
993995
994996
995997 @Verifier(tx)
996998 func verify () = {
997999 let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP)
9981000 let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP)
9991001 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
10001002 then 1
10011003 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
10021004 then 1
10031005 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
10041006 then 1
10051007 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
10061008 then 2
10071009 else 0))
10081010 if (if (isBlocked)
10091011 then (getStringValue(controlContract, "is_blocked_caller") == toString(govContract))
10101012 else false)
10111013 then validateUpdate(tx)
10121014 else match tx {
10131015 case sponsorTx: SponsorFeeTransaction =>
10141016 if (checkIsValidMinSponsoredFee(sponsorTx))
10151017 then (count >= 3)
10161018 else false
10171019 case _ =>
10181020 (count >= 3)
10191021 }
10201022 }
10211023

github/deemru/w8io/026f985 
100.28 ms