tx · 6HkRXcagHDDX8LcCyv2sVnNKLp41GRsgMUEUU8K7XeKE 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg: -0.01900000 Waves 2023.11.27 03:32 [2861091] smart account 3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg > SELF 0.00000000 Waves
{ "type": 13, "id": "6HkRXcagHDDX8LcCyv2sVnNKLp41GRsgMUEUU8K7XeKE", "fee": 1900000, "feeAssetId": null, "timestamp": 1701045227755, "version": 2, "chainId": 84, "sender": "3N7dQeENwSgKPp9Ki4aEHhRWWKVjn1DE9Qg", "senderPublicKey": "5BN6FQeKuMm2XJYToUZvbBX4UELGpE3Z47P4q6sP46PG", "proofs": [ "4LP2TbrB8KoRtRoa9CxBVVBb7vSMHfHMNzeSdZseyN1BM6X3fysUR1EdRKs1YMyBNAdVUNzzkyv2i18cx6vkRmzc" ], "script": "base64:BgI2CAISBAoCCAESAwoBARIAEgASBAoCCAESBQoDCAEBEgMKAQESABIDCgEIEgASAwoBARIDCgEBQAAITUlMTElPTjYAgIDpg7HeFgAJREFZTUlMTElTAIC4mSkBGmtleUFjcmVzU3Rha2VkQW1vdW50QnlVc2VyAQRhZGRyCQCsAgICGGFjcmVzU3Rha2VkQW1vdW50QnlVc2VyXwUEYWRkcgEaa2V5QWNyZXNMb2NrZWRBbW91bnRCeVVzZXIBBGFkZHIJAKwCAgIYYWNyZXNMb2NrZWRBbW91bnRCeVVzZXJfBQRhZGRyARdrZXlBY3Jlc0xvY2tlZEV0YUJ5VXNlcgEEYWRkcgkArAICAhVhY3Jlc0xvY2tlZEV0YUJ5VXNlcl8FBGFkZHIAE2FjcmVzU3Rha2VkVG90YWxLZXkCFmFjcmVzU3Rha2VkQW1vdW50VG90YWwACnhwTmV3U0xhbmQAwJaxAgAPREFJTFlSRVNCWVBJRUNFAID40gEAFVVTRFQyQUNSRVNfTVVMVElQTElFUgAKARprZXlJc0F3YXJkZWRCeVByb21vQW5kVXNlcgIHcHJvbW9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GECJGkDCQBnAgUCJGkFAiRzBQIkYQkBCnNpbmdsZURyYXcCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDIwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAkAlAoCCQDMCAIJAQtEZWxldGVFbnRyeQEFCWZpbmlzaEtleQkAzAgCCQELU3RyaW5nRW50cnkCCQEUa2V5UHJvbW8yTWFwRm9yUm91bmQBCQBkAgUHcm91bmRJZAABCAUFZHJhd3MCXzMJAMwIAgkBDEludGVnZXJFbnRyeQIJAR5rZXlUaWNrZXRzVG90YWxCeVByb21vQW5kUm91bmQCAAIJAGQCBQdyb3VuZElkAAEIBQVkcmF3cwJfMQUDbmlsCAUFZHJhd3MCXzQAvv6RLw==", "height": 2861091, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Amj5RL6rhLAdkb3chBndRjcga93XYgq4KYd4mNSSQF2D Next: BcjVGK9XNUNfKa5FCwowKVrUrKFVDTcprMyhoLo5JKto Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | func m (l) = ("%s%d__ticketsTotalByPromo__" + toString(l)) | |
29 | 29 | ||
30 | 30 | ||
31 | - | ||
31 | + | func n (l,o) = makeString(["%s%d%d__ticketsTotalByPromoAndRound", toString(l), toString(o)], "__") | |
32 | 32 | ||
33 | - | let o = { | |
34 | - | let p = n | |
35 | - | if ((base58'2W' == p)) | |
33 | + | ||
34 | + | let p = take(drop(this.bytes, 1), 1) | |
35 | + | ||
36 | + | let q = { | |
37 | + | let r = p | |
38 | + | if ((base58'2W' == r)) | |
36 | 39 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
37 | - | else if ((base58'2T' == | |
40 | + | else if ((base58'2T' == r)) | |
38 | 41 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
39 | 42 | else throw("Unknown chain") | |
40 | 43 | } | |
41 | 44 | ||
42 | - | let | |
43 | - | let | |
44 | - | if ((base58'2W' == | |
45 | + | let s = { | |
46 | + | let r = p | |
47 | + | if ((base58'2W' == r)) | |
45 | 48 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
46 | - | else if ((base58'2T' == | |
49 | + | else if ((base58'2T' == r)) | |
47 | 50 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
48 | 51 | else throw("Unknown chain") | |
49 | 52 | } | |
50 | 53 | ||
51 | - | let | |
54 | + | let t = "promo2Map" | |
52 | 55 | ||
53 | - | let s = "__" | |
54 | - | ||
55 | - | let t = 1000000 | |
56 | - | ||
57 | - | let u = 100000000 | |
58 | - | ||
59 | - | func v (w,x) = valueOrErrorMessage(getString(w, x), makeString(["mandatory ", toString(w), ".", x, " is not defined"], "")) | |
56 | + | func u (o) = ("promo2MapForRound__" + toString(o)) | |
60 | 57 | ||
61 | 58 | ||
62 | - | let | |
59 | + | let v = "__" | |
63 | 60 | ||
64 | - | let | |
61 | + | let w = 1000000 | |
65 | 62 | ||
66 | - | let | |
63 | + | let x = 100000000 | |
67 | 64 | ||
68 | - | let | |
65 | + | let y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
69 | 66 | ||
70 | - | func | |
67 | + | func z (A,B) = valueOrErrorMessage(getString(A, B), makeString(["mandatory ", toString(A), ".", B, " is not defined"], "")) | |
71 | 68 | ||
72 | 69 | ||
73 | - | func D () = "%s__restAddr" | |
70 | + | let C = 1 | |
71 | + | ||
72 | + | let D = 2 | |
73 | + | ||
74 | + | let E = 4 | |
75 | + | ||
76 | + | let F = 8 | |
77 | + | ||
78 | + | func G () = "%s__restConfig" | |
74 | 79 | ||
75 | 80 | ||
76 | - | func | |
81 | + | func H () = "%s__restAddr" | |
77 | 82 | ||
78 | 83 | ||
79 | - | func | |
84 | + | func I (J) = split_4C(z(J, G()), v) | |
80 | 85 | ||
81 | 86 | ||
82 | - | let J = addressFromStringValue(valueOrElse(getString(this, D()), q)) | |
83 | - | ||
84 | - | let H = E(J) | |
85 | - | ||
86 | - | let K = G(H, y) | |
87 | - | ||
88 | - | let L = G(H, z) | |
89 | - | ||
90 | - | let M = G(H, A) | |
91 | - | ||
92 | - | let N = G(H, B) | |
93 | - | ||
94 | - | let O = "acresIssuedAmount" | |
95 | - | ||
96 | - | let P = "acresAssetId" | |
97 | - | ||
98 | - | let Q = valueOrErrorMessage(getBinary(N, P), "ACRES is not issued yet") | |
99 | - | ||
100 | - | func R (d) = ("acresStakedTimeByUser_" + d) | |
87 | + | func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M))) | |
101 | 88 | ||
102 | 89 | ||
103 | - | let | |
90 | + | let N = addressFromStringValue(valueOrElse(getString(this, H()), s)) | |
104 | 91 | ||
105 | - | func T () = "resTypesProportions" | |
92 | + | let L = I(N) | |
93 | + | ||
94 | + | let O = K(L, C) | |
95 | + | ||
96 | + | let P = K(L, D) | |
97 | + | ||
98 | + | let Q = K(L, E) | |
99 | + | ||
100 | + | let R = K(L, F) | |
101 | + | ||
102 | + | let S = "acresIssuedAmount" | |
103 | + | ||
104 | + | let T = "acresAssetId" | |
105 | + | ||
106 | + | let U = valueOrErrorMessage(getBinary(R, T), "ACRES is not issued yet") | |
107 | + | ||
108 | + | func V (d) = ("acresStakedTimeByUser_" + d) | |
106 | 109 | ||
107 | 110 | ||
108 | - | func U (V) = ("stakedPiecesByOwner_" + V) | |
111 | + | let W = 0 | |
112 | + | ||
113 | + | let X = 2 | |
114 | + | ||
115 | + | func Y (A) = ("finishBlockFor_" + A) | |
109 | 116 | ||
110 | 117 | ||
111 | - | func W (X) = { | |
112 | - | let p = X | |
113 | - | if ($isInstanceOf(p, "Int")) | |
118 | + | func Z () = "resTypesProportions" | |
119 | + | ||
120 | + | ||
121 | + | func aa (ab) = ("stakedPiecesByOwner_" + ab) | |
122 | + | ||
123 | + | ||
124 | + | func ac (ad) = { | |
125 | + | let r = ad | |
126 | + | if ($isInstanceOf(r, "Int")) | |
114 | 127 | then { | |
115 | - | let | |
116 | - | | |
128 | + | let ae = r | |
129 | + | ae | |
117 | 130 | } | |
118 | 131 | else throw("fail to cast into Int") | |
119 | 132 | } | |
120 | 133 | ||
121 | 134 | ||
122 | - | func | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
135 | + | func af (ag) = { | |
136 | + | let r = ag | |
137 | + | if ($isInstanceOf(r, "(Int, Int)")) | |
125 | 138 | then { | |
126 | - | let | |
127 | - | | |
139 | + | let ah = r | |
140 | + | ah | |
128 | 141 | } | |
129 | 142 | else throw("fail to cast into (Int, Int)") | |
130 | 143 | } | |
131 | 144 | ||
132 | 145 | ||
133 | - | func ac (ad) = { | |
134 | - | let ae = split(valueOrElse(getString(K, T()), "0_0_0_0_0_0"), "_") | |
135 | - | func af (ag,ah) = (ag + parseIntValue(ah)) | |
146 | + | func ai (d) = ("lastTxIdByUser_" + d) | |
136 | 147 | ||
137 | - | let ai = { | |
138 | - | let aj = ae | |
139 | - | let ak = size(aj) | |
140 | - | let al = 0 | |
141 | - | func am (an,ao) = if ((ao >= ak)) | |
142 | - | then an | |
143 | - | else af(an, aj[ao]) | |
144 | 148 | ||
145 | - | func ap (an,ao) = if ((ao >= ak)) | |
146 | - | then an | |
149 | + | func aj (ak) = { | |
150 | + | let al = split(valueOrElse(getString(O, Z()), "0_0_0_0_0_0"), "_") | |
151 | + | func am (an,ao) = (an + parseIntValue(ao)) | |
152 | + | ||
153 | + | let ap = { | |
154 | + | let aq = al | |
155 | + | let ar = size(aq) | |
156 | + | let as = 0 | |
157 | + | func at (au,av) = if ((av >= ar)) | |
158 | + | then au | |
159 | + | else am(au, aq[av]) | |
160 | + | ||
161 | + | func aw (au,av) = if ((av >= ar)) | |
162 | + | then au | |
147 | 163 | else throw("List size exceeds 6") | |
148 | 164 | ||
149 | - | | |
165 | + | aw(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6) | |
150 | 166 | } | |
151 | - | let | |
152 | - | [ | |
167 | + | let ax = valueOrElse(getInteger(O, aa(ak)), 0) | |
168 | + | [ap, ax] | |
153 | 169 | } | |
154 | 170 | ||
155 | 171 | ||
156 | - | func | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | (((toString(( | |
172 | + | func ay (ag,az) = { | |
173 | + | let aA = pow(10, 0, az, 0, 0, DOWN) | |
174 | + | let aB = toString((ag % aA)) | |
175 | + | let aC = drop(toString(aA), (1 + size(aB))) | |
176 | + | (((toString((ag / aA)) + ".") + aC) + aB) | |
161 | 177 | } | |
162 | 178 | ||
163 | 179 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | ( | |
180 | + | func aD (ag,aE) = { | |
181 | + | let aF = toString(ag) | |
182 | + | let aC = drop(toString(pow(10, 0, (aE - size(aF)), 0, 0, DOWN)), 1) | |
183 | + | (aC + aF) | |
168 | 184 | } | |
169 | 185 | ||
170 | 186 | ||
171 | - | let az = 10000000 | |
187 | + | func aG (aH,aI,aJ) = if ((0 >= aH)) | |
188 | + | then throw("maxValue should be > 0") | |
189 | + | else { | |
190 | + | let aK = sha256((aI + aJ)) | |
191 | + | (toInt(aK) % aH) | |
192 | + | } | |
172 | 193 | ||
173 | - | let aA = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
174 | 194 | ||
175 | - | let | |
195 | + | let aL = 10000000 | |
176 | 196 | ||
177 | - | let aC = { | |
178 | - | let p = n | |
179 | - | if ((base58'2W' == p)) | |
197 | + | let aM = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
198 | + | ||
199 | + | let aN = 4970178 | |
200 | + | ||
201 | + | let aO = { | |
202 | + | let r = p | |
203 | + | if ((base58'2W' == r)) | |
180 | 204 | then 1700524800000 | |
181 | - | else if ((base58'2T' == | |
205 | + | else if ((base58'2T' == r)) | |
182 | 206 | then 1700420400000 | |
183 | 207 | else throw("Unknown chain") | |
184 | 208 | } | |
185 | 209 | ||
186 | - | let | |
187 | - | let | |
188 | - | if ((base58'2W' == | |
210 | + | let aP = { | |
211 | + | let r = p | |
212 | + | if ((base58'2W' == r)) | |
189 | 213 | then 1701043199999 | |
190 | - | else if ((base58'2T' == | |
214 | + | else if ((base58'2T' == r)) | |
191 | 215 | then 1700496000000 | |
192 | 216 | else throw("Unknown chain") | |
193 | 217 | } | |
194 | 218 | ||
195 | - | func aE (d) = contains(aA, d) | |
219 | + | let aQ = [1, 3, 5, 20] | |
220 | + | ||
221 | + | let aR = [500000000, 200000000, 100000000, 20000000] | |
222 | + | ||
223 | + | func aS (d) = contains(aM, d) | |
196 | 224 | ||
197 | 225 | ||
198 | - | func | |
226 | + | func aT () = ac(reentrantInvoke(O, "saveLastTx", nil, nil)) | |
199 | 227 | ||
200 | 228 | ||
201 | - | func | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | ( | |
229 | + | func aU (d,aV,aW) = { | |
230 | + | let aX = (lastBlock.timestamp - aW) | |
231 | + | let aY = fraction(aX, (i * aV), (b * x)) | |
232 | + | let aZ = ac(invoke(P, "sellResourcesWorldREADONLY", [aY], nil)) | |
233 | + | let ba = max([0, aZ]) | |
234 | + | (ba * j) | |
207 | 235 | } | |
208 | 236 | ||
209 | 237 | ||
210 | - | func | |
211 | - | let | |
212 | - | if ((0 > | |
213 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
238 | + | func bb (d,aV,aW) = { | |
239 | + | let aX = (lastBlock.timestamp - aW) | |
240 | + | if ((0 > aX)) | |
241 | + | then throw(((("Saved timestamp is in future, saved = " + toString(aW)) + ", current = ") + toString(lastBlock.timestamp))) | |
214 | 242 | else { | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
243 | + | let aY = fraction(aX, (i * aV), (b * x)) | |
244 | + | let aZ = ac(invoke(P, "sellResourcesWorldREADONLY", [aY], nil)) | |
245 | + | let ba = if ((0 >= aZ)) | |
218 | 246 | then 0 | |
219 | - | else | |
220 | - | ( | |
247 | + | else af(invoke(P, "sellResourcesWorld", [d, aY], nil))._1 | |
248 | + | (ba * j) | |
221 | 249 | } | |
222 | 250 | } | |
223 | 251 | ||
224 | 252 | ||
225 | - | func | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
253 | + | func bc (bd,be,bf,bg) = { | |
254 | + | let bh = lastBlock.timestamp | |
255 | + | let bi = max([0, (be - bh)]) | |
256 | + | let bj = max([0, (bg - bh)]) | |
257 | + | let bk = (bd + bf) | |
258 | + | let bl = if ((bk == 0)) | |
231 | 259 | then 0 | |
232 | - | else (fraction( | |
233 | - | ( | |
260 | + | else (fraction(bi, bd, bk) + fraction(bj, bf, bk)) | |
261 | + | (bh + bl) | |
234 | 262 | } | |
235 | 263 | ||
236 | 264 | ||
237 | - | @Callable( | |
238 | - | func constructorV1 ( | |
265 | + | @Callable(bm) | |
266 | + | func constructorV1 (bn,bo) = if ((bm.caller != this)) | |
239 | 267 | then throw("Permission denied") | |
240 | - | else if (isDefined(getBinary( | |
268 | + | else if (isDefined(getBinary(T))) | |
241 | 269 | then throw("Already initialized") | |
242 | 270 | else { | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | [ | |
271 | + | let bp = (aj("")[W] + bo) | |
272 | + | let bq = (a - (bp * x)) | |
273 | + | let br = Issue("ACRES", "WavesLands land acres investment token", bq, 8, false, unit, 0) | |
274 | + | let bs = calculateAssetId(br) | |
275 | + | [br, IntegerEntry(S, bq), BinaryEntry(T, bs), StringEntry(H(), bn)] | |
248 | 276 | } | |
249 | 277 | ||
250 | 278 | ||
251 | 279 | ||
252 | - | @Callable( | |
253 | - | func unstakeAcres ( | |
254 | - | let | |
255 | - | if (( | |
256 | - | then if ((0 >= | |
280 | + | @Callable(bm) | |
281 | + | func unstakeAcres (bt) = { | |
282 | + | let bu = aT() | |
283 | + | if ((bu == bu)) | |
284 | + | then if ((0 >= bt)) | |
257 | 285 | then throw("Amount should be positive") | |
258 | 286 | else { | |
259 | - | let | |
260 | - | if ((size( | |
287 | + | let A = toString(bm.caller) | |
288 | + | if ((size(bm.payments) != 0)) | |
261 | 289 | then throw("No payments required") | |
262 | 290 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | if (( | |
267 | - | then throw(((("You have only " + | |
291 | + | let bv = V(A) | |
292 | + | let bw = c(A) | |
293 | + | let bx = valueOrElse(getInteger(bw), 0) | |
294 | + | if ((bt > bx)) | |
295 | + | then throw(((("You have only " + ay(bx, 8)) + " ACRES staked, tried to unstake ") + ay(bt, 8))) | |
268 | 296 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (if (( | |
273 | - | then ( | |
297 | + | let by = valueOrElse(getInteger(e(A)), 0) | |
298 | + | let bz = valueOrElse(getInteger(f(A)), 0) | |
299 | + | let bh = lastBlock.timestamp | |
300 | + | if (if ((bh >= aO)) | |
301 | + | then (aP >= bh) | |
274 | 302 | else false) | |
275 | 303 | then throw("You cannot unstake ACRES during Promo2") | |
276 | 304 | else { | |
277 | - | let | |
278 | - | then (( | |
279 | - | else ( | |
280 | - | if (if (( | |
281 | - | then ( | |
305 | + | let bA = if (aS(A)) | |
306 | + | then ((bx - by) - aN) | |
307 | + | else (bx - by) | |
308 | + | if (if ((bz > bh)) | |
309 | + | then (bt > bA) | |
282 | 310 | else false) | |
283 | - | then throw(((("Only " + | |
311 | + | then throw(((("Only " + ay(bA, 8)) + " ACRES can be unstaked now, wait until ") + toString(bz))) | |
284 | 312 | else { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | $Tuple2([IntegerEntry( | |
313 | + | let bB = valueOrElse(getInteger(g), 0) | |
314 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
315 | + | let bD = bb(A, bx, valueOrElse(getInteger(bv), 0)) | |
316 | + | $Tuple2([IntegerEntry(bv, lastBlock.timestamp), IntegerEntry(bw, (bx - bt)), IntegerEntry(g, (bB - bt)), ScriptTransfer(bm.caller, (bt + bD), U)], $Tuple2(bu, bC)) | |
289 | 317 | } | |
290 | 318 | } | |
291 | 319 | } | |
296 | 324 | ||
297 | 325 | ||
298 | 326 | ||
299 | - | @Callable( | |
327 | + | @Callable(bm) | |
300 | 328 | func stakeAcres () = { | |
301 | - | let | |
302 | - | if (( | |
329 | + | let bu = aT() | |
330 | + | if ((bu == bu)) | |
303 | 331 | then { | |
304 | - | let | |
305 | - | if ((size( | |
332 | + | let A = toString(bm.caller) | |
333 | + | if ((size(bm.payments) != 1)) | |
306 | 334 | then throw("exactly 1 payment must be attached") | |
307 | 335 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | if (if (!(isDefined( | |
336 | + | let bE = bm.payments[0] | |
337 | + | let bF = bE.amount | |
338 | + | if (if (!(isDefined(bE.assetId))) | |
311 | 339 | then true | |
312 | - | else (value( | |
340 | + | else (value(bE.assetId) != U)) | |
313 | 341 | then throw("ACRES payments only!") | |
314 | 342 | else { | |
315 | - | let | |
316 | - | if (( | |
343 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
344 | + | if ((bC == bC)) | |
317 | 345 | then { | |
318 | - | let | |
319 | - | if (if (( | |
346 | + | let bh = lastBlock.timestamp | |
347 | + | if (if ((aO > bh)) | |
320 | 348 | then true | |
321 | - | else ( | |
349 | + | else (bh > aP)) | |
322 | 350 | then { | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2(((((if (( | |
351 | + | let bv = V(A) | |
352 | + | let bw = c(A) | |
353 | + | let bx = valueOrElse(getInteger(bw), 0) | |
354 | + | let bB = valueOrElse(getInteger(g), 0) | |
355 | + | let bD = bb(A, bx, valueOrElse(getInteger(bv), 0)) | |
356 | + | $Tuple2(((((if ((bD == 0)) | |
329 | 357 | then nil | |
330 | - | else [ScriptTransfer( | |
358 | + | else [ScriptTransfer(bm.caller, bD, U)]) :+ IntegerEntry(bv, lastBlock.timestamp)) :+ IntegerEntry(bw, (bx + bF))) :+ IntegerEntry(g, (bB + bF))), $Tuple2(bu, bC)) | |
331 | 359 | } | |
332 | - | else if (( | |
333 | - | then throw((("Min staked amount during promo action should be at least " + | |
360 | + | else if ((aL > bF)) | |
361 | + | then throw((("Min staked amount during promo action should be at least " + ay(aL, 8)) + " ACRES")) | |
334 | 362 | else { | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
363 | + | let bG = invoke(this, "sendLockedAcres", [A, bF, 30], nil) | |
364 | + | let bH = valueOrElse(getString(t), "") | |
365 | + | let bI = if (contains(bH, A)) | |
338 | 366 | then { | |
339 | - | let | |
340 | - | let | |
341 | - | (((( | |
367 | + | let bJ = split_51C(bH, A) | |
368 | + | let bd = parseIntValue(take(drop(bJ[1], 1), 14)) | |
369 | + | ((((bJ[0] + A) + ":") + aD((bd + bF), 14)) + drop(bJ[1], 15)) | |
342 | 370 | } | |
343 | 371 | else { | |
344 | - | let | |
345 | - | if (( | |
346 | - | then | |
347 | - | else (( | |
372 | + | let bK = ((A + ":") + aD(bF, 14)) | |
373 | + | if ((bH == "")) | |
374 | + | then bK | |
375 | + | else ((bH + "_") + bK) | |
348 | 376 | } | |
349 | - | $Tuple2([StringEntry( | |
377 | + | $Tuple2([StringEntry(t, bI)], $Tuple3(bu, bC, bG)) | |
350 | 378 | } | |
351 | 379 | } | |
352 | 380 | else throw("Strict value is not equal to itself.") | |
358 | 386 | ||
359 | 387 | ||
360 | 388 | ||
361 | - | @Callable( | |
389 | + | @Callable(bm) | |
362 | 390 | func buyAcres () = { | |
363 | - | let | |
364 | - | if (( | |
391 | + | let bu = aT() | |
392 | + | if ((bu == bu)) | |
365 | 393 | then { | |
366 | - | let | |
367 | - | if ((size( | |
394 | + | let A = toString(bm.caller) | |
395 | + | if ((size(bm.payments) != 1)) | |
368 | 396 | then throw("exactly 1 payment must be attached") | |
369 | 397 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | if (if (!(isDefined( | |
398 | + | let bE = bm.payments[0] | |
399 | + | let bF = bE.amount | |
400 | + | if (if (!(isDefined(bE.assetId))) | |
373 | 401 | then true | |
374 | - | else (value( | |
402 | + | else (value(bE.assetId) != q)) | |
375 | 403 | then throw("USDT payments only!") | |
376 | - | else if (( | |
377 | - | then throw((("Min payment should be " + | |
404 | + | else if ((w > bF)) | |
405 | + | then throw((("Min payment should be " + ay(w, 6)) + " USDT")) | |
378 | 406 | else { | |
379 | - | let | |
380 | - | let | |
381 | - | $Tuple2([ScriptTransfer( | |
407 | + | let aV = (bF * j) | |
408 | + | let bL = ac(invoke(O, "updateAccStats", [A, fraction(h, aV, (25 * x))], nil)) | |
409 | + | $Tuple2([ScriptTransfer(P, bF, q), ScriptTransfer(bm.caller, aV, U)], $Tuple2(bu, bL)) | |
382 | 410 | } | |
383 | 411 | } | |
384 | 412 | } | |
387 | 415 | ||
388 | 416 | ||
389 | 417 | ||
390 | - | @Callable( | |
391 | - | func sendAcres (d, | |
418 | + | @Callable(bm) | |
419 | + | func sendAcres (d,bt) = if ((bm.caller != P)) | |
392 | 420 | then throw("Permission denied") | |
393 | - | else $Tuple2([ScriptTransfer(addressFromStringValue(d), | |
421 | + | else $Tuple2([ScriptTransfer(addressFromStringValue(d), bt, U)], bt) | |
394 | 422 | ||
395 | 423 | ||
396 | 424 | ||
397 | - | @Callable( | |
398 | - | func sendLockedAcres (d, | |
399 | - | then ( | |
425 | + | @Callable(bm) | |
426 | + | func sendLockedAcres (d,bt,bM) = if (if ((bm.caller != this)) | |
427 | + | then (bm.caller != N) | |
400 | 428 | else false) | |
401 | 429 | then throw("Permission denied") | |
402 | 430 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | $Tuple2([IntegerEntry( | |
431 | + | let bh = lastBlock.timestamp | |
432 | + | let bv = V(d) | |
433 | + | let bw = c(d) | |
434 | + | let bx = valueOrElse(getInteger(bw), 0) | |
435 | + | let bB = valueOrElse(getInteger(g), 0) | |
436 | + | let bN = valueOrElse(getInteger(bv), bh) | |
437 | + | let bO = f(d) | |
438 | + | let bP = e(d) | |
439 | + | let bQ = valueOrElse(getInteger(bP), 0) | |
440 | + | let bR = valueOrElse(getInteger(bO), 0) | |
441 | + | let bS = bc(bQ, bR, bt, (bh + (bM * b))) | |
442 | + | $Tuple2([IntegerEntry(bv, bN), IntegerEntry(bw, (bx + bt)), IntegerEntry(g, (bB + bt)), IntegerEntry(bO, bS), IntegerEntry(bP, (bQ + bt))], bt) | |
415 | 443 | } | |
416 | 444 | ||
417 | 445 | ||
418 | 446 | ||
419 | - | @Callable( | |
420 | - | func burnAcres ( | |
447 | + | @Callable(bm) | |
448 | + | func burnAcres (bt) = if ((bm.caller != O)) | |
421 | 449 | then throw("Permission denied") | |
422 | 450 | else { | |
423 | - | let | |
424 | - | if ((0 > | |
451 | + | let bT = (valueOrElse(getInteger(S), 0) - bt) | |
452 | + | if ((0 > bT)) | |
425 | 453 | then throw("Attempt to burn more ACRES, than exists") | |
426 | - | else $Tuple2([Burn( | |
454 | + | else $Tuple2([Burn(U, bt), IntegerEntry(S, bT)], bt) | |
427 | 455 | } | |
428 | 456 | ||
429 | 457 | ||
430 | 458 | ||
431 | - | @Callable( | |
459 | + | @Callable(bm) | |
432 | 460 | func claimAcres () = { | |
433 | - | let | |
434 | - | if (( | |
461 | + | let bu = aT() | |
462 | + | if ((bu == bu)) | |
435 | 463 | then { | |
436 | - | let | |
437 | - | if ((size( | |
464 | + | let A = toString(bm.caller) | |
465 | + | if ((size(bm.payments) != 0)) | |
438 | 466 | then throw("No payments required") | |
439 | 467 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | $Tuple2([IntegerEntry( | |
468 | + | let bv = V(A) | |
469 | + | let bw = c(A) | |
470 | + | let aV = valueOrElse(getInteger(bw), 0) | |
471 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
472 | + | let bD = bb(A, aV, valueOrElse(getInteger(bv), 0)) | |
473 | + | $Tuple2([IntegerEntry(bv, lastBlock.timestamp), ScriptTransfer(bm.caller, bD, U)], $Tuple2(bu, bC)) | |
446 | 474 | } | |
447 | 475 | } | |
448 | 476 | else throw("Strict value is not equal to itself.") | |
450 | 478 | ||
451 | 479 | ||
452 | 480 | ||
453 | - | @Callable( | |
454 | - | func claimAcresREADONLY ( | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | $Tuple2(nil, [ | |
481 | + | @Callable(bm) | |
482 | + | func claimAcresREADONLY (A) = { | |
483 | + | let bv = V(A) | |
484 | + | let bw = c(A) | |
485 | + | let aV = valueOrElse(getInteger(bw), 0) | |
486 | + | let bU = valueOrElse(getInteger(bv), 0) | |
487 | + | let bD = aU(A, aV, bU) | |
488 | + | $Tuple2(nil, [bD, bU]) | |
461 | 489 | } | |
462 | 490 | ||
463 | 491 | ||
464 | 492 | ||
465 | - | @Callable( | |
493 | + | @Callable(bm) | |
466 | 494 | func claimPromo2 () = { | |
467 | - | let | |
468 | - | if (( | |
495 | + | let bu = aT() | |
496 | + | if ((bu == bu)) | |
469 | 497 | then { | |
470 | - | let | |
471 | - | if ((size( | |
498 | + | let A = toString(bm.caller) | |
499 | + | if ((size(bm.payments) != 0)) | |
472 | 500 | then throw("No payments required") | |
473 | 501 | else { | |
474 | - | let | |
475 | - | if (( | |
502 | + | let bh = lastBlock.timestamp | |
503 | + | if ((aP > bh)) | |
476 | 504 | then throw("Promo 2 is not over yet") | |
477 | 505 | else { | |
478 | - | let | |
479 | - | if (valueOrElse(getBoolean( | |
480 | - | then throw((("Your wallet " + | |
506 | + | let bV = k(2, A) | |
507 | + | if (valueOrElse(getBoolean(bV), false)) | |
508 | + | then throw((("Your wallet " + A) + " is already awarded in promo 2")) | |
481 | 509 | else { | |
482 | - | let | |
483 | - | if (!(contains( | |
510 | + | let bH = valueOrElse(getString(t), "") | |
511 | + | if (!(contains(bH, A))) | |
484 | 512 | then throw("You are not participant of promo 2") | |
485 | 513 | else { | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
514 | + | let bJ = split_51C(bH, A) | |
515 | + | let aV = parseIntValue(take(drop(bJ[1], 1), 14)) | |
516 | + | let bW = (aV / aL) | |
517 | + | let bX = valueOrElse(getInteger(m(2)), 0) | |
518 | + | let bY = if ((bX == 0)) | |
491 | 519 | then { | |
492 | - | func | |
520 | + | func bZ (an,ca) = (an + (parseIntValue(split(ca, ":")[1]) / aL)) | |
493 | 521 | ||
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | func | |
499 | - | then | |
500 | - | else | |
522 | + | let cb = { | |
523 | + | let aq = split_51C(bH, "_") | |
524 | + | let ar = size(aq) | |
525 | + | let as = 0 | |
526 | + | func at (au,av) = if ((av >= ar)) | |
527 | + | then au | |
528 | + | else bZ(au, aq[av]) | |
501 | 529 | ||
502 | - | func | |
503 | - | then | |
530 | + | func aw (au,av) = if ((av >= ar)) | |
531 | + | then au | |
504 | 532 | else throw("List size exceeds 50") | |
505 | 533 | ||
506 | - | | |
534 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 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) | |
507 | 535 | } | |
508 | - | $Tuple2([IntegerEntry(m(2), | |
536 | + | $Tuple2([IntegerEntry(m(2), cb), IntegerEntry(n(2, 1), cb)], cb) | |
509 | 537 | } | |
510 | - | else $Tuple2(nil, | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | $Tuple2(( | |
538 | + | else $Tuple2(nil, bX) | |
539 | + | let cc = bY._1 | |
540 | + | let cd = bY._2 | |
541 | + | let ce = fraction(bW, aL, cd) | |
542 | + | let bG = invoke(this, "sendLockedAcres", [A, ce, 30], nil) | |
543 | + | $Tuple2(((cc :+ BooleanEntry(bV, true)) :+ StringEntry(u(1), bH)), bG) | |
516 | 544 | } | |
517 | 545 | } | |
518 | 546 | } | |
522 | 550 | } | |
523 | 551 | ||
524 | 552 | ||
553 | + | ||
554 | + | @Callable(bm) | |
555 | + | func commitForPromo2Round (o) = if ((bm.caller != this)) | |
556 | + | then throw("Permission denied") | |
557 | + | else if (if ((1 > o)) | |
558 | + | then true | |
559 | + | else (o > 4)) | |
560 | + | then throw(("Invalid roundId: " + toString(o))) | |
561 | + | else { | |
562 | + | let cf = (height + X) | |
563 | + | $Tuple2([IntegerEntry(Y(("2_" + toString(o))), cf)], cf) | |
564 | + | } | |
565 | + | ||
566 | + | ||
567 | + | ||
568 | + | @Callable(bm) | |
569 | + | func drawPromo2Round (o) = if ((bm.caller != this)) | |
570 | + | then throw("Permission denied") | |
571 | + | else if (if ((1 > o)) | |
572 | + | then true | |
573 | + | else (o > 4)) | |
574 | + | then throw(("Invalid roundId: " + toString(o))) | |
575 | + | else { | |
576 | + | let cg = Y(("2_" + toString(o))) | |
577 | + | let cf = valueOrErrorMessage(getInteger(cg), "You have to commitForPromo2Round(roundId) first!") | |
578 | + | if ((cf > height)) | |
579 | + | then throw(("Random number is not ready yet, wait until height = " + toString(cf))) | |
580 | + | else { | |
581 | + | let aH = valueOrElse(getInteger(n(2, o)), 0) | |
582 | + | if ((aH == 0)) | |
583 | + | then throw("Please call claimPromo2() at least once") | |
584 | + | else { | |
585 | + | let aJ = value(value(blockInfoByHeight(cf)).vrf) | |
586 | + | let aI = bm.transactionId | |
587 | + | let bH = valueOrElse(getString(u(o)), "") | |
588 | + | func ch (ci,cj) = if ((cj > aQ[(o - 1)])) | |
589 | + | then ci | |
590 | + | else { | |
591 | + | let ck = aG(ci._1, ci._2, aJ) | |
592 | + | let cl = if ((ci._3 == "")) | |
593 | + | then nil | |
594 | + | else split_51C(ci._3, "_") | |
595 | + | func bZ (an,ca) = { | |
596 | + | let bJ = split(ca, ":") | |
597 | + | let d = bJ[0] | |
598 | + | let bW = (parseIntValue(bJ[1]) / aL) | |
599 | + | let cm = (an._1 + bW) | |
600 | + | if (if ((an._3 == "")) | |
601 | + | then (cm > ck) | |
602 | + | else false) | |
603 | + | then $Tuple3(cm, bW, d) | |
604 | + | else $Tuple3(cm, an._2, an._3) | |
605 | + | } | |
606 | + | ||
607 | + | let cn = { | |
608 | + | let aq = cl | |
609 | + | let ar = size(aq) | |
610 | + | let as = $Tuple3(0, 0, "") | |
611 | + | func at (au,av) = if ((av >= ar)) | |
612 | + | then au | |
613 | + | else bZ(au, aq[av]) | |
614 | + | ||
615 | + | func aw (au,av) = if ((av >= ar)) | |
616 | + | then au | |
617 | + | else throw("List size exceeds 50") | |
618 | + | ||
619 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 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) | |
620 | + | } | |
621 | + | let co = cn._3 | |
622 | + | if ((co == "")) | |
623 | + | then throw("no winner") | |
624 | + | else { | |
625 | + | let cp = split_51C(ci._3, co) | |
626 | + | let cq = (cp[0] + drop(cp[1], 15)) | |
627 | + | let bG = invoke(this, "sendLockedAcres", [co, aR[(o - 1)], 30], nil) | |
628 | + | $Tuple4((ci._1 - cn._2), fromBase58String(getStringValue(O, ai(co))), cq, (ci._4 :+ bG)) | |
629 | + | } | |
630 | + | } | |
631 | + | ||
632 | + | let cr = { | |
633 | + | let aq = y | |
634 | + | let ar = size(aq) | |
635 | + | let as = $Tuple4(aH, bm.transactionId, bH, nil) | |
636 | + | func at (au,av) = if ((av >= ar)) | |
637 | + | then au | |
638 | + | else ch(au, aq[av]) | |
639 | + | ||
640 | + | func aw (au,av) = if ((av >= ar)) | |
641 | + | then au | |
642 | + | else throw("List size exceeds 20") | |
643 | + | ||
644 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
645 | + | } | |
646 | + | $Tuple2([DeleteEntry(cg), StringEntry(u((o + 1)), cr._3), IntegerEntry(n(2, (o + 1)), cr._1)], cr._4) | |
647 | + | } | |
648 | + | } | |
649 | + | } | |
650 | + | ||
651 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000000000 | |
5 | 5 | ||
6 | 6 | let b = 86400000 | |
7 | 7 | ||
8 | 8 | func c (d) = ("acresStakedAmountByUser_" + d) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = ("acresLockedAmountByUser_" + d) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f (d) = ("acresLockedEtaByUser_" + d) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | let g = "acresStakedAmountTotal" | |
18 | 18 | ||
19 | 19 | let h = 5000000 | |
20 | 20 | ||
21 | 21 | let i = 3456000 | |
22 | 22 | ||
23 | 23 | let j = 10 | |
24 | 24 | ||
25 | 25 | func k (l,d) = makeString(["%s%d%s__isAwardedByPromoAndUser", toString(l), d], "__") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (l) = ("%s%d__ticketsTotalByPromo__" + toString(l)) | |
29 | 29 | ||
30 | 30 | ||
31 | - | ||
31 | + | func n (l,o) = makeString(["%s%d%d__ticketsTotalByPromoAndRound", toString(l), toString(o)], "__") | |
32 | 32 | ||
33 | - | let o = { | |
34 | - | let p = n | |
35 | - | if ((base58'2W' == p)) | |
33 | + | ||
34 | + | let p = take(drop(this.bytes, 1), 1) | |
35 | + | ||
36 | + | let q = { | |
37 | + | let r = p | |
38 | + | if ((base58'2W' == r)) | |
36 | 39 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
37 | - | else if ((base58'2T' == | |
40 | + | else if ((base58'2T' == r)) | |
38 | 41 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
39 | 42 | else throw("Unknown chain") | |
40 | 43 | } | |
41 | 44 | ||
42 | - | let | |
43 | - | let | |
44 | - | if ((base58'2W' == | |
45 | + | let s = { | |
46 | + | let r = p | |
47 | + | if ((base58'2W' == r)) | |
45 | 48 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
46 | - | else if ((base58'2T' == | |
49 | + | else if ((base58'2T' == r)) | |
47 | 50 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
48 | 51 | else throw("Unknown chain") | |
49 | 52 | } | |
50 | 53 | ||
51 | - | let | |
54 | + | let t = "promo2Map" | |
52 | 55 | ||
53 | - | let s = "__" | |
54 | - | ||
55 | - | let t = 1000000 | |
56 | - | ||
57 | - | let u = 100000000 | |
58 | - | ||
59 | - | func v (w,x) = valueOrErrorMessage(getString(w, x), makeString(["mandatory ", toString(w), ".", x, " is not defined"], "")) | |
56 | + | func u (o) = ("promo2MapForRound__" + toString(o)) | |
60 | 57 | ||
61 | 58 | ||
62 | - | let | |
59 | + | let v = "__" | |
63 | 60 | ||
64 | - | let | |
61 | + | let w = 1000000 | |
65 | 62 | ||
66 | - | let | |
63 | + | let x = 100000000 | |
67 | 64 | ||
68 | - | let | |
65 | + | let y = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
69 | 66 | ||
70 | - | func | |
67 | + | func z (A,B) = valueOrErrorMessage(getString(A, B), makeString(["mandatory ", toString(A), ".", B, " is not defined"], "")) | |
71 | 68 | ||
72 | 69 | ||
73 | - | func D () = "%s__restAddr" | |
70 | + | let C = 1 | |
71 | + | ||
72 | + | let D = 2 | |
73 | + | ||
74 | + | let E = 4 | |
75 | + | ||
76 | + | let F = 8 | |
77 | + | ||
78 | + | func G () = "%s__restConfig" | |
74 | 79 | ||
75 | 80 | ||
76 | - | func | |
81 | + | func H () = "%s__restAddr" | |
77 | 82 | ||
78 | 83 | ||
79 | - | func | |
84 | + | func I (J) = split_4C(z(J, G()), v) | |
80 | 85 | ||
81 | 86 | ||
82 | - | let J = addressFromStringValue(valueOrElse(getString(this, D()), q)) | |
83 | - | ||
84 | - | let H = E(J) | |
85 | - | ||
86 | - | let K = G(H, y) | |
87 | - | ||
88 | - | let L = G(H, z) | |
89 | - | ||
90 | - | let M = G(H, A) | |
91 | - | ||
92 | - | let N = G(H, B) | |
93 | - | ||
94 | - | let O = "acresIssuedAmount" | |
95 | - | ||
96 | - | let P = "acresAssetId" | |
97 | - | ||
98 | - | let Q = valueOrErrorMessage(getBinary(N, P), "ACRES is not issued yet") | |
99 | - | ||
100 | - | func R (d) = ("acresStakedTimeByUser_" + d) | |
87 | + | func K (L,M) = valueOrErrorMessage(addressFromString(L[M]), ("Rest cfg doesn't contain address at index " + toString(M))) | |
101 | 88 | ||
102 | 89 | ||
103 | - | let | |
90 | + | let N = addressFromStringValue(valueOrElse(getString(this, H()), s)) | |
104 | 91 | ||
105 | - | func T () = "resTypesProportions" | |
92 | + | let L = I(N) | |
93 | + | ||
94 | + | let O = K(L, C) | |
95 | + | ||
96 | + | let P = K(L, D) | |
97 | + | ||
98 | + | let Q = K(L, E) | |
99 | + | ||
100 | + | let R = K(L, F) | |
101 | + | ||
102 | + | let S = "acresIssuedAmount" | |
103 | + | ||
104 | + | let T = "acresAssetId" | |
105 | + | ||
106 | + | let U = valueOrErrorMessage(getBinary(R, T), "ACRES is not issued yet") | |
107 | + | ||
108 | + | func V (d) = ("acresStakedTimeByUser_" + d) | |
106 | 109 | ||
107 | 110 | ||
108 | - | func U (V) = ("stakedPiecesByOwner_" + V) | |
111 | + | let W = 0 | |
112 | + | ||
113 | + | let X = 2 | |
114 | + | ||
115 | + | func Y (A) = ("finishBlockFor_" + A) | |
109 | 116 | ||
110 | 117 | ||
111 | - | func W (X) = { | |
112 | - | let p = X | |
113 | - | if ($isInstanceOf(p, "Int")) | |
118 | + | func Z () = "resTypesProportions" | |
119 | + | ||
120 | + | ||
121 | + | func aa (ab) = ("stakedPiecesByOwner_" + ab) | |
122 | + | ||
123 | + | ||
124 | + | func ac (ad) = { | |
125 | + | let r = ad | |
126 | + | if ($isInstanceOf(r, "Int")) | |
114 | 127 | then { | |
115 | - | let | |
116 | - | | |
128 | + | let ae = r | |
129 | + | ae | |
117 | 130 | } | |
118 | 131 | else throw("fail to cast into Int") | |
119 | 132 | } | |
120 | 133 | ||
121 | 134 | ||
122 | - | func | |
123 | - | let | |
124 | - | if ($isInstanceOf( | |
135 | + | func af (ag) = { | |
136 | + | let r = ag | |
137 | + | if ($isInstanceOf(r, "(Int, Int)")) | |
125 | 138 | then { | |
126 | - | let | |
127 | - | | |
139 | + | let ah = r | |
140 | + | ah | |
128 | 141 | } | |
129 | 142 | else throw("fail to cast into (Int, Int)") | |
130 | 143 | } | |
131 | 144 | ||
132 | 145 | ||
133 | - | func ac (ad) = { | |
134 | - | let ae = split(valueOrElse(getString(K, T()), "0_0_0_0_0_0"), "_") | |
135 | - | func af (ag,ah) = (ag + parseIntValue(ah)) | |
146 | + | func ai (d) = ("lastTxIdByUser_" + d) | |
136 | 147 | ||
137 | - | let ai = { | |
138 | - | let aj = ae | |
139 | - | let ak = size(aj) | |
140 | - | let al = 0 | |
141 | - | func am (an,ao) = if ((ao >= ak)) | |
142 | - | then an | |
143 | - | else af(an, aj[ao]) | |
144 | 148 | ||
145 | - | func ap (an,ao) = if ((ao >= ak)) | |
146 | - | then an | |
149 | + | func aj (ak) = { | |
150 | + | let al = split(valueOrElse(getString(O, Z()), "0_0_0_0_0_0"), "_") | |
151 | + | func am (an,ao) = (an + parseIntValue(ao)) | |
152 | + | ||
153 | + | let ap = { | |
154 | + | let aq = al | |
155 | + | let ar = size(aq) | |
156 | + | let as = 0 | |
157 | + | func at (au,av) = if ((av >= ar)) | |
158 | + | then au | |
159 | + | else am(au, aq[av]) | |
160 | + | ||
161 | + | func aw (au,av) = if ((av >= ar)) | |
162 | + | then au | |
147 | 163 | else throw("List size exceeds 6") | |
148 | 164 | ||
149 | - | | |
165 | + | aw(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6) | |
150 | 166 | } | |
151 | - | let | |
152 | - | [ | |
167 | + | let ax = valueOrElse(getInteger(O, aa(ak)), 0) | |
168 | + | [ap, ax] | |
153 | 169 | } | |
154 | 170 | ||
155 | 171 | ||
156 | - | func | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | (((toString(( | |
172 | + | func ay (ag,az) = { | |
173 | + | let aA = pow(10, 0, az, 0, 0, DOWN) | |
174 | + | let aB = toString((ag % aA)) | |
175 | + | let aC = drop(toString(aA), (1 + size(aB))) | |
176 | + | (((toString((ag / aA)) + ".") + aC) + aB) | |
161 | 177 | } | |
162 | 178 | ||
163 | 179 | ||
164 | - | func | |
165 | - | let | |
166 | - | let | |
167 | - | ( | |
180 | + | func aD (ag,aE) = { | |
181 | + | let aF = toString(ag) | |
182 | + | let aC = drop(toString(pow(10, 0, (aE - size(aF)), 0, 0, DOWN)), 1) | |
183 | + | (aC + aF) | |
168 | 184 | } | |
169 | 185 | ||
170 | 186 | ||
171 | - | let az = 10000000 | |
187 | + | func aG (aH,aI,aJ) = if ((0 >= aH)) | |
188 | + | then throw("maxValue should be > 0") | |
189 | + | else { | |
190 | + | let aK = sha256((aI + aJ)) | |
191 | + | (toInt(aK) % aH) | |
192 | + | } | |
172 | 193 | ||
173 | - | let aA = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
174 | 194 | ||
175 | - | let | |
195 | + | let aL = 10000000 | |
176 | 196 | ||
177 | - | let aC = { | |
178 | - | let p = n | |
179 | - | if ((base58'2W' == p)) | |
197 | + | let aM = "3P2NGX4Q5nge1MCauwQW5aqYLdkccSGj1Ep_3P2xFAHW9yhyNohYozWd4HFhEXZu3bsNSoR_3P2yKaZ2gvn9Xe5tti81a7P9LZhHgjvToV9_3P37zQ3cf2ecu55RmJqEiGSivdzN9avt3m9_3P4az6dtzsvGCWFAxa94UdevKzXyEwxEiFG_3P4kZU6X3TTLFcSUe55JSy8BySqitcPgMBz_3P5hCxBEh3NgNizZhNBreyBSqtbhJYLkKPD_3P7HLvucy11yxyMJUwjzXFHHKMEDwi1EwfC_3P8JuaqH9PTQAv8D5HBGgQfKauLTYt2NQft_3P9gTDB4rtDEVbpX3asU63H4Zinh2EnTmZE_3P9iN3qrtfJicUVy7amZeVsetVD3vUMk8be_3PCa2BsAa6JBLirszQfV5r9fJrujfhwtwfP_3PD3i4XN8KtygcFx4ry5M7UGqdfH8VYvtRT_3PDEMnnJNc2kx9cPEmvVvhXUr8SvhANKhsa_3PDGE9tKQizaeZFeDDq5aYSv89nwYbfirpZ_3PDMKQTCrUPZECVXEJJ8m1sHtutSu1naSf1_3PGh2Qu6Yvx8GTCRRVNvBUVZLdaidYSaxo5_3PKkmAtbSK5D2hQdo1RfEg8eXyMbDcRUc92_3PLMnbxzssP8W8E8XjJ1RLBBg8UZL8Cz3P2_3PMuxo4PCAox9s4a7R1eszh4iqqu8gS7jHv_3PNrMtEQChw87WZU1JAJ7aGHykCa8TjnDNK_3PPuBXfWoBy3EEory7c7vgi9Usjka7o5tBj_3PQwyeyEhT4Y6aGAL6tg73aQWJtV1zRt3nR_3PRGDShuMGb84MJtTJvtTg8qDfswkYWcm3e" | |
198 | + | ||
199 | + | let aN = 4970178 | |
200 | + | ||
201 | + | let aO = { | |
202 | + | let r = p | |
203 | + | if ((base58'2W' == r)) | |
180 | 204 | then 1700524800000 | |
181 | - | else if ((base58'2T' == | |
205 | + | else if ((base58'2T' == r)) | |
182 | 206 | then 1700420400000 | |
183 | 207 | else throw("Unknown chain") | |
184 | 208 | } | |
185 | 209 | ||
186 | - | let | |
187 | - | let | |
188 | - | if ((base58'2W' == | |
210 | + | let aP = { | |
211 | + | let r = p | |
212 | + | if ((base58'2W' == r)) | |
189 | 213 | then 1701043199999 | |
190 | - | else if ((base58'2T' == | |
214 | + | else if ((base58'2T' == r)) | |
191 | 215 | then 1700496000000 | |
192 | 216 | else throw("Unknown chain") | |
193 | 217 | } | |
194 | 218 | ||
195 | - | func aE (d) = contains(aA, d) | |
219 | + | let aQ = [1, 3, 5, 20] | |
220 | + | ||
221 | + | let aR = [500000000, 200000000, 100000000, 20000000] | |
222 | + | ||
223 | + | func aS (d) = contains(aM, d) | |
196 | 224 | ||
197 | 225 | ||
198 | - | func | |
226 | + | func aT () = ac(reentrantInvoke(O, "saveLastTx", nil, nil)) | |
199 | 227 | ||
200 | 228 | ||
201 | - | func | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | ( | |
229 | + | func aU (d,aV,aW) = { | |
230 | + | let aX = (lastBlock.timestamp - aW) | |
231 | + | let aY = fraction(aX, (i * aV), (b * x)) | |
232 | + | let aZ = ac(invoke(P, "sellResourcesWorldREADONLY", [aY], nil)) | |
233 | + | let ba = max([0, aZ]) | |
234 | + | (ba * j) | |
207 | 235 | } | |
208 | 236 | ||
209 | 237 | ||
210 | - | func | |
211 | - | let | |
212 | - | if ((0 > | |
213 | - | then throw(((("Saved timestamp is in future, saved = " + toString( | |
238 | + | func bb (d,aV,aW) = { | |
239 | + | let aX = (lastBlock.timestamp - aW) | |
240 | + | if ((0 > aX)) | |
241 | + | then throw(((("Saved timestamp is in future, saved = " + toString(aW)) + ", current = ") + toString(lastBlock.timestamp))) | |
214 | 242 | else { | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
243 | + | let aY = fraction(aX, (i * aV), (b * x)) | |
244 | + | let aZ = ac(invoke(P, "sellResourcesWorldREADONLY", [aY], nil)) | |
245 | + | let ba = if ((0 >= aZ)) | |
218 | 246 | then 0 | |
219 | - | else | |
220 | - | ( | |
247 | + | else af(invoke(P, "sellResourcesWorld", [d, aY], nil))._1 | |
248 | + | (ba * j) | |
221 | 249 | } | |
222 | 250 | } | |
223 | 251 | ||
224 | 252 | ||
225 | - | func | |
226 | - | let | |
227 | - | let | |
228 | - | let | |
229 | - | let | |
230 | - | let | |
253 | + | func bc (bd,be,bf,bg) = { | |
254 | + | let bh = lastBlock.timestamp | |
255 | + | let bi = max([0, (be - bh)]) | |
256 | + | let bj = max([0, (bg - bh)]) | |
257 | + | let bk = (bd + bf) | |
258 | + | let bl = if ((bk == 0)) | |
231 | 259 | then 0 | |
232 | - | else (fraction( | |
233 | - | ( | |
260 | + | else (fraction(bi, bd, bk) + fraction(bj, bf, bk)) | |
261 | + | (bh + bl) | |
234 | 262 | } | |
235 | 263 | ||
236 | 264 | ||
237 | - | @Callable( | |
238 | - | func constructorV1 ( | |
265 | + | @Callable(bm) | |
266 | + | func constructorV1 (bn,bo) = if ((bm.caller != this)) | |
239 | 267 | then throw("Permission denied") | |
240 | - | else if (isDefined(getBinary( | |
268 | + | else if (isDefined(getBinary(T))) | |
241 | 269 | then throw("Already initialized") | |
242 | 270 | else { | |
243 | - | let | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | [ | |
271 | + | let bp = (aj("")[W] + bo) | |
272 | + | let bq = (a - (bp * x)) | |
273 | + | let br = Issue("ACRES", "WavesLands land acres investment token", bq, 8, false, unit, 0) | |
274 | + | let bs = calculateAssetId(br) | |
275 | + | [br, IntegerEntry(S, bq), BinaryEntry(T, bs), StringEntry(H(), bn)] | |
248 | 276 | } | |
249 | 277 | ||
250 | 278 | ||
251 | 279 | ||
252 | - | @Callable( | |
253 | - | func unstakeAcres ( | |
254 | - | let | |
255 | - | if (( | |
256 | - | then if ((0 >= | |
280 | + | @Callable(bm) | |
281 | + | func unstakeAcres (bt) = { | |
282 | + | let bu = aT() | |
283 | + | if ((bu == bu)) | |
284 | + | then if ((0 >= bt)) | |
257 | 285 | then throw("Amount should be positive") | |
258 | 286 | else { | |
259 | - | let | |
260 | - | if ((size( | |
287 | + | let A = toString(bm.caller) | |
288 | + | if ((size(bm.payments) != 0)) | |
261 | 289 | then throw("No payments required") | |
262 | 290 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | let | |
266 | - | if (( | |
267 | - | then throw(((("You have only " + | |
291 | + | let bv = V(A) | |
292 | + | let bw = c(A) | |
293 | + | let bx = valueOrElse(getInteger(bw), 0) | |
294 | + | if ((bt > bx)) | |
295 | + | then throw(((("You have only " + ay(bx, 8)) + " ACRES staked, tried to unstake ") + ay(bt, 8))) | |
268 | 296 | else { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (if (( | |
273 | - | then ( | |
297 | + | let by = valueOrElse(getInteger(e(A)), 0) | |
298 | + | let bz = valueOrElse(getInteger(f(A)), 0) | |
299 | + | let bh = lastBlock.timestamp | |
300 | + | if (if ((bh >= aO)) | |
301 | + | then (aP >= bh) | |
274 | 302 | else false) | |
275 | 303 | then throw("You cannot unstake ACRES during Promo2") | |
276 | 304 | else { | |
277 | - | let | |
278 | - | then (( | |
279 | - | else ( | |
280 | - | if (if (( | |
281 | - | then ( | |
305 | + | let bA = if (aS(A)) | |
306 | + | then ((bx - by) - aN) | |
307 | + | else (bx - by) | |
308 | + | if (if ((bz > bh)) | |
309 | + | then (bt > bA) | |
282 | 310 | else false) | |
283 | - | then throw(((("Only " + | |
311 | + | then throw(((("Only " + ay(bA, 8)) + " ACRES can be unstaked now, wait until ") + toString(bz))) | |
284 | 312 | else { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | $Tuple2([IntegerEntry( | |
313 | + | let bB = valueOrElse(getInteger(g), 0) | |
314 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
315 | + | let bD = bb(A, bx, valueOrElse(getInteger(bv), 0)) | |
316 | + | $Tuple2([IntegerEntry(bv, lastBlock.timestamp), IntegerEntry(bw, (bx - bt)), IntegerEntry(g, (bB - bt)), ScriptTransfer(bm.caller, (bt + bD), U)], $Tuple2(bu, bC)) | |
289 | 317 | } | |
290 | 318 | } | |
291 | 319 | } | |
292 | 320 | } | |
293 | 321 | } | |
294 | 322 | else throw("Strict value is not equal to itself.") | |
295 | 323 | } | |
296 | 324 | ||
297 | 325 | ||
298 | 326 | ||
299 | - | @Callable( | |
327 | + | @Callable(bm) | |
300 | 328 | func stakeAcres () = { | |
301 | - | let | |
302 | - | if (( | |
329 | + | let bu = aT() | |
330 | + | if ((bu == bu)) | |
303 | 331 | then { | |
304 | - | let | |
305 | - | if ((size( | |
332 | + | let A = toString(bm.caller) | |
333 | + | if ((size(bm.payments) != 1)) | |
306 | 334 | then throw("exactly 1 payment must be attached") | |
307 | 335 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | if (if (!(isDefined( | |
336 | + | let bE = bm.payments[0] | |
337 | + | let bF = bE.amount | |
338 | + | if (if (!(isDefined(bE.assetId))) | |
311 | 339 | then true | |
312 | - | else (value( | |
340 | + | else (value(bE.assetId) != U)) | |
313 | 341 | then throw("ACRES payments only!") | |
314 | 342 | else { | |
315 | - | let | |
316 | - | if (( | |
343 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
344 | + | if ((bC == bC)) | |
317 | 345 | then { | |
318 | - | let | |
319 | - | if (if (( | |
346 | + | let bh = lastBlock.timestamp | |
347 | + | if (if ((aO > bh)) | |
320 | 348 | then true | |
321 | - | else ( | |
349 | + | else (bh > aP)) | |
322 | 350 | then { | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2(((((if (( | |
351 | + | let bv = V(A) | |
352 | + | let bw = c(A) | |
353 | + | let bx = valueOrElse(getInteger(bw), 0) | |
354 | + | let bB = valueOrElse(getInteger(g), 0) | |
355 | + | let bD = bb(A, bx, valueOrElse(getInteger(bv), 0)) | |
356 | + | $Tuple2(((((if ((bD == 0)) | |
329 | 357 | then nil | |
330 | - | else [ScriptTransfer( | |
358 | + | else [ScriptTransfer(bm.caller, bD, U)]) :+ IntegerEntry(bv, lastBlock.timestamp)) :+ IntegerEntry(bw, (bx + bF))) :+ IntegerEntry(g, (bB + bF))), $Tuple2(bu, bC)) | |
331 | 359 | } | |
332 | - | else if (( | |
333 | - | then throw((("Min staked amount during promo action should be at least " + | |
360 | + | else if ((aL > bF)) | |
361 | + | then throw((("Min staked amount during promo action should be at least " + ay(aL, 8)) + " ACRES")) | |
334 | 362 | else { | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
363 | + | let bG = invoke(this, "sendLockedAcres", [A, bF, 30], nil) | |
364 | + | let bH = valueOrElse(getString(t), "") | |
365 | + | let bI = if (contains(bH, A)) | |
338 | 366 | then { | |
339 | - | let | |
340 | - | let | |
341 | - | (((( | |
367 | + | let bJ = split_51C(bH, A) | |
368 | + | let bd = parseIntValue(take(drop(bJ[1], 1), 14)) | |
369 | + | ((((bJ[0] + A) + ":") + aD((bd + bF), 14)) + drop(bJ[1], 15)) | |
342 | 370 | } | |
343 | 371 | else { | |
344 | - | let | |
345 | - | if (( | |
346 | - | then | |
347 | - | else (( | |
372 | + | let bK = ((A + ":") + aD(bF, 14)) | |
373 | + | if ((bH == "")) | |
374 | + | then bK | |
375 | + | else ((bH + "_") + bK) | |
348 | 376 | } | |
349 | - | $Tuple2([StringEntry( | |
377 | + | $Tuple2([StringEntry(t, bI)], $Tuple3(bu, bC, bG)) | |
350 | 378 | } | |
351 | 379 | } | |
352 | 380 | else throw("Strict value is not equal to itself.") | |
353 | 381 | } | |
354 | 382 | } | |
355 | 383 | } | |
356 | 384 | else throw("Strict value is not equal to itself.") | |
357 | 385 | } | |
358 | 386 | ||
359 | 387 | ||
360 | 388 | ||
361 | - | @Callable( | |
389 | + | @Callable(bm) | |
362 | 390 | func buyAcres () = { | |
363 | - | let | |
364 | - | if (( | |
391 | + | let bu = aT() | |
392 | + | if ((bu == bu)) | |
365 | 393 | then { | |
366 | - | let | |
367 | - | if ((size( | |
394 | + | let A = toString(bm.caller) | |
395 | + | if ((size(bm.payments) != 1)) | |
368 | 396 | then throw("exactly 1 payment must be attached") | |
369 | 397 | else { | |
370 | - | let | |
371 | - | let | |
372 | - | if (if (!(isDefined( | |
398 | + | let bE = bm.payments[0] | |
399 | + | let bF = bE.amount | |
400 | + | if (if (!(isDefined(bE.assetId))) | |
373 | 401 | then true | |
374 | - | else (value( | |
402 | + | else (value(bE.assetId) != q)) | |
375 | 403 | then throw("USDT payments only!") | |
376 | - | else if (( | |
377 | - | then throw((("Min payment should be " + | |
404 | + | else if ((w > bF)) | |
405 | + | then throw((("Min payment should be " + ay(w, 6)) + " USDT")) | |
378 | 406 | else { | |
379 | - | let | |
380 | - | let | |
381 | - | $Tuple2([ScriptTransfer( | |
407 | + | let aV = (bF * j) | |
408 | + | let bL = ac(invoke(O, "updateAccStats", [A, fraction(h, aV, (25 * x))], nil)) | |
409 | + | $Tuple2([ScriptTransfer(P, bF, q), ScriptTransfer(bm.caller, aV, U)], $Tuple2(bu, bL)) | |
382 | 410 | } | |
383 | 411 | } | |
384 | 412 | } | |
385 | 413 | else throw("Strict value is not equal to itself.") | |
386 | 414 | } | |
387 | 415 | ||
388 | 416 | ||
389 | 417 | ||
390 | - | @Callable( | |
391 | - | func sendAcres (d, | |
418 | + | @Callable(bm) | |
419 | + | func sendAcres (d,bt) = if ((bm.caller != P)) | |
392 | 420 | then throw("Permission denied") | |
393 | - | else $Tuple2([ScriptTransfer(addressFromStringValue(d), | |
421 | + | else $Tuple2([ScriptTransfer(addressFromStringValue(d), bt, U)], bt) | |
394 | 422 | ||
395 | 423 | ||
396 | 424 | ||
397 | - | @Callable( | |
398 | - | func sendLockedAcres (d, | |
399 | - | then ( | |
425 | + | @Callable(bm) | |
426 | + | func sendLockedAcres (d,bt,bM) = if (if ((bm.caller != this)) | |
427 | + | then (bm.caller != N) | |
400 | 428 | else false) | |
401 | 429 | then throw("Permission denied") | |
402 | 430 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | $Tuple2([IntegerEntry( | |
431 | + | let bh = lastBlock.timestamp | |
432 | + | let bv = V(d) | |
433 | + | let bw = c(d) | |
434 | + | let bx = valueOrElse(getInteger(bw), 0) | |
435 | + | let bB = valueOrElse(getInteger(g), 0) | |
436 | + | let bN = valueOrElse(getInteger(bv), bh) | |
437 | + | let bO = f(d) | |
438 | + | let bP = e(d) | |
439 | + | let bQ = valueOrElse(getInteger(bP), 0) | |
440 | + | let bR = valueOrElse(getInteger(bO), 0) | |
441 | + | let bS = bc(bQ, bR, bt, (bh + (bM * b))) | |
442 | + | $Tuple2([IntegerEntry(bv, bN), IntegerEntry(bw, (bx + bt)), IntegerEntry(g, (bB + bt)), IntegerEntry(bO, bS), IntegerEntry(bP, (bQ + bt))], bt) | |
415 | 443 | } | |
416 | 444 | ||
417 | 445 | ||
418 | 446 | ||
419 | - | @Callable( | |
420 | - | func burnAcres ( | |
447 | + | @Callable(bm) | |
448 | + | func burnAcres (bt) = if ((bm.caller != O)) | |
421 | 449 | then throw("Permission denied") | |
422 | 450 | else { | |
423 | - | let | |
424 | - | if ((0 > | |
451 | + | let bT = (valueOrElse(getInteger(S), 0) - bt) | |
452 | + | if ((0 > bT)) | |
425 | 453 | then throw("Attempt to burn more ACRES, than exists") | |
426 | - | else $Tuple2([Burn( | |
454 | + | else $Tuple2([Burn(U, bt), IntegerEntry(S, bT)], bt) | |
427 | 455 | } | |
428 | 456 | ||
429 | 457 | ||
430 | 458 | ||
431 | - | @Callable( | |
459 | + | @Callable(bm) | |
432 | 460 | func claimAcres () = { | |
433 | - | let | |
434 | - | if (( | |
461 | + | let bu = aT() | |
462 | + | if ((bu == bu)) | |
435 | 463 | then { | |
436 | - | let | |
437 | - | if ((size( | |
464 | + | let A = toString(bm.caller) | |
465 | + | if ((size(bm.payments) != 0)) | |
438 | 466 | then throw("No payments required") | |
439 | 467 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | $Tuple2([IntegerEntry( | |
468 | + | let bv = V(A) | |
469 | + | let bw = c(A) | |
470 | + | let aV = valueOrElse(getInteger(bw), 0) | |
471 | + | let bC = invoke(Q, "onStakeUnstakeLand", [A], nil) | |
472 | + | let bD = bb(A, aV, valueOrElse(getInteger(bv), 0)) | |
473 | + | $Tuple2([IntegerEntry(bv, lastBlock.timestamp), ScriptTransfer(bm.caller, bD, U)], $Tuple2(bu, bC)) | |
446 | 474 | } | |
447 | 475 | } | |
448 | 476 | else throw("Strict value is not equal to itself.") | |
449 | 477 | } | |
450 | 478 | ||
451 | 479 | ||
452 | 480 | ||
453 | - | @Callable( | |
454 | - | func claimAcresREADONLY ( | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | $Tuple2(nil, [ | |
481 | + | @Callable(bm) | |
482 | + | func claimAcresREADONLY (A) = { | |
483 | + | let bv = V(A) | |
484 | + | let bw = c(A) | |
485 | + | let aV = valueOrElse(getInteger(bw), 0) | |
486 | + | let bU = valueOrElse(getInteger(bv), 0) | |
487 | + | let bD = aU(A, aV, bU) | |
488 | + | $Tuple2(nil, [bD, bU]) | |
461 | 489 | } | |
462 | 490 | ||
463 | 491 | ||
464 | 492 | ||
465 | - | @Callable( | |
493 | + | @Callable(bm) | |
466 | 494 | func claimPromo2 () = { | |
467 | - | let | |
468 | - | if (( | |
495 | + | let bu = aT() | |
496 | + | if ((bu == bu)) | |
469 | 497 | then { | |
470 | - | let | |
471 | - | if ((size( | |
498 | + | let A = toString(bm.caller) | |
499 | + | if ((size(bm.payments) != 0)) | |
472 | 500 | then throw("No payments required") | |
473 | 501 | else { | |
474 | - | let | |
475 | - | if (( | |
502 | + | let bh = lastBlock.timestamp | |
503 | + | if ((aP > bh)) | |
476 | 504 | then throw("Promo 2 is not over yet") | |
477 | 505 | else { | |
478 | - | let | |
479 | - | if (valueOrElse(getBoolean( | |
480 | - | then throw((("Your wallet " + | |
506 | + | let bV = k(2, A) | |
507 | + | if (valueOrElse(getBoolean(bV), false)) | |
508 | + | then throw((("Your wallet " + A) + " is already awarded in promo 2")) | |
481 | 509 | else { | |
482 | - | let | |
483 | - | if (!(contains( | |
510 | + | let bH = valueOrElse(getString(t), "") | |
511 | + | if (!(contains(bH, A))) | |
484 | 512 | then throw("You are not participant of promo 2") | |
485 | 513 | else { | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
514 | + | let bJ = split_51C(bH, A) | |
515 | + | let aV = parseIntValue(take(drop(bJ[1], 1), 14)) | |
516 | + | let bW = (aV / aL) | |
517 | + | let bX = valueOrElse(getInteger(m(2)), 0) | |
518 | + | let bY = if ((bX == 0)) | |
491 | 519 | then { | |
492 | - | func | |
520 | + | func bZ (an,ca) = (an + (parseIntValue(split(ca, ":")[1]) / aL)) | |
493 | 521 | ||
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | func | |
499 | - | then | |
500 | - | else | |
522 | + | let cb = { | |
523 | + | let aq = split_51C(bH, "_") | |
524 | + | let ar = size(aq) | |
525 | + | let as = 0 | |
526 | + | func at (au,av) = if ((av >= ar)) | |
527 | + | then au | |
528 | + | else bZ(au, aq[av]) | |
501 | 529 | ||
502 | - | func | |
503 | - | then | |
530 | + | func aw (au,av) = if ((av >= ar)) | |
531 | + | then au | |
504 | 532 | else throw("List size exceeds 50") | |
505 | 533 | ||
506 | - | | |
534 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 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) | |
507 | 535 | } | |
508 | - | $Tuple2([IntegerEntry(m(2), | |
536 | + | $Tuple2([IntegerEntry(m(2), cb), IntegerEntry(n(2, 1), cb)], cb) | |
509 | 537 | } | |
510 | - | else $Tuple2(nil, | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | $Tuple2(( | |
538 | + | else $Tuple2(nil, bX) | |
539 | + | let cc = bY._1 | |
540 | + | let cd = bY._2 | |
541 | + | let ce = fraction(bW, aL, cd) | |
542 | + | let bG = invoke(this, "sendLockedAcres", [A, ce, 30], nil) | |
543 | + | $Tuple2(((cc :+ BooleanEntry(bV, true)) :+ StringEntry(u(1), bH)), bG) | |
516 | 544 | } | |
517 | 545 | } | |
518 | 546 | } | |
519 | 547 | } | |
520 | 548 | } | |
521 | 549 | else throw("Strict value is not equal to itself.") | |
522 | 550 | } | |
523 | 551 | ||
524 | 552 | ||
553 | + | ||
554 | + | @Callable(bm) | |
555 | + | func commitForPromo2Round (o) = if ((bm.caller != this)) | |
556 | + | then throw("Permission denied") | |
557 | + | else if (if ((1 > o)) | |
558 | + | then true | |
559 | + | else (o > 4)) | |
560 | + | then throw(("Invalid roundId: " + toString(o))) | |
561 | + | else { | |
562 | + | let cf = (height + X) | |
563 | + | $Tuple2([IntegerEntry(Y(("2_" + toString(o))), cf)], cf) | |
564 | + | } | |
565 | + | ||
566 | + | ||
567 | + | ||
568 | + | @Callable(bm) | |
569 | + | func drawPromo2Round (o) = if ((bm.caller != this)) | |
570 | + | then throw("Permission denied") | |
571 | + | else if (if ((1 > o)) | |
572 | + | then true | |
573 | + | else (o > 4)) | |
574 | + | then throw(("Invalid roundId: " + toString(o))) | |
575 | + | else { | |
576 | + | let cg = Y(("2_" + toString(o))) | |
577 | + | let cf = valueOrErrorMessage(getInteger(cg), "You have to commitForPromo2Round(roundId) first!") | |
578 | + | if ((cf > height)) | |
579 | + | then throw(("Random number is not ready yet, wait until height = " + toString(cf))) | |
580 | + | else { | |
581 | + | let aH = valueOrElse(getInteger(n(2, o)), 0) | |
582 | + | if ((aH == 0)) | |
583 | + | then throw("Please call claimPromo2() at least once") | |
584 | + | else { | |
585 | + | let aJ = value(value(blockInfoByHeight(cf)).vrf) | |
586 | + | let aI = bm.transactionId | |
587 | + | let bH = valueOrElse(getString(u(o)), "") | |
588 | + | func ch (ci,cj) = if ((cj > aQ[(o - 1)])) | |
589 | + | then ci | |
590 | + | else { | |
591 | + | let ck = aG(ci._1, ci._2, aJ) | |
592 | + | let cl = if ((ci._3 == "")) | |
593 | + | then nil | |
594 | + | else split_51C(ci._3, "_") | |
595 | + | func bZ (an,ca) = { | |
596 | + | let bJ = split(ca, ":") | |
597 | + | let d = bJ[0] | |
598 | + | let bW = (parseIntValue(bJ[1]) / aL) | |
599 | + | let cm = (an._1 + bW) | |
600 | + | if (if ((an._3 == "")) | |
601 | + | then (cm > ck) | |
602 | + | else false) | |
603 | + | then $Tuple3(cm, bW, d) | |
604 | + | else $Tuple3(cm, an._2, an._3) | |
605 | + | } | |
606 | + | ||
607 | + | let cn = { | |
608 | + | let aq = cl | |
609 | + | let ar = size(aq) | |
610 | + | let as = $Tuple3(0, 0, "") | |
611 | + | func at (au,av) = if ((av >= ar)) | |
612 | + | then au | |
613 | + | else bZ(au, aq[av]) | |
614 | + | ||
615 | + | func aw (au,av) = if ((av >= ar)) | |
616 | + | then au | |
617 | + | else throw("List size exceeds 50") | |
618 | + | ||
619 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 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) | |
620 | + | } | |
621 | + | let co = cn._3 | |
622 | + | if ((co == "")) | |
623 | + | then throw("no winner") | |
624 | + | else { | |
625 | + | let cp = split_51C(ci._3, co) | |
626 | + | let cq = (cp[0] + drop(cp[1], 15)) | |
627 | + | let bG = invoke(this, "sendLockedAcres", [co, aR[(o - 1)], 30], nil) | |
628 | + | $Tuple4((ci._1 - cn._2), fromBase58String(getStringValue(O, ai(co))), cq, (ci._4 :+ bG)) | |
629 | + | } | |
630 | + | } | |
631 | + | ||
632 | + | let cr = { | |
633 | + | let aq = y | |
634 | + | let ar = size(aq) | |
635 | + | let as = $Tuple4(aH, bm.transactionId, bH, nil) | |
636 | + | func at (au,av) = if ((av >= ar)) | |
637 | + | then au | |
638 | + | else ch(au, aq[av]) | |
639 | + | ||
640 | + | func aw (au,av) = if ((av >= ar)) | |
641 | + | then au | |
642 | + | else throw("List size exceeds 20") | |
643 | + | ||
644 | + | aw(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
645 | + | } | |
646 | + | $Tuple2([DeleteEntry(cg), StringEntry(u((o + 1)), cr._3), IntegerEntry(n(2, (o + 1)), cr._1)], cr._4) | |
647 | + | } | |
648 | + | } | |
649 | + | } | |
650 | + | ||
651 | + |
github/deemru/w8io/169f3d6 241.12 ms ◑