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:AAIDAAAAAAAAAAkIARIAEgMKAQEAAAAHAAAAAA9mcm9zdEJsb2NrQ291bnQAAAAAAAAAAGQAAAAAB3BlcmNlbnQAAAAAAAAAABQAAAAAC3BlcmNlbnRSZWYxAAAAAAAAAAADAAAAAAtwZXJjZW50UmVmMgAAAAAAAAAAAgAAAAALcGVyY2VudFJlZjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAADTBfMF8wXzBfMF8wXzABAAAAB2dldFVzZXIAAAABAAAABHVzZXIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAABcwXzBfMF8wXzBfMF8wXzBfMF8wXzBfMAAAAAIAAAABaQEAAAAHZGVwb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UAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAEAAAAgHkxz8qzFYQy/gEmjfxlkGkg1N6RMNBT1/p4yXLb8QTIGQK6E+g==", "height": 1212869, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3YVAVFFWmqKR11hDUvX5c6qYKzJLb4QWwaddD6SaHPry Next: AJCPnr6Z4JB6Na1zWv6fiqeri876VTZjyArn7J5uDPMR Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let frostBlockCount = 100 | |
5 | 5 | ||
6 | 6 | let percent = 20 | |
7 | + | ||
8 | + | let percentRef1 = 3 | |
9 | + | ||
10 | + | let percentRef2 = 2 | |
11 | + | ||
12 | + | let percentRef3 = 1 | |
7 | 13 | ||
8 | 14 | func getStatistic () = match getString(this, "statistic") { | |
9 | 15 | case a: String => | |
36 | 42 | let sum = ((pmt.amount / 100) * (100 + percent)) | |
37 | 43 | let user = split(getUser(currentKey), "_") | |
38 | 44 | let userData2 = parseIntValue(user[2]) | |
39 | - | if ((user[ | |
45 | + | if ((user[7] == "0")) | |
40 | 46 | 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]))]) | |
41 | 47 | 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))))]) | |
45 | 52 | 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))))]) | |
49 | 57 | 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))))]) | |
52 | 61 | } | |
53 | 62 | } | |
54 | 63 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let frostBlockCount = 100 | |
5 | 5 | ||
6 | 6 | let percent = 20 | |
7 | + | ||
8 | + | let percentRef1 = 3 | |
9 | + | ||
10 | + | let percentRef2 = 2 | |
11 | + | ||
12 | + | let percentRef3 = 1 | |
7 | 13 | ||
8 | 14 | func getStatistic () = match getString(this, "statistic") { | |
9 | 15 | case a: String => | |
10 | 16 | a | |
11 | 17 | case _ => | |
12 | 18 | "0_0_0_0_0_0_0" | |
13 | 19 | } | |
14 | 20 | ||
15 | 21 | ||
16 | 22 | func getUser (user) = match getString(this, user) { | |
17 | 23 | case a: String => | |
18 | 24 | a | |
19 | 25 | case _ => | |
20 | 26 | "0_0_0_0_0_0_0_0_0_0_0_0" | |
21 | 27 | } | |
22 | 28 | ||
23 | 29 | ||
24 | 30 | @Callable(i) | |
25 | 31 | func deposit () = { | |
26 | 32 | let pmt = extract(i.payment) | |
27 | 33 | if (isDefined(pmt.assetId)) | |
28 | 34 | then throw("can hodl waves only at the moment") | |
29 | 35 | else { | |
30 | 36 | let currentKey = toBase58String(i.caller.bytes) | |
31 | 37 | if ((currentKey == "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena")) | |
32 | 38 | then WriteSet([DataEntry("statistic", getStatistic())]) | |
33 | 39 | else { | |
34 | 40 | let statistic = split(getStatistic(), "_") | |
35 | 41 | let blockHeight = lastBlock.height | |
36 | 42 | let sum = ((pmt.amount / 100) * (100 + percent)) | |
37 | 43 | let user = split(getUser(currentKey), "_") | |
38 | 44 | let userData2 = parseIntValue(user[2]) | |
39 | - | if ((user[ | |
45 | + | if ((user[7] == "0")) | |
40 | 46 | 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]))]) | |
41 | 47 | 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))))]) | |
45 | 52 | 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))))]) | |
49 | 57 | 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))))]) | |
52 | 61 | } | |
53 | 62 | } | |
54 | 63 | } | |
55 | 64 | } | |
56 | 65 | } | |
57 | 66 | } | |
58 | 67 | ||
59 | 68 | ||
60 | 69 | ||
61 | 70 | @Callable(i) | |
62 | 71 | func withdraw (amount) = { | |
63 | 72 | let currentKey = toBase58String(i.caller.bytes) | |
64 | 73 | let user = split(getUser(currentKey), "_") | |
65 | 74 | let statistic = split(getStatistic(), "_") | |
66 | 75 | let oldAmount = parseIntValue(user[2]) | |
67 | 76 | let newAmount = (oldAmount - amount) | |
68 | 77 | let blockHeight = lastBlock.height | |
69 | 78 | let frostBlockHeight = parseIntValue(user[1]) | |
70 | 79 | let defrostBlockHeight = (frostBlockHeight + frostBlockCount) | |
71 | 80 | let sumWithdraw = (parseIntValue(user[2]) + amount) | |
72 | 81 | let maxWithdraw = if ((blockHeight >= defrostBlockHeight)) | |
73 | 82 | then oldAmount | |
74 | 83 | else ((frostBlockCount - (defrostBlockHeight - blockHeight)) * (oldAmount / frostBlockCount)) | |
75 | 84 | if ((0 > amount)) | |
76 | 85 | then throw("Can't withdraw negative amount") | |
77 | 86 | else if ((amount > maxWithdraw)) | |
78 | 87 | then throw(("Max sum: " + toString(maxWithdraw))) | |
79 | 88 | else if ((0 > newAmount)) | |
80 | 89 | then throw("Not enough balance") | |
81 | 90 | 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)])) | |
82 | 91 | } | |
83 | 92 | ||
84 | 93 | ||
85 | 94 | @Verifier(tx) | |
86 | 95 | func verify () = match tx { | |
87 | 96 | case d: SetScriptTransaction => | |
88 | 97 | sigVerify(tx.bodyBytes, tx.proofs[0], base58'33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9') | |
89 | 98 | case _ => | |
90 | 99 | true | |
91 | 100 | } | |
92 | 101 |
github/deemru/w8io/169f3d6 55.31 ms ◑