tx · CdYvmGNLmw324k1EdmdUj4hEoMpQczVDLYuNyoKuBy15

3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX:  -0.01400000 Waves

2020.10.09 12:46 [1212869] smart account 3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX > SELF 0.00000000 Waves

{ "type": 13, "id": "CdYvmGNLmw324k1EdmdUj4hEoMpQczVDLYuNyoKuBy15", "fee": 1400000, "feeAssetId": null, "timestamp": 1602236852266, "version": 2, "chainId": 84, "sender": "3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX", "senderPublicKey": "33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9", "proofs": [ "5qoKaXtmfnX3RSdsokLP9XdChDo4raxCCZsTnvysStrgdK4b83eKTCNq1oXu9zF5PijELMyMyFGQrhAWP59FLFMk" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAHAAAAAA9mcm9zdEJsb2NrQ291bnQAAAAAAAAAAGQAAAAAB3BlcmNlbnQAAAAAAAAAABQAAAAAC3BlcmNlbnRSZWYxAAAAAAAAAAADAAAAAAtwZXJjZW50UmVmMgAAAAAAAAAAAgAAAAALcGVyY2VudFJlZjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAADTBfMF8wXzBfMF8wXzABAAAAB2dldFVzZXIAAAABAAAABHVzZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAABcwXzBfMF8wXzBfMF8wXzBfMF8wXzBfMAAAAAIAAAABaQEAAAAHZGVw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AUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAEAAAAgHkxz8qzFYQy/gEmjfxlkGkg1N6RMNBT1/p4yXLb8QTIGQK6E+g==", "height": 1212869, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YVAVFFWmqKR11hDUvX5c6qYKzJLb4QWwaddD6SaHPry Next: AJCPnr6Z4JB6Na1zWv6fiqeri876VTZjyArn7J5uDPMR Diff:
OldNewDifferences
44 let frostBlockCount = 100
55
66 let percent = 20
7+
8+let percentRef1 = 3
9+
10+let percentRef2 = 2
11+
12+let percentRef3 = 1
713
814 func getStatistic () = match getString(this, "statistic") {
915 case a: String =>
3642 let sum = ((pmt.amount / 100) * (100 + percent))
3743 let user = split(getUser(currentKey), "_")
3844 let userData2 = parseIntValue(user[2])
39- if ((user[6] == "0"))
45+ if ((user[7] == "0"))
4046 then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
4147 else {
42- let ref1 = split(getUser(user[6]), "_")
43- if ((ref1[6] == "0"))
44- then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
48+ let ref1 = split(getUser(user[7]), "_")
49+ let sumRef1 = ((pmt.amount / 100) * percentRef1)
50+ if ((ref1[7] == "0"))
51+ then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString((parseIntValue(statistic[4]) + sumRef1))) + "_") + toString((parseIntValue(statistic[5]) + 1))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1))))])
4552 else {
46- let ref2 = split(getUser(ref1[6]), "_")
47- if ((ref2[6] == "0"))
48- then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
53+ let ref2 = split(getUser(ref1[7]), "_")
54+ let sumRef2 = ((pmt.amount / 100) * percentRef2)
55+ if ((ref2[7] == "0"))
56+ then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString(((parseIntValue(statistic[4]) + sumRef1) + sumRef2))) + "_") + toString((parseIntValue(statistic[5]) + 2))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1)))), DataEntry(currentKey, ((((((((((((((((((((((ref2[0] + "_") + ref2[1]) + "_") + ref2[2]) + "_") + ref2[3]) + "_") + ref2[4]) + "_") + ref2[5]) + "_") + ref2[6]) + "_") + ref2[7]) + "_") + ref2[8]) + "_") + toString((parseIntValue(ref2[9]) + sumRef2))) + "_") + ref2[10]) + "_") + toString((parseIntValue(ref2[11]) + sumRef2))))])
4957 else {
50- let ref3 = split(getUser(ref2[6]), "_")
51- WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
58+ let ref3 = split(getUser(ref2[7]), "_")
59+ let sumRef3 = ((pmt.amount / 100) * percentRef3)
60+ WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString((((parseIntValue(statistic[4]) + sumRef1) + sumRef2) + sumRef3))) + "_") + toString((parseIntValue(statistic[5]) + 3))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1)))), DataEntry(currentKey, ((((((((((((((((((((((ref2[0] + "_") + ref2[1]) + "_") + ref2[2]) + "_") + ref2[3]) + "_") + ref2[4]) + "_") + ref2[5]) + "_") + ref2[6]) + "_") + ref2[7]) + "_") + ref2[8]) + "_") + toString((parseIntValue(ref2[9]) + sumRef2))) + "_") + ref2[10]) + "_") + toString((parseIntValue(ref2[11]) + sumRef2)))), DataEntry(currentKey, ((((((((((((((((((((((ref3[0] + "_") + ref3[1]) + "_") + ref3[2]) + "_") + ref3[3]) + "_") + ref3[4]) + "_") + ref3[5]) + "_") + ref3[6]) + "_") + ref3[7]) + "_") + ref3[8]) + "_") + ref3[9]) + "_") + toString((parseIntValue(ref3[10]) + sumRef3))) + "_") + toString((parseIntValue(ref3[11]) + sumRef3))))])
5261 }
5362 }
5463 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let frostBlockCount = 100
55
66 let percent = 20
7+
8+let percentRef1 = 3
9+
10+let percentRef2 = 2
11+
12+let percentRef3 = 1
713
814 func getStatistic () = match getString(this, "statistic") {
915 case a: String =>
1016 a
1117 case _ =>
1218 "0_0_0_0_0_0_0"
1319 }
1420
1521
1622 func getUser (user) = match getString(this, user) {
1723 case a: String =>
1824 a
1925 case _ =>
2026 "0_0_0_0_0_0_0_0_0_0_0_0"
2127 }
2228
2329
2430 @Callable(i)
2531 func deposit () = {
2632 let pmt = extract(i.payment)
2733 if (isDefined(pmt.assetId))
2834 then throw("can hodl waves only at the moment")
2935 else {
3036 let currentKey = toBase58String(i.caller.bytes)
3137 if ((currentKey == "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena"))
3238 then WriteSet([DataEntry("statistic", getStatistic())])
3339 else {
3440 let statistic = split(getStatistic(), "_")
3541 let blockHeight = lastBlock.height
3642 let sum = ((pmt.amount / 100) * (100 + percent))
3743 let user = split(getUser(currentKey), "_")
3844 let userData2 = parseIntValue(user[2])
39- if ((user[6] == "0"))
45+ if ((user[7] == "0"))
4046 then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
4147 else {
42- let ref1 = split(getUser(user[6]), "_")
43- if ((ref1[6] == "0"))
44- then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
48+ let ref1 = split(getUser(user[7]), "_")
49+ let sumRef1 = ((pmt.amount / 100) * percentRef1)
50+ if ((ref1[7] == "0"))
51+ then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString((parseIntValue(statistic[4]) + sumRef1))) + "_") + toString((parseIntValue(statistic[5]) + 1))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1))))])
4552 else {
46- let ref2 = split(getUser(ref1[6]), "_")
47- if ((ref2[6] == "0"))
48- then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
53+ let ref2 = split(getUser(ref1[7]), "_")
54+ let sumRef2 = ((pmt.amount / 100) * percentRef2)
55+ if ((ref2[7] == "0"))
56+ then WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString(((parseIntValue(statistic[4]) + sumRef1) + sumRef2))) + "_") + toString((parseIntValue(statistic[5]) + 2))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1)))), DataEntry(currentKey, ((((((((((((((((((((((ref2[0] + "_") + ref2[1]) + "_") + ref2[2]) + "_") + ref2[3]) + "_") + ref2[4]) + "_") + ref2[5]) + "_") + ref2[6]) + "_") + ref2[7]) + "_") + ref2[8]) + "_") + toString((parseIntValue(ref2[9]) + sumRef2))) + "_") + ref2[10]) + "_") + toString((parseIntValue(ref2[11]) + sumRef2))))])
4957 else {
50- let ref3 = split(getUser(ref2[6]), "_")
51- WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + statistic[4]) + "_") + statistic[5]) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))])
58+ let ref3 = split(getUser(ref2[7]), "_")
59+ let sumRef3 = ((pmt.amount / 100) * percentRef3)
60+ WriteSet([DataEntry("statistic", ((((((((((((toString((parseIntValue(statistic[0]) + pmt.amount)) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[2]) + "_") + statistic[3]) + "_") + toString((((parseIntValue(statistic[4]) + sumRef1) + sumRef2) + sumRef3))) + "_") + toString((parseIntValue(statistic[5]) + 3))) + "_") + statistic[6])), DataEntry(currentKey, ((((((((((((((((((((((toString((parseIntValue(user[0]) + pmt.amount)) + "_") + toString((parseIntValue(user[1]) + sum))) + "_") + toString((userData2 + sum))) + "_") + toString(((userData2 + sum) / frostBlockCount))) + "_") + toString(blockHeight)) + "_") + user[5]) + "_") + user[6]) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11])), DataEntry(currentKey, ((((((((((((((((((((((ref1[0] + "_") + ref1[1]) + "_") + ref1[2]) + "_") + ref1[3]) + "_") + ref1[4]) + "_") + ref1[5]) + "_") + ref1[6]) + "_") + ref1[7]) + "_") + toString((parseIntValue(ref1[8]) + sumRef1))) + "_") + ref1[9]) + "_") + ref1[10]) + "_") + toString((parseIntValue(ref1[11]) + sumRef1)))), DataEntry(currentKey, ((((((((((((((((((((((ref2[0] + "_") + ref2[1]) + "_") + ref2[2]) + "_") + ref2[3]) + "_") + ref2[4]) + "_") + ref2[5]) + "_") + ref2[6]) + "_") + ref2[7]) + "_") + ref2[8]) + "_") + toString((parseIntValue(ref2[9]) + sumRef2))) + "_") + ref2[10]) + "_") + toString((parseIntValue(ref2[11]) + sumRef2)))), DataEntry(currentKey, ((((((((((((((((((((((ref3[0] + "_") + ref3[1]) + "_") + ref3[2]) + "_") + ref3[3]) + "_") + ref3[4]) + "_") + ref3[5]) + "_") + ref3[6]) + "_") + ref3[7]) + "_") + ref3[8]) + "_") + ref3[9]) + "_") + toString((parseIntValue(ref3[10]) + sumRef3))) + "_") + toString((parseIntValue(ref3[11]) + sumRef3))))])
5261 }
5362 }
5463 }
5564 }
5665 }
5766 }
5867
5968
6069
6170 @Callable(i)
6271 func withdraw (amount) = {
6372 let currentKey = toBase58String(i.caller.bytes)
6473 let user = split(getUser(currentKey), "_")
6574 let statistic = split(getStatistic(), "_")
6675 let oldAmount = parseIntValue(user[2])
6776 let newAmount = (oldAmount - amount)
6877 let blockHeight = lastBlock.height
6978 let frostBlockHeight = parseIntValue(user[1])
7079 let defrostBlockHeight = (frostBlockHeight + frostBlockCount)
7180 let sumWithdraw = (parseIntValue(user[2]) + amount)
7281 let maxWithdraw = if ((blockHeight >= defrostBlockHeight))
7382 then oldAmount
7483 else ((frostBlockCount - (defrostBlockHeight - blockHeight)) * (oldAmount / frostBlockCount))
7584 if ((0 > amount))
7685 then throw("Can't withdraw negative amount")
7786 else if ((amount > maxWithdraw))
7887 then throw(("Max sum: " + toString(maxWithdraw)))
7988 else if ((0 > newAmount))
8089 then throw("Not enough balance")
8190 else ScriptResult(WriteSet([DataEntry("statistic", (((((((((statistic[0] + "_") + statistic[1]) + "_") + toString((parseIntValue(statistic[2]) + amount))) + "_") + toString((parseIntValue(statistic[1]) + 1))) + "_") + statistic[4]) + statistic[5])), DataEntry(currentKey, ((((((((((((((((((((((user[0] + "_") + user[1]) + "_") + toString(newAmount)) + "_") + user[3]) + "_") + toString(blockHeight)) + "_") + toString((parseIntValue(user[5]) + amount))) + "_") + toString((parseIntValue(user[6]) + amount))) + "_") + user[7]) + "_") + user[8]) + "_") + user[9]) + "_") + user[10]) + "_") + user[11]))]), TransferSet([ScriptTransfer(i.caller, amount, unit)]))
8291 }
8392
8493
8594 @Verifier(tx)
8695 func verify () = match tx {
8796 case d: SetScriptTransaction =>
8897 sigVerify(tx.bodyBytes, tx.proofs[0], base58'33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9')
8998 case _ =>
9099 true
91100 }
92101

github/deemru/w8io/169f3d6 
55.31 ms