tx · G49CKWHdPTtjx4uyWRbooY3bihbp6cBjUkQBenFzeY4j

3N9be2mwrA52WJho6DiesZkk4351GvpnWuj:  -0.01400000 Waves

2022.03.17 13:02 [1967791] smart account 3N9be2mwrA52WJho6DiesZkk4351GvpnWuj > SELF 0.00000000 Waves

{ "type": 13, "id": "G49CKWHdPTtjx4uyWRbooY3bihbp6cBjUkQBenFzeY4j", "fee": 1400000, "feeAssetId": null, "timestamp": 1647511369123, "version": 1, "sender": "3N9be2mwrA52WJho6DiesZkk4351GvpnWuj", "senderPublicKey": "6mzmbCza9iqbzxMEELcEA4Xc9NeF4CYpbTtz1zMK3C7x", "proofs": [ "3ZtSMSEXUBFiMFEN2LELWrLjLoEoPqzqvfs6SwsLjEnZRGQN6HnvapZSvSJwMZqM9TBh5XfFqH6P44QxpaGTm8Bk", "4VXwX4W2rZtxrqyXeByPKJMLwEWReo8E9ab3Y2bZv47aNDNhCDKWgpTjRdRfokJxY9m4FjRkjhKWgaTjdDa1d7gM", "5Zoxs3A27HFU3CrDBPpSXE8AMLCzuB4Q1mmreLuad7XuXMiMC4vD4gPjSd1N4814qmEwS7id4JkqSYJA8AEL5n7c" ], "script": "base64:AAIFAAAAAAAAADwIAhIGCgQIAQgIEg4KDAgICAgICAEBAQEBARIFCgMICAESABIAEgUKAwgBCBIAEgQKAgEIEgASBAoCCAEAAAB0AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5BwEAAAAYZ2V0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AAAAAQAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAgAAAAAAAAAAAQAAAAAAAAAAAAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAADCQACWQAAAAEJAAGRAAAAAgUAAAAQcHViS2V5QWRtaW5zTGlzdAAAAAAAAAAAAwAAAAAAAAAAAgAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFVNwb25zb3JGZWVUcmFuc2FjdGlvbgQAAAAJc3BvbnNvclR4BQAAAAckbWF0Y2gwAwkBAAAAG2NoZWNrSXNWYWxpZE1pblNwb25zb3JlZEZlZQAAAAEFAAAACXNwb25zb3JUeAkAAGcAAAACBQAAAAVjb3VudAAAAAAAAAAAAwcJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAANDUScN", "chainId": 84, "height": 1967791, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: MvqrafPwemyS2mZG4Y4v8ByfvujrT3FYw4CmwAB6tRG Next: BzHtZBJmtJt9EmiZF2JjcbMFmXhkZRHnSZJYGRRmTpqc Diff:
OldNewDifferences
3838 func asInt (val) = match val {
3939 case valInt: Int =>
4040 valInt
41+ case _ =>
42+ throw("fail to cast into Int")
43+}
44+
45+
46+func asSwapParamsSTRUCT (val) = match val {
47+ case struct: (Int, Int, Int, Int, Int) =>
48+ struct
4149 case _ =>
4250 throw("fail to cast into Int")
4351 }
353361 }
354362
355363
356-func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapLimit) = {
364+func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapParamsByUserSYSREADONLY) = {
365+ let $t01560515685 = swapParamsByUserSYSREADONLY
366+ let swapLimitMax = $t01560515685._1
367+ let swapLimitSpent = $t01560515685._2
368+ let blcks2LmtReset = $t01560515685._3
357369 let minSwapAmount = minSwapAmountREAD(swapType)
358370 let totalLocked = totalLockedREAD(swapType)
359371 let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr)
360372 let nodeAddress = getStakingNodeByIndex(0)
361373 let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex))
362374 let isSwapByNode = (nodeAddress == userAddressStr)
363- let minBlocksBetweenSwaps = swapsTimeframeREAD()
364- let amountCheck = if ((minSwapAmount > pmtAmount))
375+ let balanceLockMaxInterval = if (isSwapByNode)
376+ then nodeBalanceLockIntervalREAD()
377+ else balanceLockIntervalREAD(swapType)
378+ let selfUnlockHeight = (height + balanceLockMaxInterval)
379+ let swapUsdnVolume = if ((swapType == "neutrino"))
380+ then pmtAmount
381+ else convertWavesToNeutrino(pmtAmount, priceByIndex)
382+ if ((minSwapAmount > pmtAmount))
365383 then minSwapAmountFAIL(swapType, minSwapAmount)
366- else true
367- if ((amountCheck == amountCheck))
368- then {
369- let balanceLockMaxInterval = if (isSwapByNode)
370- then nodeBalanceLockIntervalREAD()
371- else balanceLockIntervalREAD(swapType)
372- let selfUnlockHeight = (height + balanceLockMaxInterval)
373- let swapUsdnVolume = if ((swapType == "neutrino"))
374- then pmtAmount
375- else convertWavesToNeutrino(pmtAmount, priceByIndex)
376- let validateNodeIsCaller = if (isSwapByNode)
377- then true
378- else {
379- let lastSwapHeight = getNumberByKey(keyUserLastSwapHeight(userAddressStr))
380- if ((minBlocksBetweenSwaps > (height - lastSwapHeight)))
381- then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((lastSwapHeight + minBlocksBetweenSwaps))))
382- else if ((swapUsdnVolume > swapLimit))
383- then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimit)))
384- else true
385- }
386- if ((validateNodeIsCaller == validateNodeIsCaller))
387- then if (isBlocked)
384+ else if (if (!(isSwapByNode))
385+ then (swapLimitSpent > 0)
386+ else false)
387+ then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset))))
388+ else if (if (!(isSwapByNode))
389+ then (swapUsdnVolume > swapLimitMax)
390+ else false)
391+ then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax)))
392+ else if (isBlocked)
388393 then emergencyShutdownFAIL()
389394 else {
390395 let leasePart = if ((swapType == "waves"))
392397 else nil
393398 $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)
394399 }
395- else throw("Strict value is not equal to itself.")
396- }
397- else throw("Strict value is not equal to itself.")
398400 }
399401
400402
491493 else {
492494 let userAddress = toString(i.caller)
493495 let txId58 = toBase58String(i.transactionId)
494- let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddress)), 0)
495- let swapLimit = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [userGNsbtAmount], nil))
496- let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapLimit)
496+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
497+ let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
497498 commonSwapResult
498499 }
499500 }
508509 else {
509510 let userAddress = toString(i.caller)
510511 let txId58 = toBase58String(i.transactionId)
511- let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddress)), 0)
512- let swapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [userGNsbtAmount], nil))
513- let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapLimitTotal)
512+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
513+ let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
514514 commonSwapResult
515515 }
516516 }
560560 else $Tuple2(prepareUnleaseAndLease(0), "success")
561561
562562
563+
564+@Callable(i)
565+func swapParamsByUserSYSREADONLY (userAddressStr,nsbtDiff) = {
566+ let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStr], nil))
567+ if ((nsbtData == nsbtData))
568+ then {
569+ let gnsbtAmt = (asInt(nsbtData[0]) + nsbtDiff)
570+ let gnsbtAmtTotal = (asInt(nsbtData[1]) + nsbtDiff)
571+ let swapLimitMax = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil))
572+ let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0)
573+ let swapLimitTimelifeBlocks = swapsTimeframeREAD()
574+ let passedBlocksAfterLastSwap = (height - lastSwapHeight)
575+ let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks)
576+ let swapLimitSpent = if (isSwapTimelifeNew)
577+ then 0
578+ else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0)
579+ let blcks2LmtReset = if (isSwapTimelifeNew)
580+ then 0
581+ else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap)
582+ $Tuple2(nil, $Tuple5(swapLimitMax, swapLimitSpent, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal))
583+ }
584+ else throw("Strict value is not equal to itself.")
585+ }
586+
587+
563588 @Verifier(tx)
564589 func verify () = {
565590 let id = toBase58String(tx.id)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0)
55
66
77 func getStringByKey (key) = valueOrElse(getString(this, key), "")
88
99
1010 func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false)
1111
1212
1313 func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0)
1414
1515
1616 func getStringByAddressAndKey (address,key) = valueOrElse(getString(addressFromStringValue(address), key), "")
1717
1818
1919 func getBoolByAddressAndKey (address,key) = valueOrElse(getBoolean(addressFromStringValue(address), key), false)
2020
2121
2222 func asAnyList (val) = match val {
2323 case valAnyLyst: List[Any] =>
2424 valAnyLyst
2525 case _ =>
2626 throw("fail to cast into List[Any]")
2727 }
2828
2929
3030 func asString (val) = match val {
3131 case valStr: String =>
3232 valStr
3333 case _ =>
3434 throw("fail to cast into String")
3535 }
3636
3737
3838 func asInt (val) = match val {
3939 case valInt: Int =>
4040 valInt
41+ case _ =>
42+ throw("fail to cast into Int")
43+}
44+
45+
46+func asSwapParamsSTRUCT (val) = match val {
47+ case struct: (Int, Int, Int, Int, Int) =>
48+ struct
4149 case _ =>
4250 throw("fail to cast into Int")
4351 }
4452
4553
4654 let pubKeyAdminsList = ["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"]
4755
4856 let SEP = "__"
4957
5058 let WAVELET = 100000000
5159
5260 let PAULI = 1000000
5361
5462 let PRICELET = 1000000
5563
5664 let DEFAULTSWAPFEE = 20000
5765
5866 let IdxNetAmount = 0
5967
6068 let IdxFeeAmount = 1
6169
6270 let IdxGrossAmount = 2
6371
6472 let NeutrinoAssetIdKey = "neutrino_asset_id"
6573
6674 let BondAssetIdKey = "bond_asset_id"
6775
6876 let AuctionContractKey = "auction_contract"
6977
7078 let NsbtStakingContractKey = "nsbtStakingContract"
7179
7280 let LiquidationContractKey = "liquidation_contract"
7381
7482 let RPDContractKey = "rpd_contract"
7583
7684 let ContolContractKey = "control_contract"
7785
7886 let MathContractKey = "math_contract"
7987
8088 let BalanceWavesLockIntervalKey = "balance_waves_lock_interval"
8189
8290 let BalanceNeutrinoLockIntervalKey = "balance_neutrino_lock_interval"
8391
8492 let MinWavesSwapAmountKey = "min_waves_swap_amount"
8593
8694 let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount"
8795
8896 let NodeOracleProviderPubKeyKey = "node_oracle_provider"
8997
9098 let NeutrinoOutFeePartKey = "neutrinoOut_swap_feePart"
9199
92100 let WavesOutFeePartKey = "wavesOut_swap_feePart"
93101
94102 let FeesManagerAddressKey = "fees_manager_address"
95103
96104 let PriceKey = "price"
97105
98106 let PriceIndexKey = "price_index"
99107
100108 let IsBlockedKey = "is_blocked"
101109
102110 func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block))
103111
104112
105113 func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index))
106114
107115
108116 func getStakingNodeByIndex (idx) = getStringByKey(makeString(["%s%d%s", "lease", toString(idx), "nodeAddress"], SEP))
109117
110118
111119 func getStakingNodeAddressByIndex (idx) = addressFromStringValue(getStakingNodeByIndex(idx))
112120
113121
114122 func getReservedAmountForSponsorship () = valueOrElse(getInteger(this, makeString(["%s%s", "lease", "sponsorshipWavesReserve"], SEP)), (1000 * WAVELET))
115123
116124
117125 func getBalanceUnlockBlockKey (owner) = ("balance_unlock_block_" + owner)
118126
119127
120128 func getLeaseIdKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "id"], SEP)
121129
122130
123131 func getLeaseAmountKey (nodeIndex) = makeString(["%s%d%s", "lease", toString(nodeIndex), "amount"], SEP)
124132
125133
126134 func minSwapAmountKEY (swapType) = (("min_" + swapType) + "_swap_amount")
127135
128136
129137 func totalLockedKEY (swapType) = ("balance_lock_" + swapType)
130138
131139
132140 func totalLockedByUserKEY (swapType,owner) = makeString(["balance_lock", swapType, owner], "_")
133141
134142
135143 func balanceLockIntervalKEY (swapType) = (("balance_" + swapType) + "_lock_interval")
136144
137145
138146 func nodeBalanceLockIntervalKEY () = "balance_node_lock_interval"
139147
140148
141149 func outFeePartKEY (swapType) = (swapType + "Out_swap_feePart")
142150
143151
144152 func swapsTimeframeKEY () = "swaps_timeframe"
145153
146154
147155 func minSwapAmountREAD (swapType) = valueOrElse(getInteger(this, minSwapAmountKEY(swapType)), 0)
148156
149157
150158 func swapsTimeframeREAD () = valueOrElse(getInteger(this, swapsTimeframeKEY()), 1440)
151159
152160
153161 func totalLockedREAD (swapType) = valueOrElse(getInteger(this, totalLockedKEY(swapType)), 0)
154162
155163
156164 func totalLockedByUserREAD (swapType,owner) = valueOrElse(getInteger(this, totalLockedByUserKEY(swapType, owner)), 0)
157165
158166
159167 func balanceLockIntervalREAD (swapType) = valueOrElse(getInteger(this, balanceLockIntervalKEY(swapType)), 1440)
160168
161169
162170 func nodeBalanceLockIntervalREAD () = valueOrElse(getInteger(this, nodeBalanceLockIntervalKEY()), 1)
163171
164172
165173 func keySwapUserSpentInPeriod (userAddress) = makeString(["%s%s", "swapUserSpentInPeriod", userAddress], SEP)
166174
167175
168176 func keyUserLastSwapHeight (userAddress) = makeString(["%s%s", "userLastSwapHeight", userAddress], SEP)
169177
170178
171179 func feeManagerAddressREAD () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, FeesManagerAddressKey), (FeesManagerAddressKey + " is not specified"))), (FeesManagerAddressKey + " invalid address format"))
172180
173181
174182 func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), WAVELET, PAULI)
175183
176184
177185 func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), PAULI, WAVELET)
178186
179187
180188 func convertWavesToBond (amount,price) = convertWavesToNeutrino(amount, price)
181189
182190
183191 func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
184192
185193
186194 func minSwapAmountFAIL (swapType,minSwapAmount) = throw(((("The specified amount in " + swapType) + " swap is less than the required minimum of ") + toString(minSwapAmount)))
187195
188196
189197 func emergencyShutdownFAIL () = throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
190198
191199
192200 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)))
193201
194202
195203 let liquidationContract = getStringByKey(LiquidationContractKey)
196204
197205 let nsbtStakingContractStr = getStringByKey(NsbtStakingContractKey)
198206
199207 let neutrinoAssetId = fromBase58String(getStringByKey(NeutrinoAssetIdKey))
200208
201209 let auctionContract = getStringByKey(AuctionContractKey)
202210
203211 let rpdContract = getStringByKey(RPDContractKey)
204212
205213 let controlContract = getStringByKey(ContolContractKey)
206214
207215 let mathContractAddress = getStringByKey(MathContractKey)
208216
209217 let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey)
210218
211219 let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey)
212220
213221 let nodeOracleProviderPubKey = fromBase58String(getStringByKey(NodeOracleProviderPubKeyKey))
214222
215223 let bondAssetId = fromBase58String("F3iaxzruFeKujfVfYSZEkejpjh67wmRfPCRHiNmWKp3Z")
216224
217225 let deprecatedBondAssetId = fromBase58String("975akZBfnMj513U7MZaHKzQrmsEx5aE3wdWKTrHBhbjF")
218226
219227 let neutrinoContract = this
220228
221229 let mathContract = addressFromStringValue(mathContractAddress)
222230
223231 let nsbtStakingContract = addressFromStringValue(nsbtStakingContractStr)
224232
225233 let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey)
226234
227235 func checkIsValidMinSponsoredFee (tx) = {
228236 let MINTRANSFERFEE = 100000
229237 let SponsoredFeeUpperBound = 1000
230238 let realNeutrinoFee = convertWavesToNeutrino(MINTRANSFERFEE, currentPrice)
231239 let minNeutrinoFee = (realNeutrinoFee * 2)
232240 let maxNeutrinoFee = fraction(realNeutrinoFee, SponsoredFeeUpperBound, 100)
233241 let inputFee = value(tx.minSponsoredAssetFee)
234242 if (if ((inputFee >= minNeutrinoFee))
235243 then (maxNeutrinoFee >= inputFee)
236244 else false)
237245 then (tx.assetId == neutrinoAssetId)
238246 else false
239247 }
240248
241249
242250 func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block))
243251
244252
245253 func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index))
246254
247255
248256 func keyLockParamUserAmount (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "amount"], SEP)
249257
250258
251259 let sIdxSwapType = 1
252260
253261 let sIdxStatus = 2
254262
255263 let sIdxInAmount = 3
256264
257265 let sIdxPrice = 4
258266
259267 let sIdxOutNetAmount = 5
260268
261269 let sIdxOutFeeAmount = 6
262270
263271 let sIdxStartHeight = 7
264272
265273 let sIdxStartTimestamp = 8
266274
267275 let sIdxEndHeight = 9
268276
269277 let sIdxEndTimestamp = 10
270278
271279 let sIdxSelfUnlockHeight = 11
272280
273281 let sIdxRandUnlockHeight = 12
274282
275283 let sIdxIndex = 13
276284
277285 let sIdxWithdrawTxId = 14
278286
279287 let sIdxMinRand = 15
280288
281289 let sIdxMaxRand = 16
282290
283291 func swapKEY (userAddress,txId) = makeString(["%s%s", userAddress, txId], SEP)
284292
285293
286294 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)
287295
288296
289297 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")
290298
291299
292300 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])
293301
294302
295303 func swapDataFailOrREAD (userAddress,swapTxId) = {
296304 let swapKey = swapKEY(userAddress, swapTxId)
297305 split(valueOrErrorMessage(getString(this, swapKey), ("no swap data for " + swapKey)), SEP)
298306 }
299307
300308
301309 func applyFees (amountGross,feePart) = {
302310 let feeAmount = fraction(amountGross, feePart, PAULI)
303311 [(amountGross - feeAmount), feeAmount, amountGross]
304312 }
305313
306314
307315 func abs (x) = if ((0 > x))
308316 then -(x)
309317 else x
310318
311319
312320 func selectNode (unleaseAmount) = {
313321 let amountToLease = ((wavesBalance(neutrinoContract).available - unleaseAmount) - getReservedAmountForSponsorship())
314322 let oldLeased0 = getNumberByKey(getLeaseAmountKey(0))
315323 let oldLeased1 = getNumberByKey(getLeaseAmountKey(1))
316324 let newLeased0 = (amountToLease + oldLeased0)
317325 let newLeased1 = (amountToLease + oldLeased1)
318326 if (if ((newLeased0 > 0))
319327 then true
320328 else (newLeased1 > 0))
321329 then {
322330 let delta0 = abs((newLeased0 - oldLeased1))
323331 let delta1 = abs((newLeased1 - oldLeased0))
324332 if ((delta1 >= delta0))
325333 then $Tuple2(0, newLeased0)
326334 else $Tuple2(1, newLeased1)
327335 }
328336 else $Tuple2(-1, 0)
329337 }
330338
331339
332340 func thisOnly (i) = if ((i.caller != this))
333341 then throw("Permission denied: this contract only allowed")
334342 else true
335343
336344
337345 func prepareUnleaseAndLease (unleaseAmount) = {
338346 let nodeTuple = selectNode(unleaseAmount)
339347 let nodeIndex = nodeTuple._1
340348 let newLeaseAmount = nodeTuple._2
341349 if ((newLeaseAmount > 0))
342350 then {
343351 let leaseIdKey = getLeaseIdKey(nodeIndex)
344352 let oldLease = getBinary(this, leaseIdKey)
345353 let unleaseOrEmpty = if (isDefined(oldLease))
346354 then [LeaseCancel(value(oldLease))]
347355 else nil
348356 let leaseAmountKey = getLeaseAmountKey(nodeIndex)
349357 let lease = Lease(getStakingNodeAddressByIndex(nodeIndex), newLeaseAmount)
350358 (unleaseOrEmpty ++ [lease, BinaryEntry(leaseIdKey, calculateLeaseId(lease)), IntegerEntry(getLeaseAmountKey(nodeIndex), newLeaseAmount)])
351359 }
352360 else nil
353361 }
354362
355363
356-func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapLimit) = {
364+func commonSwap (swapType,pmtAmount,userAddressStr,txId58,swapParamsByUserSYSREADONLY) = {
365+ let $t01560515685 = swapParamsByUserSYSREADONLY
366+ let swapLimitMax = $t01560515685._1
367+ let swapLimitSpent = $t01560515685._2
368+ let blcks2LmtReset = $t01560515685._3
357369 let minSwapAmount = minSwapAmountREAD(swapType)
358370 let totalLocked = totalLockedREAD(swapType)
359371 let totalLockedByUser = totalLockedByUserREAD(swapType, userAddressStr)
360372 let nodeAddress = getStakingNodeByIndex(0)
361373 let priceByIndex = getPriceHistory(getHeightPriceByIndex(priceIndex))
362374 let isSwapByNode = (nodeAddress == userAddressStr)
363- let minBlocksBetweenSwaps = swapsTimeframeREAD()
364- let amountCheck = if ((minSwapAmount > pmtAmount))
375+ let balanceLockMaxInterval = if (isSwapByNode)
376+ then nodeBalanceLockIntervalREAD()
377+ else balanceLockIntervalREAD(swapType)
378+ let selfUnlockHeight = (height + balanceLockMaxInterval)
379+ let swapUsdnVolume = if ((swapType == "neutrino"))
380+ then pmtAmount
381+ else convertWavesToNeutrino(pmtAmount, priceByIndex)
382+ if ((minSwapAmount > pmtAmount))
365383 then minSwapAmountFAIL(swapType, minSwapAmount)
366- else true
367- if ((amountCheck == amountCheck))
368- then {
369- let balanceLockMaxInterval = if (isSwapByNode)
370- then nodeBalanceLockIntervalREAD()
371- else balanceLockIntervalREAD(swapType)
372- let selfUnlockHeight = (height + balanceLockMaxInterval)
373- let swapUsdnVolume = if ((swapType == "neutrino"))
374- then pmtAmount
375- else convertWavesToNeutrino(pmtAmount, priceByIndex)
376- let validateNodeIsCaller = if (isSwapByNode)
377- then true
378- else {
379- let lastSwapHeight = getNumberByKey(keyUserLastSwapHeight(userAddressStr))
380- if ((minBlocksBetweenSwaps > (height - lastSwapHeight)))
381- then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((lastSwapHeight + minBlocksBetweenSwaps))))
382- else if ((swapUsdnVolume > swapLimit))
383- then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimit)))
384- else true
385- }
386- if ((validateNodeIsCaller == validateNodeIsCaller))
387- then if (isBlocked)
384+ else if (if (!(isSwapByNode))
385+ then (swapLimitSpent > 0)
386+ else false)
387+ then throw(("You have exceeded swap limit! Next allowed swap height is " + toString((height + blcks2LmtReset))))
388+ else if (if (!(isSwapByNode))
389+ then (swapUsdnVolume > swapLimitMax)
390+ else false)
391+ then throw(((("You have exceeded your swap limit! Requested: " + toString(swapUsdnVolume)) + ", available: ") + toString(swapLimitMax)))
392+ else if (isBlocked)
388393 then emergencyShutdownFAIL()
389394 else {
390395 let leasePart = if ((swapType == "waves"))
391396 then prepareUnleaseAndLease(0)
392397 else nil
393398 $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)
394399 }
395- else throw("Strict value is not equal to itself.")
396- }
397- else throw("Strict value is not equal to itself.")
398400 }
399401
400402
401403 @Callable(i)
402404 func commonWithdraw (account,index,swapTxId,withdrawTxId) = {
403405 let checkCaller = thisOnly(i)
404406 if ((checkCaller == checkCaller))
405407 then {
406408 let userAddress = addressFromStringValue(account)
407409 let feeManagerAddress = feeManagerAddressREAD()
408410 let dataArray = swapDataFailOrREAD(account, swapTxId)
409411 let selfUnlockHeight = parseIntValue(dataArray[sIdxSelfUnlockHeight])
410412 let swapType = dataArray[sIdxSwapType]
411413 let inAmount = parseIntValue(dataArray[sIdxInAmount])
412414 let swapStatus = dataArray[sIdxStatus]
413415 let startHeight = parseIntValue(dataArray[sIdxStartHeight])
414416 let outFeePart = valueOrElse(getInteger(this, outFeePartKEY(swapType)), DEFAULTSWAPFEE)
415417 let totalLocked = totalLockedREAD(swapType)
416418 let totalLockedByUser = totalLockedByUserREAD(swapType, account)
417419 let unlockHeight = (startHeight + getIntegerValue(this, balanceLockIntervalKEY(swapType)))
418420 let indexHeight = getHeightPriceByIndex(index)
419421 let prevIndexHeight = getHeightPriceByIndex((index - 1))
420422 let priceByIndex = getPriceHistory(indexHeight)
421423 let outAmountGrossTuple = if ((swapType == "waves"))
422424 then $Tuple2(convertWavesToNeutrino(inAmount, priceByIndex), neutrinoAssetId)
423425 else if ((swapType == "neutrino"))
424426 then $Tuple2(convertNeutrinoToWaves(inAmount, priceByIndex), unit)
425427 else throw(("Unsupported swap type " + swapType))
426428 let payoutsArray = applyFees(outAmountGrossTuple._1, outFeePart)
427429 let outNetAmount = payoutsArray[IdxNetAmount]
428430 let outFeeAmount = payoutsArray[IdxFeeAmount]
429431 if (isBlocked)
430432 then emergencyShutdownFAIL()
431433 else if ((swapStatus != "PENDING"))
432434 then throw("swap has been already processed")
433435 else if ((unlockHeight > height))
434436 then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw funds"))
435437 else if (if (if ((index > priceIndex))
436438 then true
437439 else (unlockHeight > indexHeight))
438440 then true
439441 else if ((prevIndexHeight != 0))
440442 then (prevIndexHeight >= unlockHeight)
441443 else false)
442444 then priceIndexFAIL(index, priceIndex, indexHeight, unlockHeight, prevIndexHeight)
443445 else if ((0 >= payoutsArray[IdxGrossAmount]))
444446 then throw("balance equals zero")
445447 else if (if ((0 > outFeePart))
446448 then true
447449 else (outFeePart >= PAULI))
448450 then throw(((("invalid outFeePart config for " + swapType) + " swap: outFeePart=") + toString(outFeePart)))
449451 else {
450452 let leasePart = if (if ((swapType == "neutrino"))
451453 then (outAmountGrossTuple._1 > 0)
452454 else false)
453455 then prepareUnleaseAndLease(outAmountGrossTuple._1)
454456 else nil
455457 let nsbtStakingDeposit = invoke(nsbtStakingContract, "deposit", nil, [AttachedPayment(outAmountGrossTuple._2, outFeeAmount)])
456458 if ((nsbtStakingDeposit == nsbtStakingDeposit))
457459 then $Tuple2((leasePart ++ [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, toBase58String(i.transactionId)))]), unit)
458460 else throw("Strict value is not equal to itself.")
459461 }
460462 }
461463 else throw("Strict value is not equal to itself.")
462464 }
463465
464466
465467
466468 @Callable(i)
467469 func constructor (neutrinoAssetIdPrm,bondAssetIdPrm,auctionContractPrm,liquidationContractPrm,rpdContractPrm,nodeOracleProviderPubKeyPrm,balanceWavesLockIntervalPrm,balanceNeutrinoLockIntervalPrm,minWavesSwapAmountPrm,minNeutrinoSwapAmountPrm,neutrinoOutFeePartPrm,wavesOutFeePartPrm) = {
468470 let checkCaller = thisOnly(i)
469471 if ((checkCaller == checkCaller))
470472 then [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)]
471473 else throw("Strict value is not equal to itself.")
472474 }
473475
474476
475477
476478 @Callable(i)
477479 func constructorV2 (mathContract,nsbtStakingContract,swapsTimeframeBlocks) = {
478480 let checkCaller = thisOnly(i)
479481 if ((checkCaller == checkCaller))
480482 then [StringEntry(MathContractKey, mathContract), StringEntry(NsbtStakingContractKey, nsbtStakingContract), IntegerEntry(swapsTimeframeKEY(), swapsTimeframeBlocks)]
481483 else throw("Strict value is not equal to itself.")
482484 }
483485
484486
485487
486488 @Callable(i)
487489 func swapWavesToNeutrino () = {
488490 let pmt = value(i.payments[0])
489491 if (isDefined(pmt.assetId))
490492 then throw("Only Waves token is allowed for swapping.")
491493 else {
492494 let userAddress = toString(i.caller)
493495 let txId58 = toBase58String(i.transactionId)
494- let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddress)), 0)
495- let swapLimit = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [userGNsbtAmount], nil))
496- let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapLimit)
496+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
497+ let commonSwapResult = commonSwap("waves", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
497498 commonSwapResult
498499 }
499500 }
500501
501502
502503
503504 @Callable(i)
504505 func swapNeutrinoToWaves () = {
505506 let pmt = value(i.payments[0])
506507 if ((pmt.assetId != neutrinoAssetId))
507508 then throw("Only appropriate Neutrino tokens are allowed for swapping.")
508509 else {
509510 let userAddress = toString(i.caller)
510511 let txId58 = toBase58String(i.transactionId)
511- let userGNsbtAmount = valueOrElse(getInteger(nsbtStakingContract, keyLockParamUserAmount(userAddress)), 0)
512- let swapLimitTotal = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [userGNsbtAmount], nil))
513- let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapLimitTotal)
512+ let swapParamsSTRUCT = asSwapParamsSTRUCT(invoke(this, "swapParamsByUserSYSREADONLY", [userAddress, 0], nil))
513+ let commonSwapResult = commonSwap("neutrino", pmt.amount, userAddress, txId58, swapParamsSTRUCT)
514514 commonSwapResult
515515 }
516516 }
517517
518518
519519
520520 @Callable(i)
521521 func withdraw (account,index,swapTxId) = {
522522 let commonWithdrawInv = invoke(this, "commonWithdraw", [account, index, swapTxId, toBase58String(i.transactionId)], nil)
523523 if ((commonWithdrawInv == commonWithdrawInv))
524524 then nil
525525 else throw("Strict value is not equal to itself.")
526526 }
527527
528528
529529
530530 @Callable(i)
531531 func transferToAuction () = {
532532 let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil))
533533 let reserve = asInt(neutrinoMetrics[3])
534534 let neutrinoSupply = asInt(neutrinoMetrics[5])
535535 let surplus = asInt(neutrinoMetrics[6])
536536 let nsbtSupply = asInt(neutrinoMetrics[9])
537537 let auctionNBAmount = (neutrinoSupply - assetBalance(addressFromStringValue(auctionContract), bondAssetId))
538538 let surplusWithLiquidation = (surplus - assetBalance(addressFromStringValue(liquidationContract), neutrinoAssetId))
539539 if (isBlocked)
540540 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
541541 else if ((auctionNBAmount > (1 * PAULI)))
542542 then [ScriptTransfer(addressFromStringValue(auctionContract), auctionNBAmount, bondAssetId)]
543543 else if ((surplusWithLiquidation >= (1 * PAULI)))
544544 then [ScriptTransfer(addressFromStringValue(liquidationContract), surplusWithLiquidation, neutrinoAssetId)]
545545 else throw(((((((("bond were generated or do not need it. Deficit:" + toString(auctionNBAmount)) + "|") + toString(0)) + ". Surplus:") + toString(surplusWithLiquidation)) + "|") + toString(surplus)))
546546 }
547547
548548
549549
550550 @Callable(i)
551551 func transferUsdnToUser (amount,addr) = if ((i.caller != addressFromStringValue(auctionContract)))
552552 then throw("Only auction contract is authorized")
553553 else [ScriptTransfer(addressFromStringValue(addr), amount, neutrinoAssetId)]
554554
555555
556556
557557 @Callable(i)
558558 func acceptWaves () = if ((i.caller != addressFromStringValue(auctionContract)))
559559 then throw("Currently only auction contract is allowed to call")
560560 else $Tuple2(prepareUnleaseAndLease(0), "success")
561561
562562
563+
564+@Callable(i)
565+func swapParamsByUserSYSREADONLY (userAddressStr,nsbtDiff) = {
566+ let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStr], nil))
567+ if ((nsbtData == nsbtData))
568+ then {
569+ let gnsbtAmt = (asInt(nsbtData[0]) + nsbtDiff)
570+ let gnsbtAmtTotal = (asInt(nsbtData[1]) + nsbtDiff)
571+ let swapLimitMax = asInt(invoke(mathContract, "calcSwapLimitREADONLY", [gnsbtAmt], nil))
572+ let lastSwapHeight = valueOrElse(getInteger(this, keyUserLastSwapHeight(userAddressStr)), 0)
573+ let swapLimitTimelifeBlocks = swapsTimeframeREAD()
574+ let passedBlocksAfterLastSwap = (height - lastSwapHeight)
575+ let isSwapTimelifeNew = (passedBlocksAfterLastSwap >= swapLimitTimelifeBlocks)
576+ let swapLimitSpent = if (isSwapTimelifeNew)
577+ then 0
578+ else valueOrElse(getInteger(this, keySwapUserSpentInPeriod(userAddressStr)), 0)
579+ let blcks2LmtReset = if (isSwapTimelifeNew)
580+ then 0
581+ else (swapLimitTimelifeBlocks - passedBlocksAfterLastSwap)
582+ $Tuple2(nil, $Tuple5(swapLimitMax, swapLimitSpent, blcks2LmtReset, gnsbtAmt, gnsbtAmtTotal))
583+ }
584+ else throw("Strict value is not equal to itself.")
585+ }
586+
587+
563588 @Verifier(tx)
564589 func verify () = {
565590 let id = toBase58String(tx.id)
566591 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
567592 then 1
568593 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
569594 then 1
570595 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
571596 then 1
572597 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
573598 then 2
574599 else 0))
575600 match tx {
576601 case sponsorTx: SponsorFeeTransaction =>
577602 if (checkIsValidMinSponsoredFee(sponsorTx))
578603 then (count >= 3)
579604 else false
580605 case _ =>
581606 (count >= 3)
582607 }
583608 }
584609

github/deemru/w8io/169f3d6 
71.52 ms