tx · Ak6Sw71rxMuS9tCgNnvEvpTEsAgwyvfvk99iYHHgFP1q

3MyDtNTkCNyRCw3o2qv5BPPS7vvUosiQe6F:  -0.01400000 Waves

2019.11.18 18:00 [770718] smart account 3MyDtNTkCNyRCw3o2qv5BPPS7vvUosiQe6F > SELF 0.00000000 Waves

{ "type": 13, "id": "Ak6Sw71rxMuS9tCgNnvEvpTEsAgwyvfvk99iYHHgFP1q", "fee": 1400000, "feeAssetId": null, "timestamp": 1574089241449, "version": 1, "sender": "3MyDtNTkCNyRCw3o2qv5BPPS7vvUosiQe6F", "senderPublicKey": "3z5txV1G5GKezwMRCHZDkLThqb1Yggepxvi2wq6iP6oz", "proofs": [ "3MLork8UoLYTWsJCzMRaTdHGizsr9UkaNqTp67BQQrrD2SLbBQuaqaSCrfBXgofhNE9dCg7ip17pxLUUZgULPQj5" ], "script": "base64:AAIDAAAAAAAAACwIARIAEgASBQoDCAEIEgASAwoBCBIAEgYKBAgBAQgSAwoBCBIHCgUICAEBCAAAAGIBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAMZ2V0Qm9vbEJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBwEAAAAYZ2V0TnVt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ACaWQFAAAAA05FVwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFkxlYXNlQ2FuY2VsVHJhbnNhY3Rpb24EAAAACXVubGVhc2VUeAUAAAAHJG1hdGNoMAQAAAAHbGVhc2VJZAkAAlgAAAABCAUAAAAJdW5sZWFzZVR4AAAAB2xlYXNlSWQDAwMJAABmAAAAAgUAAAAGaGVpZ2h0BQAAABJsZWFzaW5nRXhwaXJlQmxvY2sGBQAAAAtpc1JlYmFsYW5jZQkAAAAAAAACCAUAAAAJdW5sZWFzZVR4AAAAA2ZlZQkBAAAAGmdldENhbmNlbExlYXNlVHhSZXNlcnZlRmVlAAAAAQUAAAAHbGVhc2VJZAcJAAAAAAAAAgkBAAAAEGdldExlYXNlVHhTdGF0dXMAAAABBQAAAAdsZWFzZUlkBQAAAANORVcHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRYTJkg=", "chainId": 84, "height": 770718, "spentComplexity": 0 } View: original | compacted Prev: 7pz4Zto5oFkVMu55VJizdhvUkBeES52L4uweQcsfmPo8 Next: 8RumJAyh4zLqXRY71uxucByWVHNgqQqFtxLKWAsKvtGn Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getNumberByKey (key) = match getInteger(this, key) {
55 case a: Int =>
66 a
77 case _ =>
88 0
99 }
1010
1111
1212 func getStringByKey (key) = match getString(this, key) {
1313 case a: String =>
1414 a
1515 case _ =>
1616 ""
1717 }
1818
1919
2020 func getBoolByKey (key) = match getBoolean(this, key) {
2121 case a: Boolean =>
2222 a
2323 case _ =>
2424 false
2525 }
2626
2727
2828 func getNumberByAddressAndKey (address,key) = match getInteger(addressFromStringValue(address), key) {
2929 case a: Int =>
3030 a
3131 case _ =>
3232 0
3333 }
3434
3535
3636 func getStringByAddressAndKey (address,key) = match getString(addressFromStringValue(address), key) {
3737 case a: String =>
3838 a
3939 case _ =>
4040 ""
4141 }
4242
4343
4444 func getBoolByAddressAndKey (address,key) = match getBoolean(addressFromStringValue(address), key) {
4545 case a: Boolean =>
4646 a
4747 case _ =>
4848 false
4949 }
5050
5151
5252 let SENDTXEXPIRE = 30
5353
5454 let LISTSPLITSYMBOL = "_"
5555
5656 let LISTDATASYMBOL = "+"
5757
5858 let WAVELET = 100000000
5959
6060 let PAULI = 100
6161
6262 let CRYTICALSHARE = 20
6363
6464 let LEASINGSHARE = 90
6565
6666 let LEASINTXCOUNT = 10
6767
6868 let DEFICITOFFSET = 10
6969
7070 let WAVESASSETID = "waves"
7171
7272 let CANCELED = "canceled"
7373
7474 let NEW = "new"
7575
7676 let NeutrinoAssetIdKey = "neutrino_asset_id"
7777
7878 let BondAssetIdKey = "bond_asset_id"
7979
8080 let ReserveContractKey = "reserve_contract"
8181
8282 let AuctionContractKey = "auction_contract"
8383
8484 let LiquidationContractKey = "liquidation_contract"
8585
8686 let RPDContractKey = "rpd_contract"
8787
8888 let ContolContractKey = "control_contract"
8989
9090 let BalanceLockIntervalKey = "balance_lock_interval"
9191
9292 let MinWavesSwapAmountKey = "min_waves_swap_amount"
9393
9494 let MinNeutrinoSwapAmountKey = "min_neutrino_swap_amount"
9595
9696 let NodeAddressKey = "node_address"
9797
9898 let NodeOracleProviderKey = "oracle_node_provider"
9999
100100 let LeasingIntervalKey = "leasing_interval"
101101
102102 let RPDBalanceKey = "rpd_balance"
103103
104104 func getRPDContractBalanceKey (assetId) = ((RPDBalanceKey + "_") + toBase58String(assetId))
105105
106106
107107 let PriceKey = "price"
108108
109109 let PriceIndexKey = "price_index"
110110
111111 let IsBlockedKey = "is_blocked"
112112
113113 let LeasingExpireBlockKey = "leasing_expire_block"
114114
115115 let IsRebalanceKey = "is_rebalance"
116116
117117 let LeasingTxCountKey = "leasing_index"
118118
119119 let LeasingAmountKey = "leasing_amount"
120120
121121 func getPriceHistoryKey (block) = ((PriceKey + "_") + toString(block))
122122
123123
124124 func getHeightPriceByIndexKey (index) = ((PriceIndexKey + "_") + toString(index))
125125
126126
127127 let RPDSyncIndexKey = "rpd_sync_index"
128128
129129 func getRPDSnapshotContractBalanceKey (count,assetId) = ((((RPDBalanceKey + "_") + toBase58String(assetId)) + "_") + toString(count))
130130
131131
132132 func getCancelLeaseTxReserveFeeKey (hash) = (("cancel_lease_tx_reserve_fee" + "_") + hash)
133133
134134
135135 func getAccountLockedBalanceKey (owner,assetId) = ((("balance_" + assetId) + "_") + owner)
136136
137137
138138 func getBalanceUnlockBlockKey (owner) = ("balance_block_" + owner)
139139
140140
141141 func getRPDProfitKey (count) = (("rpd_profit" + "_") + toString(count))
142142
143143
144144 func getLockedBalanceKey (assetId) = ("balance_" + assetId)
145145
146146
147147 func getLeaseTxStatusKey (hash) = (("lease_tx_status" + "_") + hash)
148148
149149
150150 func getLeaseTxAmountByHashKey (hash) = ((LeasingAmountKey + "_") + hash)
151151
152152
153153 func getLeaseTxBytesByHashKey (hash) = (("lease_tx" + "_") + hash)
154154
155155
156156 func getLeaseTxExpireSendBlockKey (hash) = (("leasing_expire_send" + "_") + hash)
157157
158158
159159 func convertNeutrinoToWaves (amount,price) = ((((amount * 100) / price) * WAVELET) / PAULI)
160160
161161
162162 func convertWavesToNeutrino (amount,price) = ((((amount * price) / 100) * PAULI) / WAVELET)
163163
164164
165165 func convertNeutrinoToBond (amount) = (amount / PAULI)
166166
167167
168168 func convertBondToNeutrino (amount) = (amount * PAULI)
169169
170170
171171 func convertWavesToBond (amount,price) = convertNeutrinoToBond(convertWavesToNeutrino(amount, price))
172172
173173
174174 func getLockedBalance (assetId) = getNumberByKey(getLockedBalanceKey(assetId))
175175
176176
177177 let liquidationContract = getStringByKey(LiquidationContractKey)
178178
179179 let neutrinoAssetIdString = getStringByKey(NeutrinoAssetIdKey)
180180
181181 let neutrinoAssetId = fromBase58String(neutrinoAssetIdString)
182182
183183 let reserveContract = getStringByKey(ReserveContractKey)
184184
185185 let auctionContract = getStringByKey(AuctionContractKey)
186186
187187 let rpdContract = getStringByKey(RPDContractKey)
188188
189189 let controlContract = getStringByKey(ContolContractKey)
190190
191191 let currentPrice = getNumberByAddressAndKey(controlContract, PriceKey)
192192
193193 let priceIndex = getNumberByAddressAndKey(controlContract, PriceIndexKey)
194194
195195 let isBlocked = getBoolByAddressAndKey(controlContract, IsBlockedKey)
196196
197197 let leasingTxCount = getNumberByKey(LeasingTxCountKey)
198198
199199 let isRebalance = getBoolByKey(IsRebalanceKey)
200200
201201 let leasingInterval = getNumberByKey(LeasingIntervalKey)
202202
203203 let leasingExpireBlock = getNumberByKey(LeasingExpireBlockKey)
204204
205205 let leasingAmount = getNumberByKey(LeasingAmountKey)
206206
207207 let nodeAddress = getStringByKey(NodeAddressKey)
208208
209209 let nodeOracleProviderKey = getStringByKey(NodeOracleProviderKey)
210210
211211 let rpdSyncIndex = getNumberByKey(RPDSyncIndexKey)
212212
213213 let balanceLockInterval = getNumberByKey(BalanceLockIntervalKey)
214214
215215 let minWavesSwapAmount = getNumberByKey(MinWavesSwapAmountKey)
216216
217217 let minNeutrinoSwapAmount = getNumberByKey(MinNeutrinoSwapAmountKey)
218218
219219 let reserve = (wavesBalance(this) - getLockedBalance(WAVESASSETID))
220220
221221 let reserveWithoutLeasing = (reserve - leasingAmount)
222222
223223 let bondAssetId = fromBase58String(getStringByKey(BondAssetIdKey))
224224
225225 let bondSupply = (extract(assetInfo(bondAssetId)).quantity - assetBalance(this, bondAssetId))
226226
227227 let neutrinoSupply = ((extract(assetInfo(neutrinoAssetId)).quantity - assetBalance(this, neutrinoAssetId)) + getLockedBalance(neutrinoAssetIdString))
228228
229229 let surplus = (convertWavesToNeutrino(reserve, currentPrice) - neutrinoSupply)
230230
231231 let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, currentPrice))
232232
233233 func getRPDContractBalance (assetId) = getNumberByAddressAndKey(rpdContract, getRPDContractBalanceKey(assetId))
234234
235235
236236 func getPriceHistory (block) = getNumberByAddressAndKey(controlContract, getPriceHistoryKey(block))
237237
238238
239239 func getHeightPriceByIndex (index) = getNumberByAddressAndKey(controlContract, getHeightPriceByIndexKey(index))
240240
241241
242242 func getCancelLeaseTxReserveFee (hash) = getNumberByKey(getCancelLeaseTxReserveFeeKey(hash))
243243
244244
245245 func getAccountLockedBalance (owner,assetId) = getNumberByKey(getAccountLockedBalanceKey(owner, assetId))
246246
247247
248248 func getUnlockBalanceBlock (owner) = getNumberByKey(getBalanceUnlockBlockKey(owner))
249249
250250
251251 func getRPDProfit (count) = getNumberByKey(getRPDProfitKey(count))
252252
253253
254254 func getLeaseTxStatus (hash) = getStringByKey(getLeaseTxStatusKey(hash))
255255
256256
257257 func getLeaseTxAmountByHash (hash) = getNumberByKey(getLeaseTxAmountByHashKey(hash))
258258
259259
260260 func getLeaseTxBytesByHash (hash) = getStringByKey(getLeaseTxBytesByHashKey(hash))
261261
262262
263263 func getLeaseTxExpireSendBlock (hash) = getNumberByKey(getLeaseTxExpireSendBlockKey(hash))
264264
265265
266266 @Callable(i)
267267 func swapWavesToNeutrino () = {
268268 let pmt = extract(i.payment)
269269 let account = toString(i.caller)
270270 if ((minWavesSwapAmount > pmt.amount))
271271 then throw((("an amount is less than min available amount: " + toString(minWavesSwapAmount)) + " wavelets"))
272272 else if (isDefined(pmt.assetId))
273273 then throw("can use waves only")
274274 else if (isBlocked)
275275 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
276276 else if ((getUnlockBalanceBlock(account) > height))
277277 then throw((("await " + toString((getUnlockBalanceBlock(account) - height))) + " blocks"))
278278 else if ((getAccountLockedBalance(account, WAVESASSETID) != 0))
279279 then throw("please withdraw locked funds first")
280280 else WriteSet([DataEntry(getAccountLockedBalanceKey(account, WAVESASSETID), pmt.amount), DataEntry(getBalanceUnlockBlockKey(account), (height + balanceLockInterval)), DataEntry(getLockedBalanceKey(WAVESASSETID), (getLockedBalance(WAVESASSETID) + pmt.amount))])
281281 }
282282
283283
284284
285285 @Callable(i)
286286 func swapNeutrinoToWaves () = {
287287 let pmt = extract(i.payment)
288288 let account = toString(i.caller)
289289 if ((minNeutrinoSwapAmount > pmt.amount))
290290 then throw((("an amount is less than min available amount: " + toString(minNeutrinoSwapAmount)) + " neutrino cents"))
291291 else if (isBlocked)
292292 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
293293 else if ((pmt.assetId != neutrinoAssetId))
294294 then throw("can use appropriate neutrino tokens only")
295295 else if ((getUnlockBalanceBlock(account) > height))
296296 then throw((("await " + toString((getUnlockBalanceBlock(account) - height))) + " blocks"))
297297 else if ((getAccountLockedBalance(account, neutrinoAssetIdString) != 0))
298298 then throw("please withdraw locked funds first")
299299 else {
300300 let newLockedBalance = (getLockedBalance(neutrinoAssetIdString) + pmt.amount)
301301 WriteSet([DataEntry(getAccountLockedBalanceKey(account, neutrinoAssetIdString), pmt.amount), DataEntry(getBalanceUnlockBlockKey(account), (height + balanceLockInterval)), DataEntry(getLockedBalanceKey(neutrinoAssetIdString), newLockedBalance), DataEntry(IsRebalanceKey, if ((reserveWithoutLeasing >= convertNeutrinoToWaves(newLockedBalance, currentPrice)))
302302 then false
303303 else true)])
304304 }
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func withdraw (account,index,lockedAssetId) = {
311311 let unlockHeight = getUnlockBalanceBlock(account)
312312 let lockedBalance = getAccountLockedBalance(account, lockedAssetId)
313313 let indexHeight = getHeightPriceByIndex(index)
314314 let nextIndexHeight = getHeightPriceByIndex((index + 1))
315315 let priceByIndex = getPriceHistory(indexHeight)
316316 let amount = if ((lockedAssetId == neutrinoAssetIdString))
317317 then convertNeutrinoToWaves(lockedBalance, priceByIndex)
318318 else convertWavesToNeutrino(lockedBalance, priceByIndex)
319319 if (isBlocked)
320320 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
321321 else if ((0 >= amount))
322322 then throw((("balance equals zero (" + lockedAssetId) + ")"))
323323 else if ((unlockHeight > height))
324324 then throw((("please wait for: " + toString(unlockHeight)) + " block height to withdraw WAVES funds"))
325325 else if (if (if ((index > priceIndex))
326326 then true
327327 else (indexHeight > unlockHeight))
328328 then true
329329 else if ((nextIndexHeight != 0))
330330 then (unlockHeight >= nextIndexHeight)
331331 else false)
332332 then throw("invalid price history index")
333333 else ScriptResult(WriteSet([DataEntry(getAccountLockedBalanceKey(account, lockedAssetId), 0), DataEntry(getLockedBalanceKey(lockedAssetId), (getLockedBalance(lockedAssetId) - lockedBalance))]), TransferSet([ScriptTransfer(addressFromStringValue(account), amount, if ((lockedAssetId == neutrinoAssetIdString))
334334 then unit
335335 else neutrinoAssetId)]))
336336 }
337337
338338
339339
340340 @Callable(i)
341341 func transferToAuction () = {
342342 let deficitBondAmount = (convertNeutrinoToBond(deficit) - assetBalance(addressFromStringValue(auctionContract), bondAssetId))
343343 let surplusBond = (convertNeutrinoToBond(surplus) - assetBalance(addressFromStringValue(auctionContract), neutrinoAssetId))
344344 if (isBlocked)
345345 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
346346 else if ((deficitBondAmount >= ((convertNeutrinoToBond(neutrinoSupply) * DEFICITOFFSET) / 100)))
347347 then TransferSet([ScriptTransfer(addressFromStringValue(auctionContract), deficitBondAmount, bondAssetId)])
348348 else if ((surplusBond > 0))
349349 then TransferSet([ScriptTransfer(addressFromStringValue(liquidationContract), convertBondToNeutrino(surplusBond), neutrinoAssetId)])
350350 else throw("bond were generated or do not need it")
351351 }
352352
353353
354354
355355 @Callable(i)
356356 func transfer (account) = {
357357 let pmt = extract(i.payment)
358358 TransferSet([ScriptTransfer(addressFromStringValue(account), pmt.amount, pmt.assetId)])
359359 }
360360
361361
362362
363363 @Callable(i)
364364 func nodeReward () = {
365365 let pmt = value(i.payment)
366366 if ((i.caller != addressFromStringValue(nodeAddress)))
367367 then throw("only node account is able to transfer staking rewards from main account")
368368 else if (isDefined(pmt.assetId))
369369 then throw("waves tokens only allowed")
370370 else {
371371 let amount = convertWavesToNeutrino(pmt.amount, currentPrice)
372372 let newRpdSyncIndex = (rpdSyncIndex + 1)
373373 ScriptResult(WriteSet([DataEntry(RPDSyncIndexKey, newRpdSyncIndex), DataEntry(getRPDProfitKey(rpdSyncIndex), amount), DataEntry(getRPDSnapshotContractBalanceKey(rpdSyncIndex, neutrinoAssetId), getRPDContractBalance(neutrinoAssetId))]), TransferSet([ScriptTransfer(addressFromStringValue(rpdContract), amount, neutrinoAssetId)]))
374374 }
375375 }
376376
377377
378378
379379 @Callable(i)
380380 func registrationLeaseTx (senderPublicKey,fee,timestamp,leaseTxHash) = {
381381 let totalFreeReserve = (((reserve * LEASINGSHARE) / 100) - convertNeutrinoToWaves(getLockedBalance(neutrinoAssetIdString), currentPrice))
382382 let amount = (totalFreeReserve / LEASINTXCOUNT)
383383 let txBytes = (((((base58'3h1H' + fromBase58String(senderPublicKey)) + fromBase58String(nodeAddress)) + toBytes(amount)) + toBytes(fee)) + toBytes(timestamp))
384384 let txHashBytes = blake2b256(txBytes)
385385 let txHash = toBase58String(txHashBytes)
386386 let pmt = extract(i.payment)
387387 if ((toString(i.caller) == nodeOracleProviderKey))
388388 then throw("invalid caller")
389389 else if (isDefined(pmt.assetId))
390390 then throw("invalid paymtn asset")
391391 else if ((leaseTxHash != txHash))
392392 then throw((("invalid tx hash(amount:" + toString(amount)) + ")"))
393393 else if ((leasingTxCount >= LEASINTXCOUNT))
394394 then throw("the number of leasing transactions is equal to the maximum")
395395 else if ((this != addressFromPublicKey(fromBase58String(senderPublicKey))))
396396 then throw("invalid pubKey")
397397 else if (if ((lastBlock.timestamp > timestamp))
398398 then true
399399 else (timestamp > (lastBlock.timestamp + 5400000)))
400400 then throw((("invalid timestamp(lastBlock: " + toString(lastBlock.timestamp)) + ")"))
401401 else if ((getLeaseTxStatus(txHash) != ""))
402402 then throw("tx is exist")
403403 else if ((pmt.amount != (fee * 2)))
404404 then throw("invalid payment amount")
405405 else if (if ((fee > 1000000))
406406 then true
407407 else (500000 > fee))
408408 then throw("invalid fee")
409409 else if (((totalFreeReserve - (leasingAmount + amount)) > reserveWithoutLeasing))
410410 then throw((("invalid amount(result:" + toString(((totalFreeReserve - (leasingAmount + amount)) > reserveWithoutLeasing))) + ")"))
411411 else WriteSet([DataEntry(getCancelLeaseTxReserveFeeKey(txHash), fee), DataEntry(LeasingTxCountKey, if ((getLeaseTxStatus(txHash) == ""))
412412 then (leasingTxCount + 1)
413413 else leasingTxCount), DataEntry(LeasingAmountKey, (leasingAmount + amount)), DataEntry(LeasingExpireBlockKey, if ((height > leasingExpireBlock))
414414 then (height + leasingInterval)
415415 else leasingExpireBlock), DataEntry(getLeaseTxStatusKey(txHash), NEW), DataEntry(getLeaseTxExpireSendBlockKey(txHash), (height + SENDTXEXPIRE)), DataEntry(getLeaseTxAmountByHashKey(txHash), amount), DataEntry(getLeaseTxBytesByHashKey(txHash), toBase64String(txBytes))])
416416 }
417417
418418
419419
420420 @Callable(i)
421421 func cancelStuckLeaseTx (txHash) = if (if (if ((getLeaseTxStatus(txHash) == NEW))
422422 then !(isDefined(transactionHeightById(fromBase58String(txHash))))
423423 else false)
424424 then (height > getLeaseTxExpireSendBlock(txHash))
425425 else false)
426426 then {
427427 let amount = getLeaseTxAmountByHash(txHash)
428428 WriteSet([DataEntry(LeasingTxCountKey, (leasingTxCount - 1)), DataEntry(LeasingAmountKey, (leasingAmount - amount)), DataEntry(getLeaseTxStatusKey(txHash), CANCELED), DataEntry(IsRebalanceKey, if (((reserveWithoutLeasing - amount) >= convertNeutrinoToWaves(getLockedBalance(neutrinoAssetIdString), currentPrice)))
429429 then false
430430 else true)])
431431 }
432432 else throw("invalid tx hash")
433433
434434
435435
436436 @Callable(i)
437437 func registrationUnleaseTx (chainIdString,senderPublicKey,fee,timestamp,leaseTxHash) = {
438438 let txBytes = (((((base58'gm' + toBytes(chainIdString)) + fromBase58String(senderPublicKey)) + toBytes(fee)) + toBytes(timestamp)) + fromBase58String(leaseTxHash))
439439 let txHash = blake2b256(txBytes)
440440 if ((getLeaseTxStatus(leaseTxHash) != NEW))
441441 then throw("invalid tx status")
442442 else if ((this != addressFromPublicKey(fromBase58String(senderPublicKey))))
443443 then throw("invalid pubKey")
444444 else if (!(isDefined(transactionHeightById(txHash))))
445445 then throw("blockchain does not contain this transaction")
446446 else {
447447 let amount = getLeaseTxAmountByHash(leaseTxHash)
448448 WriteSet([DataEntry(LeasingTxCountKey, (leasingTxCount - 1)), DataEntry(LeasingAmountKey, (leasingAmount - amount)), DataEntry(getLeaseTxStatusKey(leaseTxHash), CANCELED), DataEntry(IsRebalanceKey, if (((reserveWithoutLeasing - amount) >= convertNeutrinoToWaves(getLockedBalance(neutrinoAssetIdString), currentPrice)))
449449 then false
450450 else true)])
451451 }
452452 }
453453
454454
455455 @Verifier(tx)
456456 func verify () = {
457457 let id = toBase58String(tx.id)
458458 match tx {
459459 case leaseTx: LeaseTransaction =>
460460 if (if ((leasingExpireBlock >= height))
461461 then (getLeaseTxExpireSendBlock(id) >= height)
462462 else false)
463463 then (getLeaseTxStatus(id) == NEW)
464464 else false
465465 case unleaseTx: LeaseCancelTransaction =>
466466 let leaseId = toBase58String(unleaseTx.leaseId)
467467 if (if (if ((height > leasingExpireBlock))
468468 then true
469469 else isRebalance)
470470 then (unleaseTx.fee == getCancelLeaseTxReserveFee(leaseId))
471471 else false)
472472 then (getLeaseTxStatus(leaseId) == NEW)
473473 else false
474474 case _ =>
475475 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
476476 }
477477 }
478478

github/deemru/w8io/026f985 
65.41 ms