tx · 4bDDSP3dw5mWGwDXLqg2Mv7CgXnYrVhhvxFU4Uxa6M9e 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.00800000 Waves 2023.11.01 11:36 [2824022] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{ "type": 13, "id": "4bDDSP3dw5mWGwDXLqg2Mv7CgXnYrVhhvxFU4Uxa6M9e", "fee": 800000, "feeAssetId": null, "timestamp": 1698827825045, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3xyCE1NPuJiEz1hGZD6DebAv4mcLzyLyd7kjT66ZVwbvhkQ1CGGZMPbaFEhFKtQCCYELCFCU7n7HeSqyFafSp6yw" ], "script": "base64:BgIYCAISBAoCCAESAwoBCBIAEgMKAQgSABIACQACbGkJAMwIAgIBMQkAzAgCAgEyCQDMCAICATMJAMwIAgIBNAkAzAgCAgE1CQDMCAICATYJAMwIAgIBNwkAzAgCAgE4CQDMCAICATkJAMwIAgICMTAJAMwIAgICMTEJAMwIAgICMTIJAMwIAgICMTMJAMwIAgICMTQJAMwIAgICMTUJAMwIAgICMTYJAMwIAgICMTcJAMwIAgICMTgJAMwIAgICMTkJAMwIAgICMjAJAMwIAgICMjEJAMwIAgICMjIJAMwIAgICMjMJAMwIAgICMjQJAMwIAgICMjUJAMwIAgICMjYJAMwIAgICMjcJAMwIAgICMjgJAMwIAgICMjkJAMwIAgICMzAJAMwIAgICMzEJAMwIAgICMzIJAMwIAgICMzMJAMwIAgICMzQJAMwIAgICMzUJAMwIAgICMzYJAMwIAgICMzcJAMwIAgICMzgJAMwIAgICMzkJAMwIAgICNDAJAMwIAgICNDEJAMwIAgICNDIJAMwIAgICNDMJAMwIAgICNDQJAMwIAgICNDUJAMwIAgICNDYJAMwIAgICNDcJAMwIAgICNDgJ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2VyRW50cnkCAgZoZWlnaHQFBmhlaWdodAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBFGZpcnN0RW5kZWRCb29zdGluZ0lkAAoBBGZvbGQCBWFjY3VtBG5leHQJAM0IAgUFYWNjdW0JAQ1wYXJzZUludFZhbHVlAQUEbmV4dAQLU3RyaW5nVmFsdWUJALMCAgkBDHRyeUdldFN0cmluZwEJAKwCAgkArAICAgtsaXN0IGVuZGVkIAkApAMBBQZoZWlnaHQCDCBib29zdGluZ0lkcwABBARsaXN0CgACJGwJALUJAgULU3RyaW5nVmFsdWUCASwKAAIkcwkAkAMBBQIkbAoABSRhY2MwBQNuaWwKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBBGZvbGQCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDIwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAQLZmlyc3RPZkxpc3QJAJEDAgUEbGlzdAAACQDMCAIJAQxJbnRlZ2VyRW50cnkCAgVmaXJzdAULZmlyc3RPZkxpc3QFA25pbADYzxic", "height": 2824022, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F1cNKMw6SKHZanEzzbiMd8GvJhEjTncp1vzZx8toDeq2 Next: ApjFP352GgVSSACYxd4Jcc74TMpPtq9MvuSammuEyMDg Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let li = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56" | |
4 | + | let li = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56"] | |
5 | 5 | ||
6 | 6 | let hours = 1 | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let li = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56" | |
4 | + | let li = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56"] | |
5 | 5 | ||
6 | 6 | let hours = 1 | |
7 | 7 | ||
8 | 8 | let minutes = 10 | |
9 | 9 | ||
10 | 10 | func tryGetInteger (key) = match getInteger(this, key) { | |
11 | 11 | case b: Int => | |
12 | 12 | b | |
13 | 13 | case _ => | |
14 | 14 | 0 | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func tryGetString (key) = match getString(this, key) { | |
19 | 19 | case b: String => | |
20 | 20 | b | |
21 | 21 | case _ => | |
22 | 22 | "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func getAssetString (assetId) = match assetId { | |
27 | 27 | case b: ByteVector => | |
28 | 28 | toBase58String(b) | |
29 | 29 | case _ => | |
30 | 30 | "WAVES" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES")) | |
35 | 35 | then unit | |
36 | 36 | else fromBase58String(assetIdStr) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func payBoostingResult (boostingId) = { | |
40 | 40 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
41 | 41 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
42 | 42 | if (if ((lastHeight != 0)) | |
43 | 43 | then (finishHeight > lastHeight) | |
44 | 44 | else false) | |
45 | 45 | then { | |
46 | 46 | let blockReward = (tryGetInteger((("boosting_" + boostingId) + "_totalAmount")) / ((tryGetInteger((("boosting_" + boostingId) + "_days")) * hours) * minutes)) | |
47 | 47 | let toPay = ((min([finishHeight, height]) - lastHeight) * blockReward) | |
48 | 48 | [IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId"))))] | |
49 | 49 | } | |
50 | 50 | else nil | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func endedBoostingIds (boostingId) = { | |
55 | 55 | let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight")) | |
56 | 56 | let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight")) | |
57 | 57 | if ((lastHeight >= finishHeight)) | |
58 | 58 | then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))] | |
59 | 59 | else nil | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(i) | |
64 | 64 | func addBoosting (poolId,days) = if ((1 > days)) | |
65 | 65 | then throw("amount of days has to be between 1 and 365") | |
66 | 66 | else if ((days > 365)) | |
67 | 67 | then throw("amount of days has to be between 1 and 365") | |
68 | 68 | else { | |
69 | 69 | let fullAmount = i.payments[0].amount | |
70 | 70 | if ((1440 > (fullAmount / days))) | |
71 | 71 | then throw((("boosting amount too small, minimum is " + toString((1440 * days))) + " of the smallest unit of payment asset")) | |
72 | 72 | else { | |
73 | 73 | let assetId = getAssetString(i.payments[0].assetId) | |
74 | 74 | if ((height == tryGetInteger("height"))) | |
75 | 75 | then throw("wait 1 minute") | |
76 | 76 | else { | |
77 | 77 | let entry = invoke(this, "entryEnded", nil, nil) | |
78 | 78 | if ((entry == entry)) | |
79 | 79 | then { | |
80 | 80 | let get = invoke(this, "firstEndedBoostingId", nil, nil) | |
81 | 81 | if ((get == get)) | |
82 | 82 | then { | |
83 | 83 | let boostingId = toString(tryGetInteger("first")) | |
84 | 84 | if ((addressFromString(poolId) == unit)) | |
85 | 85 | then throw("incorrect pool address") | |
86 | 86 | else [IntegerEntry((("boosting_" + boostingId) + "_days"), days), IntegerEntry((("boosting_" + boostingId) + "_totalAmount"), fullAmount), IntegerEntry((("boosting_" + boostingId) + "_dailyAmount"), (fullAmount / days)), IntegerEntry((("boosting_" + boostingId) + "_startHeight"), height), IntegerEntry((("boosting_" + boostingId) + "_finishHeight"), (height + ((days * hours) * minutes))), IntegerEntry((("boosting_" + boostingId) + "_finishTimestamp"), (lastBlock.timestamp + ((((days * hours) * minutes) * 60) * 1000))), IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), StringEntry((("boosting_" + boostingId) + "_assetId"), assetId), StringEntry((("boosting_" + boostingId) + "_owner"), toString(i.caller)), StringEntry((("boosting_" + boostingId) + "_poolId"), poolId), StringEntry((("pool_" + poolId) + "_boostings"), ((tryGetString((("pool_" + poolId) + "_boostings")) + boostingId) + ","))] | |
87 | 87 | } | |
88 | 88 | else throw("Strict value is not equal to itself.") | |
89 | 89 | } | |
90 | 90 | else throw("Strict value is not equal to itself.") | |
91 | 91 | } | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(i) | |
98 | 98 | func payBoosting (boostingId) = payBoostingResult(boostingId) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(i) | |
103 | 103 | func payBoostings () = { | |
104 | 104 | func f (accum,next) = { | |
105 | 105 | let in = invoke(this, "payBoosting", [next], nil) | |
106 | 106 | if ((in == in)) | |
107 | 107 | then in | |
108 | 108 | else throw("Strict value is not equal to itself.") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | let payments = { | |
112 | 112 | let $l = li | |
113 | 113 | let $s = size($l) | |
114 | 114 | let $acc0 = 0 | |
115 | 115 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
116 | 116 | then $a | |
117 | 117 | else f($a, $l[$i]) | |
118 | 118 | ||
119 | 119 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
120 | 120 | then $a | |
121 | 121 | else throw("List size exceeds 100") | |
122 | 122 | ||
123 | 123 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
124 | 124 | } | |
125 | 125 | if ((payments == payments)) | |
126 | 126 | then nil | |
127 | 127 | else throw("Strict value is not equal to itself.") | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func endedBoostings (boostingId) = endedBoostingIds(boostingId) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(i) | |
138 | 138 | func entryEnded () = { | |
139 | 139 | func f (accum,next) = { | |
140 | 140 | let in = invoke(this, "endedBoostings", [next], nil) | |
141 | 141 | if ((in == in)) | |
142 | 142 | then in | |
143 | 143 | else throw("Strict value is not equal to itself.") | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | let end = { | |
147 | 147 | let $l = li | |
148 | 148 | let $s = size($l) | |
149 | 149 | let $acc0 = 0 | |
150 | 150 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
151 | 151 | then $a | |
152 | 152 | else f($a, $l[$i]) | |
153 | 153 | ||
154 | 154 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
155 | 155 | then $a | |
156 | 156 | else throw("List size exceeds 100") | |
157 | 157 | ||
158 | 158 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
159 | 159 | } | |
160 | 160 | if ((end == end)) | |
161 | 161 | then [IntegerEntry("height", height)] | |
162 | 162 | else throw("Strict value is not equal to itself.") | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(i) | |
168 | 168 | func firstEndedBoostingId () = { | |
169 | 169 | func fold (accum,next) = (accum :+ parseIntValue(next)) | |
170 | 170 | ||
171 | 171 | let StringValue = dropRight(tryGetString((("list ended " + toString(height)) + " boostingIds")), 1) | |
172 | 172 | let list = { | |
173 | 173 | let $l = split(StringValue, ",") | |
174 | 174 | let $s = size($l) | |
175 | 175 | let $acc0 = nil | |
176 | 176 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
177 | 177 | then $a | |
178 | 178 | else fold($a, $l[$i]) | |
179 | 179 | ||
180 | 180 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
181 | 181 | then $a | |
182 | 182 | else throw("List size exceeds 20") | |
183 | 183 | ||
184 | 184 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
185 | 185 | } | |
186 | 186 | let firstOfList = list[0] | |
187 | 187 | [IntegerEntry("first", firstOfList)] | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 |
github/deemru/w8io/026f985 71.09 ms ◑