tx · 59XkgwYmq5mHKfEiwAkDae3jNdFQgF8gfUfxuAgAXJf8 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37: -0.02100000 Waves 2024.05.14 13:48 [3105589] smart account 3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37 > SELF 0.00000000 Waves
{ "type": 13, "id": "59XkgwYmq5mHKfEiwAkDae3jNdFQgF8gfUfxuAgAXJf8", "fee": 2100000, "feeAssetId": null, "timestamp": 1715683730637, "version": 2, "chainId": 84, "sender": "3N3kKNoJohjVQYNLTrYTGTesr3nq3PZNh37", "senderPublicKey": "vmMXxwQAMUAoisvL193ptPiTtaWQqL5YNu2zs1ouTbY", "proofs": [ "5ghrmYfVVrN8AooDeP2Fxq1Ycx3ezNvPooSL8Xc7DEyXWawwSabbDvDqWfoFUH7PSpPHbze51vYgJsKXhhfg4UW1" ], "script": "base64:BwI9CAISAwoBCBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGBIECgICGE4ACXNlcGFyYXRvcgICX18AB2NoYWluSWQJAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEACGNoYWluSWRXAQFXABBjb250cmFjdEZpbGVuYW1lAhdmdXR1cmVzX2NhbGN1bGF0b3IucmlkZQAFbXVsdDgAgMLXLwAMbXVsdDE4QmlnSW50CQC2AgEAgICQu7rWrfANAA13YXZlc0RlY2ltYWxzAAgADHVzZHREZWNpbWFscwAGAAt3YXZlc1N0cmluZwIFV0FWRVMADXF1ZXVlSXRlbVNpemUAIAAJa011bHRpc2lnAgwlc19fbXVsdGlzaWcBB2tTdGF0dXMCBGRhcHAEdHhJZAkAuQkCCQDMCAICCiVzX19zdGF0dXMJAMwIAgUEZGFwcAkAzAgCBQR0eElkBQNuaWwFCXNlcGFyYXRvcgAJa1NodXRkb3duAgwlc19fc2h1dGRvd24AC2tQdWJsaWNLZXlzAg4lc19fcHVibGljS2V5cwARa01hdGNoZXJQdWJsaWNLZXkCFCVzX19tYXRja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EBnN0YXR1cwkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwUJc3RhdHVzS2V5BwUGc3RhdHVzBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleedNLWY=", "height": 3105589, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AeE9HsMec7dmamH2zeLctPppdFspzLQdfdpsaXCAjDFS Next: 7xFZNz985VKPzaYDyMqb8ESKpoCmugPRbvKHGek6khZg Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | let h = 6 | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "WAVES" | |
21 | 21 | ||
22 | - | func j (k,l) = makeString(["%s__status", k, l], a) | |
22 | + | let j = 32 | |
23 | + | ||
24 | + | let k = "%s__multisig" | |
25 | + | ||
26 | + | func l (m,n) = makeString(["%s__status", m, n], a) | |
23 | 27 | ||
24 | 28 | ||
25 | - | let | |
29 | + | let o = "%s__shutdown" | |
26 | 30 | ||
27 | - | let | |
31 | + | let p = "%s__publicKeys" | |
28 | 32 | ||
29 | - | let | |
33 | + | let q = "%s__matcherPublicKey" | |
30 | 34 | ||
31 | - | func | |
35 | + | func r (s,t) = fraction(toBigInt(s), f, toBigInt(t)) | |
32 | 36 | ||
33 | 37 | ||
34 | - | func | |
38 | + | func u (v,w) = toInt(fraction(v, toBigInt(w), f)) | |
35 | 39 | ||
36 | 40 | ||
37 | - | func | |
41 | + | func x (y) = isDefined(addressFromString(y)) | |
38 | 42 | ||
39 | 43 | ||
40 | - | func | |
44 | + | func z (A) = ((d + ": ") + A) | |
41 | 45 | ||
42 | 46 | ||
43 | - | func | |
47 | + | func B (A) = throw(z(A)) | |
44 | 48 | ||
45 | 49 | ||
46 | - | let A = "%s__factoryAddress" | |
50 | + | func C (D) = if ((D == i)) | |
51 | + | then unit | |
52 | + | else fromBase58String(D) | |
47 | 53 | ||
48 | - | let B = { | |
49 | - | let C = getString(this, A) | |
50 | - | if ($isInstanceOf(C, "String")) | |
54 | + | ||
55 | + | func E (D) = if ((D == unit)) | |
56 | + | then i | |
57 | + | else toBase58String(value(D)) | |
58 | + | ||
59 | + | ||
60 | + | let F = "%s__factoryAddress" | |
61 | + | ||
62 | + | let G = { | |
63 | + | let H = getString(this, F) | |
64 | + | if ($isInstanceOf(H, "String")) | |
51 | 65 | then { | |
52 | - | let | |
53 | - | addressFromString( | |
66 | + | let A = H | |
67 | + | addressFromString(A) | |
54 | 68 | } | |
55 | - | else if ($isInstanceOf( | |
69 | + | else if ($isInstanceOf(H, "Unit")) | |
56 | 70 | then unit | |
57 | 71 | else throw("Match error") | |
58 | 72 | } | |
59 | 73 | ||
60 | - | let | |
74 | + | let I = valueOrErrorMessage(G, z("invalid factory address")) | |
61 | 75 | ||
62 | - | let | |
76 | + | let J = "%s__usdtAssetId" | |
63 | 77 | ||
64 | - | let F = valueOrElse(getBoolean(D, m), false) | |
78 | + | let K = { | |
79 | + | let H = getString(this, J) | |
80 | + | if ($isInstanceOf(H, "String")) | |
81 | + | then { | |
82 | + | let A = H | |
83 | + | C(A) | |
84 | + | } | |
85 | + | else if ($isInstanceOf(H, "Unit")) | |
86 | + | then unit | |
87 | + | else throw("Match error") | |
88 | + | } | |
65 | 89 | ||
66 | - | func G (H,w) = if ((H == w)) | |
90 | + | let L = valueOrErrorMessage(K, z("invalid usdt asset id")) | |
91 | + | ||
92 | + | let M = "%s__calculatorAddress" | |
93 | + | ||
94 | + | let N = valueOrElse(getBoolean(I, o), false) | |
95 | + | ||
96 | + | func O (P,y) = if ((P == y)) | |
67 | 97 | then true | |
68 | - | else | |
98 | + | else B("permission denied") | |
69 | 99 | ||
70 | 100 | ||
71 | - | func | |
101 | + | func Q (P) = O(P, this) | |
72 | 102 | ||
73 | 103 | ||
74 | - | func | |
104 | + | func R (P) = O(P, I) | |
75 | 105 | ||
76 | 106 | ||
77 | - | func | |
78 | - | let | |
79 | - | let | |
80 | - | if (containsElement( | |
107 | + | func S (T) = { | |
108 | + | let U = addressFromStringValue(getStringValue(I, k)) | |
109 | + | let V = split(getStringValue(U, p), a) | |
110 | + | if (containsElement(V, toBase58String(T))) | |
81 | 111 | then true | |
82 | - | else | |
112 | + | else B("not allowed") | |
83 | 113 | } | |
84 | 114 | ||
85 | 115 | ||
86 | - | let | |
116 | + | let W = "%s__accountScript" | |
87 | 117 | ||
88 | - | let P = 32 | |
89 | - | ||
90 | - | func Q (R) = if ((R == O)) | |
91 | - | then unit | |
92 | - | else fromBase58String(R) | |
118 | + | func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set")) | |
93 | 119 | ||
94 | 120 | ||
95 | - | ||
96 | - | ||
97 | - | ||
121 | + | let Y = "%s__rewardAmount" | |
122 | + | ||
123 | + | func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set")) | |
98 | 124 | ||
99 | 125 | ||
100 | - | let | |
126 | + | let aa = "%s__accountsLimit" | |
101 | 127 | ||
102 | - | func U () = valueOrErrorMessage(getBinary(D, T), x("account script is not set")) | |
128 | + | let ab = 20 | |
129 | + | ||
130 | + | func ac () = valueOrElse(getInteger(I, aa), ab) | |
103 | 131 | ||
104 | 132 | ||
105 | - | let V = "%s__rewardAmount" | |
106 | - | ||
107 | - | func W () = valueOrErrorMessage(getInteger(D, V), x("reward amount is not set")) | |
133 | + | func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a) | |
108 | 134 | ||
109 | 135 | ||
110 | - | let X = "%s__accountsLimit" | |
111 | - | ||
112 | - | let Y = 20 | |
113 | - | ||
114 | - | func Z () = valueOrElse(getInteger(D, X), Y) | |
136 | + | func af (ae) = getInteger(I, ad(ae)) | |
115 | 137 | ||
116 | 138 | ||
117 | - | func | |
139 | + | func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a) | |
118 | 140 | ||
119 | 141 | ||
120 | - | func | |
142 | + | func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a) | |
121 | 143 | ||
122 | 144 | ||
123 | - | func | |
145 | + | func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a) | |
124 | 146 | ||
125 | 147 | ||
126 | - | func | |
148 | + | func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a) | |
127 | 149 | ||
128 | 150 | ||
129 | - | func ag (ah) = makeString(["%s%s", "syntheticAssetId", S(ah)], a) | |
151 | + | let an = 0 | |
152 | + | ||
153 | + | let ao = 1 | |
154 | + | ||
155 | + | func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a) | |
130 | 156 | ||
131 | 157 | ||
132 | - | func | |
158 | + | func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a) | |
133 | 159 | ||
134 | 160 | ||
135 | - | let ak = 0 | |
136 | - | ||
137 | - | let al = 1 | |
138 | - | ||
139 | - | func am (an) = makeString(["%s%s", toBase58String(an), "status"], a) | |
161 | + | func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a) | |
140 | 162 | ||
141 | 163 | ||
142 | - | func | |
164 | + | func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a) | |
143 | 165 | ||
144 | 166 | ||
145 | - | func | |
167 | + | func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a) | |
146 | 168 | ||
147 | 169 | ||
148 | - | func | |
170 | + | func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a) | |
149 | 171 | ||
150 | 172 | ||
151 | - | func | |
173 | + | func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a) | |
152 | 174 | ||
153 | 175 | ||
154 | - | func | |
176 | + | func ax () = makeString(["%s", "requestsQueue"], a) | |
155 | 177 | ||
156 | 178 | ||
157 | - | func | |
179 | + | func ay () = valueOrElse(getBinary(I, ax()), base58'') | |
158 | 180 | ||
159 | 181 | ||
160 | - | func | |
182 | + | func az () = makeString(["%s", "accountsQueue"], a) | |
161 | 183 | ||
162 | 184 | ||
163 | - | func | |
185 | + | func aA () = valueOrElse(getBinary(I, az()), base58'') | |
164 | 186 | ||
165 | 187 | ||
166 | - | func | |
188 | + | func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a) | |
167 | 189 | ||
168 | 190 | ||
169 | - | func | |
191 | + | func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'') | |
170 | 192 | ||
171 | 193 | ||
172 | - | func | |
194 | + | func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a) | |
173 | 195 | ||
174 | 196 | ||
175 | - | func | |
197 | + | func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false) | |
176 | 198 | ||
177 | 199 | ||
178 | - | func | |
200 | + | func aI (ah) = makeString(["%s", E(ah)], a) | |
179 | 201 | ||
180 | 202 | ||
181 | - | func aE (aC,aD) = valueOrElse(getBoolean(D, aB(aC, aD)), false) | |
182 | - | ||
183 | - | ||
184 | - | func aF (ae) = makeString(["%s", S(ae)], a) | |
185 | - | ||
186 | - | ||
187 | - | func aG (ae) = { | |
188 | - | let aH = fromBase58String(valueOrErrorMessage(getString(D, o), x("invalid matcher public key"))) | |
189 | - | let aI = addressFromPublicKey(aH) | |
190 | - | let aJ = valueOrErrorMessage(getInteger(aI, aF(ae)), x(("invalid price, assetId = " + S(ae)))) | |
191 | - | aJ | |
203 | + | func aJ (ah) = { | |
204 | + | let aK = fromBase58String(valueOrErrorMessage(getString(I, q), z("invalid matcher public key"))) | |
205 | + | let aL = addressFromPublicKey(aK) | |
206 | + | let aM = valueOrErrorMessage(getInteger(aL, aI(ah)), z(("invalid price, assetId = " + E(ah)))) | |
207 | + | aM | |
192 | 208 | } | |
193 | 209 | ||
194 | 210 | ||
195 | - | func | |
211 | + | func aN (aO,aP,aQ) = ((aO * aQ) + aP) | |
196 | 212 | ||
197 | 213 | ||
198 | - | func | |
214 | + | func aR (aS,aT,aQ) = ((aS * aQ) + aT) | |
199 | 215 | ||
200 | 216 | ||
201 | - | func | |
217 | + | func aU (aV,aW) = (aV - aW) | |
202 | 218 | ||
203 | 219 | ||
204 | - | func | |
220 | + | func aX (aY,aZ,aW) = ((aY * aZ) - aW) | |
205 | 221 | ||
206 | 222 | ||
207 | - | func | |
208 | - | then ( | |
223 | + | func ba (bb,bc) = if ((bb > 0)) | |
224 | + | then (bb - bc) | |
209 | 225 | else 0 | |
210 | 226 | ||
211 | 227 | ||
212 | - | func | |
213 | - | then ( | |
228 | + | func bd (bb,bc) = if ((bb > 0)) | |
229 | + | then (bc - bb) | |
214 | 230 | else 0 | |
215 | 231 | ||
216 | 232 | ||
217 | - | func | |
218 | - | then max([0, ( | |
233 | + | func be (bf,bg) = if ((bg > 0)) | |
234 | + | then max([0, (bf / bg)]) | |
219 | 235 | else 0 | |
220 | 236 | ||
221 | 237 | ||
222 | - | func | |
223 | - | then max([0, ( | |
238 | + | func bh (bf,bg) = if ((bg > 0)) | |
239 | + | then max([0, (bg / bf)]) | |
224 | 240 | else 0 | |
225 | 241 | ||
226 | 242 | ||
227 | - | func | |
243 | + | func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl) | |
228 | 244 | ||
229 | 245 | ||
230 | - | func | |
246 | + | func bm (bn,bl,bo) = ((bn / bl) * bo) | |
231 | 247 | ||
232 | 248 | ||
233 | - | func | |
234 | - | let | |
235 | - | then ((( | |
249 | + | func bp (aY,bq,bj,bk,br,bs) = { | |
250 | + | let bt = if ((bj > 0)) | |
251 | + | then (((aY - bq) / bj) + br) | |
236 | 252 | else 0 | |
237 | - | let | |
238 | - | then ( | |
253 | + | let bu = if ((bk > 0)) | |
254 | + | then (bs - ((aY - bq) / (bj / bs))) | |
239 | 255 | else 0 | |
240 | - | ( | |
256 | + | (bt + bu) | |
241 | 257 | } | |
242 | 258 | ||
243 | 259 | ||
244 | - | func | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2( | |
260 | + | func bv (ae) = { | |
261 | + | let aq = fromBase58String(valueOrErrorMessage(getString(I, aw(ae)), z("invalid account address"))) | |
262 | + | let aF = C(valueOrErrorMessage(getString(I, at(aq)), z("invalid amount asset id"))) | |
263 | + | let aG = C(valueOrErrorMessage(getString(I, au(aq)), z("invalid amount price id"))) | |
264 | + | $Tuple2(aF, aG) | |
249 | 265 | } | |
250 | 266 | ||
251 | 267 | ||
252 | - | @Callable( | |
253 | - | func init ( | |
254 | - | let | |
255 | - | if (( | |
256 | - | then $Tuple2([StringEntry( | |
268 | + | @Callable(bw) | |
269 | + | func init (bx) = { | |
270 | + | let by = Q(bw.caller) | |
271 | + | if ((by == by)) | |
272 | + | then $Tuple2([StringEntry(F, bx)], unit) | |
257 | 273 | else throw("Strict value is not equal to itself.") | |
258 | 274 | } | |
259 | 275 | ||
260 | 276 | ||
261 | 277 | ||
262 | - | @Callable( | |
263 | - | func requestAccount ( | |
264 | - | let | |
278 | + | @Callable(bw) | |
279 | + | func requestAccount (T,bz) = { | |
280 | + | let bA = [if (!(N)) | |
265 | 281 | then true | |
266 | - | else | |
267 | - | if (( | |
282 | + | else B("not allowed"), R(bw.caller)] | |
283 | + | if ((bA == bA)) | |
268 | 284 | then { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
285 | + | let bB = bz[0] | |
286 | + | let bC = bz[1] | |
287 | + | let bD = addressFromPublicKey(T) | |
288 | + | let aq = sha256(((bD.bytes + fromBase58String(bB)) + fromBase58String(bC))) | |
289 | + | let aF = C(bB) | |
290 | + | let aG = C(bC) | |
291 | + | let bE = (size(aB(bD)) / j) | |
292 | + | let bF = [if ((size(bw.payments) == 1)) | |
277 | 293 | then true | |
278 | - | else | |
294 | + | else B("1 payment is required"), if ((bw.payments[0].assetId == unit)) | |
279 | 295 | then true | |
280 | - | else | |
296 | + | else B("invalid asset"), if ((bw.payments[0].amount == Z())) | |
281 | 297 | then true | |
282 | - | else | |
298 | + | else B("invalid amount"), if (aH(aF, aG)) | |
283 | 299 | then true | |
284 | - | else | |
300 | + | else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit)) | |
285 | 301 | then true | |
286 | - | else | |
302 | + | else B("account is already exists"), if ((ac() > bE)) | |
287 | 303 | then true | |
288 | - | else | |
289 | - | if (( | |
304 | + | else B(("accounts limit is " + toString(ac())))] | |
305 | + | if ((bF == bF)) | |
290 | 306 | then { | |
291 | - | let | |
292 | - | then $Tuple2([ScriptTransfer( | |
307 | + | let bG = if ((size(aA()) == 0)) | |
308 | + | then $Tuple2([ScriptTransfer(I, Z(), unit)], [invoke(I, "integerEntry", [ap(aq), an], nil), invoke(I, "binaryEntry", [ax(), (ay() + aq)], nil)]) | |
293 | 309 | else { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | $Tuple2([ScriptTransfer( | |
310 | + | let bH = take(aA(), j) | |
311 | + | let ae = addressFromPublicKey(bH) | |
312 | + | let bI = addressFromPublicKey(valueOrErrorMessage(getBinary(I, ar(ae)), z("invalid creator public key"))) | |
313 | + | $Tuple2([ScriptTransfer(bI, Z(), unit)], [invoke(I, "binaryEntry", [az(), drop(aA(), j)], nil), invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil)]) | |
298 | 314 | } | |
299 | - | let | |
300 | - | let | |
301 | - | $Tuple2( | |
315 | + | let bJ = bG._1 | |
316 | + | let bK = bG._2 | |
317 | + | $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [as(aq), T], nil), invoke(I, "binaryEntry", [aB(bD), (aD(bD) + aq)], nil), invoke(I, "stringEntry", [at(aq), bB], nil), invoke(I, "stringEntry", [au(aq), bC], nil)])) | |
302 | 318 | } | |
303 | 319 | else throw("Strict value is not equal to itself.") | |
304 | 320 | } | |
307 | 323 | ||
308 | 324 | ||
309 | 325 | ||
310 | - | @Callable( | |
311 | - | func addAccount ( | |
312 | - | let | |
326 | + | @Callable(bw) | |
327 | + | func addAccount (T,bz) = { | |
328 | + | let bA = [if (!(N)) | |
313 | 329 | then true | |
314 | - | else | |
315 | - | if (( | |
330 | + | else B("not allowed"), R(bw.caller)] | |
331 | + | if ((bA == bA)) | |
316 | 332 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
333 | + | let bL = fromBase58String(bz[0]) | |
334 | + | let bH = T | |
335 | + | let ae = addressFromPublicKey(T) | |
336 | + | let bI = addressFromPublicKey(bL) | |
337 | + | let bF = [if ((getBinary(I, ar(ae)) == unit)) | |
322 | 338 | then true | |
323 | - | else | |
324 | - | let | |
325 | - | if ($isInstanceOf( | |
339 | + | else B("account is already exists"), if ({ | |
340 | + | let H = scriptHash(ae) | |
341 | + | if ($isInstanceOf(H, "ByteVector")) | |
326 | 342 | then { | |
327 | - | let | |
328 | - | ( | |
343 | + | let bM = H | |
344 | + | (bM == blake2b256_32Kb(X())) | |
329 | 345 | } | |
330 | 346 | else false | |
331 | 347 | }) | |
332 | 348 | then true | |
333 | - | else | |
334 | - | if (( | |
349 | + | else B("invalid script")] | |
350 | + | if ((bF == bF)) | |
335 | 351 | then { | |
336 | - | let | |
337 | - | then $Tuple2(nil, [invoke( | |
352 | + | let bN = if ((size(ay()) == 0)) | |
353 | + | then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)]) | |
338 | 354 | else { | |
339 | - | let | |
340 | - | $Tuple2(nil, [invoke( | |
355 | + | let aq = take(ay(), j) | |
356 | + | $Tuple2(nil, [invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "binaryEntry", [ax(), drop(ay(), j)], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil), invoke(I, "transferWaves", [bI.bytes, Z()], nil)]) | |
341 | 357 | } | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2( | |
358 | + | let bJ = bN._1 | |
359 | + | let bK = bN._2 | |
360 | + | $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)])) | |
345 | 361 | } | |
346 | 362 | else throw("Strict value is not equal to itself.") | |
347 | 363 | } | |
350 | 366 | ||
351 | 367 | ||
352 | 368 | ||
353 | - | @Callable(bt) | |
354 | - | func deposit (L,bw) = { | |
355 | - | let bx = [if (!(F)) | |
369 | + | @Callable(bw) | |
370 | + | func deposit (T,bz) = { | |
371 | + | let bO = bw.payments[0] | |
372 | + | let bA = [if (!(N)) | |
356 | 373 | then true | |
357 | - | else z("not allowed"), J(bt.caller)] | |
358 | - | if ((bx == bx)) | |
374 | + | else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1)) | |
375 | + | then true | |
376 | + | else B("1 payment is required"), if ((bO.assetId == L)) | |
377 | + | then true | |
378 | + | else B("invalid asset")] | |
379 | + | if ((bA == bA)) | |
359 | 380 | then { | |
360 | - | let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address")) | |
361 | - | let bL = bt.payments[0] | |
362 | - | let bG = [ScriptTransfer(ab, bL.amount, bL.assetId)] | |
363 | - | let bH = [invoke(D, "integerEntry", [aa(ab), (valueOrElse(ac(ab), 0) + bL.amount)], nil)] | |
364 | - | $Tuple2(bG, bH) | |
381 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
382 | + | let bJ = [ScriptTransfer(ae, bO.amount, bO.assetId)] | |
383 | + | let bK = [invoke(I, "integerEntry", [ad(ae), (valueOrElse(af(ae), 0) + bO.amount)], nil)] | |
384 | + | $Tuple2(bJ, bK) | |
365 | 385 | } | |
366 | 386 | else throw("Strict value is not equal to itself.") | |
367 | 387 | } | |
368 | 388 | ||
369 | 389 | ||
370 | 390 | ||
371 | - | @Callable( | |
372 | - | func withdraw ( | |
373 | - | let | |
391 | + | @Callable(bw) | |
392 | + | func withdraw (T,bz) = { | |
393 | + | let bA = [if (!(N)) | |
374 | 394 | then true | |
375 | - | else | |
376 | - | if (( | |
395 | + | else B("not allowed"), R(bw.caller)] | |
396 | + | if ((bA == bA)) | |
377 | 397 | then { | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | $Tuple2(nil, | |
398 | + | let bD = addressFromPublicKey(T) | |
399 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
400 | + | let bP = valueOrErrorMessage(parseInt(bz[1]), z("invalid amount")) | |
401 | + | let ah = C(bz[2]) | |
402 | + | let bQ = [invoke(ae, "transferAsset", [bD.bytes, bP, ah], nil)] | |
403 | + | $Tuple2(nil, bQ) | |
384 | 404 | } | |
385 | 405 | else throw("Strict value is not equal to itself.") | |
386 | 406 | } | |
387 | 407 | ||
388 | 408 | ||
389 | 409 | ||
390 | - | @Callable( | |
391 | - | func borrow ( | |
392 | - | let | |
410 | + | @Callable(bw) | |
411 | + | func borrow (T,bz) = { | |
412 | + | let bA = [if (!(N)) | |
393 | 413 | then true | |
394 | - | else | |
395 | - | if (( | |
414 | + | else B("not allowed"), R(bw.caller)] | |
415 | + | if ((bA == bA)) | |
396 | 416 | then { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | $Tuple2(nil, [ | |
417 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
418 | + | let ah = C(bz[1]) | |
419 | + | let bR = parseInt(bz[2]) | |
420 | + | let bS = valueOrElse(af(ae), 0) | |
421 | + | let bT = bv(ae) | |
422 | + | let aF = bT._1 | |
423 | + | let aG = bT._2 | |
424 | + | let aQ = aJ(aF) | |
425 | + | let aO = valueOrElse(getInteger(I, ag(ae, aF)), 0) | |
426 | + | let aP = valueOrElse(getInteger(I, ag(ae, aG)), 0) | |
427 | + | let aW = aN(aO, aP, aQ) | |
428 | + | let bU = 3 | |
429 | + | let aZ = valueOrElse(getInteger(I, ai(ae)), bU) | |
430 | + | let bV = aX(bS, aZ, aW) | |
431 | + | $Tuple2(nil, [bV]) | |
412 | 432 | } | |
413 | 433 | else throw("Strict value is not equal to itself.") | |
414 | 434 | } | |
415 | 435 | ||
416 | 436 | ||
417 | 437 | ||
418 | - | @Callable( | |
419 | - | func repay ( | |
420 | - | let | |
438 | + | @Callable(bw) | |
439 | + | func repay (T,bz) = { | |
440 | + | let bA = [if (!(N)) | |
421 | 441 | then true | |
422 | - | else | |
423 | - | if (( | |
442 | + | else B("not allowed"), R(bw.caller)] | |
443 | + | if ((bA == bA)) | |
424 | 444 | then $Tuple2(nil, unit) | |
425 | 445 | else throw("Strict value is not equal to itself.") | |
426 | 446 | } | |
427 | 447 | ||
428 | 448 | ||
429 | 449 | ||
430 | - | @Callable( | |
431 | - | func setPairAllowance ( | |
432 | - | let | |
450 | + | @Callable(bw) | |
451 | + | func setPairAllowance (T,bz) = { | |
452 | + | let bA = [if (!(N)) | |
433 | 453 | then true | |
434 | - | else | |
435 | - | if (( | |
454 | + | else B("not allowed"), R(bw.caller), S(T)] | |
455 | + | if ((bA == bA)) | |
436 | 456 | then { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, | |
457 | + | let bB = bz[0] | |
458 | + | let bC = bz[1] | |
459 | + | let bW = bz[2] | |
460 | + | let aF = C(bB) | |
461 | + | let aG = C(bC) | |
462 | + | let bX = (bW == "true") | |
463 | + | let bQ = [invoke(I, "booleanEntry", [aE(aF, aG), bX], nil)] | |
464 | + | $Tuple2(nil, bQ) | |
445 | 465 | } | |
446 | 466 | else throw("Strict value is not equal to itself.") | |
447 | 467 | } | |
448 | 468 | ||
449 | 469 | ||
450 | 470 | ||
451 | - | @Callable( | |
452 | - | func addSyntheticAsset ( | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
471 | + | @Callable(bw) | |
472 | + | func addSyntheticAsset (T,bz) = { | |
473 | + | let bY = bz[0] | |
474 | + | let ak = C(bY) | |
475 | + | let am = bw.payments[0].assetId | |
476 | + | let bA = [if (!(N)) | |
457 | 477 | then true | |
458 | - | else | |
478 | + | else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit)) | |
459 | 479 | then true | |
460 | - | else | |
480 | + | else B("invalid base asset"), if ((size(bw.payments) == 1)) | |
461 | 481 | then true | |
462 | - | else | |
482 | + | else B("invalid payments"), if ((getString(I, al(am)) == unit)) | |
463 | 483 | then true | |
464 | - | else | |
465 | - | if (( | |
484 | + | else B("invalid synthetic asset")] | |
485 | + | if ((bA == bA)) | |
466 | 486 | then { | |
467 | - | let | |
468 | - | $Tuple2(nil, | |
487 | + | let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)] | |
488 | + | $Tuple2(nil, bQ) | |
469 | 489 | } | |
470 | 490 | else throw("Strict value is not equal to itself.") | |
471 | 491 | } | |
472 | 492 | ||
473 | 493 | ||
474 | 494 | ||
475 | - | @Callable( | |
476 | - | func doShutdown ( | |
477 | - | let | |
478 | - | if (( | |
495 | + | @Callable(bw) | |
496 | + | func doShutdown (T,bz) = { | |
497 | + | let bF = [R(bw.caller), S(T)] | |
498 | + | if ((bF == bF)) | |
479 | 499 | then { | |
480 | - | let | |
481 | - | $Tuple2(nil, | |
500 | + | let bQ = [invoke(I, "booleanEntry", [o, true], nil)] | |
501 | + | $Tuple2(nil, bQ) | |
482 | 502 | } | |
483 | 503 | else throw("Strict value is not equal to itself.") | |
484 | 504 | } | |
485 | 505 | ||
486 | 506 | ||
487 | - | @Verifier( | |
488 | - | func | |
489 | - | then isDefined(getString( | |
507 | + | @Verifier(bZ) | |
508 | + | func ca () = if (if (isDefined(G)) | |
509 | + | then isDefined(getString(I, k)) | |
490 | 510 | else false) | |
491 | 511 | then { | |
492 | - | let | |
493 | - | if ($isInstanceOf( | |
512 | + | let H = getString(I, k) | |
513 | + | if ($isInstanceOf(H, "String")) | |
494 | 514 | then { | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | | |
515 | + | let U = H | |
516 | + | let cb = l(toString(this), toBase58String(bZ.id)) | |
517 | + | let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false) | |
518 | + | cc | |
499 | 519 | } | |
500 | 520 | else false | |
501 | 521 | } | |
502 | - | else sigVerify( | |
522 | + | else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey) | |
503 | 523 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = take(drop(this.bytes, 1), 1) | |
7 | 7 | ||
8 | 8 | let c = base58'2W' | |
9 | 9 | ||
10 | 10 | let d = "futures_calculator.ride" | |
11 | 11 | ||
12 | 12 | let e = 100000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1000000000000000000) | |
15 | 15 | ||
16 | 16 | let g = 8 | |
17 | 17 | ||
18 | 18 | let h = 6 | |
19 | 19 | ||
20 | - | let i = " | |
20 | + | let i = "WAVES" | |
21 | 21 | ||
22 | - | func j (k,l) = makeString(["%s__status", k, l], a) | |
22 | + | let j = 32 | |
23 | + | ||
24 | + | let k = "%s__multisig" | |
25 | + | ||
26 | + | func l (m,n) = makeString(["%s__status", m, n], a) | |
23 | 27 | ||
24 | 28 | ||
25 | - | let | |
29 | + | let o = "%s__shutdown" | |
26 | 30 | ||
27 | - | let | |
31 | + | let p = "%s__publicKeys" | |
28 | 32 | ||
29 | - | let | |
33 | + | let q = "%s__matcherPublicKey" | |
30 | 34 | ||
31 | - | func | |
35 | + | func r (s,t) = fraction(toBigInt(s), f, toBigInt(t)) | |
32 | 36 | ||
33 | 37 | ||
34 | - | func | |
38 | + | func u (v,w) = toInt(fraction(v, toBigInt(w), f)) | |
35 | 39 | ||
36 | 40 | ||
37 | - | func | |
41 | + | func x (y) = isDefined(addressFromString(y)) | |
38 | 42 | ||
39 | 43 | ||
40 | - | func | |
44 | + | func z (A) = ((d + ": ") + A) | |
41 | 45 | ||
42 | 46 | ||
43 | - | func | |
47 | + | func B (A) = throw(z(A)) | |
44 | 48 | ||
45 | 49 | ||
46 | - | let A = "%s__factoryAddress" | |
50 | + | func C (D) = if ((D == i)) | |
51 | + | then unit | |
52 | + | else fromBase58String(D) | |
47 | 53 | ||
48 | - | let B = { | |
49 | - | let C = getString(this, A) | |
50 | - | if ($isInstanceOf(C, "String")) | |
54 | + | ||
55 | + | func E (D) = if ((D == unit)) | |
56 | + | then i | |
57 | + | else toBase58String(value(D)) | |
58 | + | ||
59 | + | ||
60 | + | let F = "%s__factoryAddress" | |
61 | + | ||
62 | + | let G = { | |
63 | + | let H = getString(this, F) | |
64 | + | if ($isInstanceOf(H, "String")) | |
51 | 65 | then { | |
52 | - | let | |
53 | - | addressFromString( | |
66 | + | let A = H | |
67 | + | addressFromString(A) | |
54 | 68 | } | |
55 | - | else if ($isInstanceOf( | |
69 | + | else if ($isInstanceOf(H, "Unit")) | |
56 | 70 | then unit | |
57 | 71 | else throw("Match error") | |
58 | 72 | } | |
59 | 73 | ||
60 | - | let | |
74 | + | let I = valueOrErrorMessage(G, z("invalid factory address")) | |
61 | 75 | ||
62 | - | let | |
76 | + | let J = "%s__usdtAssetId" | |
63 | 77 | ||
64 | - | let F = valueOrElse(getBoolean(D, m), false) | |
78 | + | let K = { | |
79 | + | let H = getString(this, J) | |
80 | + | if ($isInstanceOf(H, "String")) | |
81 | + | then { | |
82 | + | let A = H | |
83 | + | C(A) | |
84 | + | } | |
85 | + | else if ($isInstanceOf(H, "Unit")) | |
86 | + | then unit | |
87 | + | else throw("Match error") | |
88 | + | } | |
65 | 89 | ||
66 | - | func G (H,w) = if ((H == w)) | |
90 | + | let L = valueOrErrorMessage(K, z("invalid usdt asset id")) | |
91 | + | ||
92 | + | let M = "%s__calculatorAddress" | |
93 | + | ||
94 | + | let N = valueOrElse(getBoolean(I, o), false) | |
95 | + | ||
96 | + | func O (P,y) = if ((P == y)) | |
67 | 97 | then true | |
68 | - | else | |
98 | + | else B("permission denied") | |
69 | 99 | ||
70 | 100 | ||
71 | - | func | |
101 | + | func Q (P) = O(P, this) | |
72 | 102 | ||
73 | 103 | ||
74 | - | func | |
104 | + | func R (P) = O(P, I) | |
75 | 105 | ||
76 | 106 | ||
77 | - | func | |
78 | - | let | |
79 | - | let | |
80 | - | if (containsElement( | |
107 | + | func S (T) = { | |
108 | + | let U = addressFromStringValue(getStringValue(I, k)) | |
109 | + | let V = split(getStringValue(U, p), a) | |
110 | + | if (containsElement(V, toBase58String(T))) | |
81 | 111 | then true | |
82 | - | else | |
112 | + | else B("not allowed") | |
83 | 113 | } | |
84 | 114 | ||
85 | 115 | ||
86 | - | let | |
116 | + | let W = "%s__accountScript" | |
87 | 117 | ||
88 | - | let P = 32 | |
89 | - | ||
90 | - | func Q (R) = if ((R == O)) | |
91 | - | then unit | |
92 | - | else fromBase58String(R) | |
118 | + | func X () = valueOrErrorMessage(getBinary(I, W), z("account script is not set")) | |
93 | 119 | ||
94 | 120 | ||
95 | - | ||
96 | - | ||
97 | - | ||
121 | + | let Y = "%s__rewardAmount" | |
122 | + | ||
123 | + | func Z () = valueOrErrorMessage(getInteger(I, Y), z("reward amount is not set")) | |
98 | 124 | ||
99 | 125 | ||
100 | - | let | |
126 | + | let aa = "%s__accountsLimit" | |
101 | 127 | ||
102 | - | func U () = valueOrErrorMessage(getBinary(D, T), x("account script is not set")) | |
128 | + | let ab = 20 | |
129 | + | ||
130 | + | func ac () = valueOrElse(getInteger(I, aa), ab) | |
103 | 131 | ||
104 | 132 | ||
105 | - | let V = "%s__rewardAmount" | |
106 | - | ||
107 | - | func W () = valueOrErrorMessage(getInteger(D, V), x("reward amount is not set")) | |
133 | + | func ad (ae) = makeString(["%s%s", "deposited", toString(ae)], a) | |
108 | 134 | ||
109 | 135 | ||
110 | - | let X = "%s__accountsLimit" | |
111 | - | ||
112 | - | let Y = 20 | |
113 | - | ||
114 | - | func Z () = valueOrElse(getInteger(D, X), Y) | |
136 | + | func af (ae) = getInteger(I, ad(ae)) | |
115 | 137 | ||
116 | 138 | ||
117 | - | func | |
139 | + | func ag (ae,ah) = makeString(["%s%s%s", "credit", toString(ae), E(ah)], a) | |
118 | 140 | ||
119 | 141 | ||
120 | - | func | |
142 | + | func ai (ae) = makeString(["%s%s", "leverage", toString(ae)], a) | |
121 | 143 | ||
122 | 144 | ||
123 | - | func | |
145 | + | func aj (ak) = makeString(["%s%s", "syntheticAssetId", E(ak)], a) | |
124 | 146 | ||
125 | 147 | ||
126 | - | func | |
148 | + | func al (am) = makeString(["%s%s", "baseAssetId", E(am)], a) | |
127 | 149 | ||
128 | 150 | ||
129 | - | func ag (ah) = makeString(["%s%s", "syntheticAssetId", S(ah)], a) | |
151 | + | let an = 0 | |
152 | + | ||
153 | + | let ao = 1 | |
154 | + | ||
155 | + | func ap (aq) = makeString(["%s%s", toBase58String(aq), "status"], a) | |
130 | 156 | ||
131 | 157 | ||
132 | - | func | |
158 | + | func ar (ae) = makeString(["%s%s", toString(ae), "creatorPublicKey"], a) | |
133 | 159 | ||
134 | 160 | ||
135 | - | let ak = 0 | |
136 | - | ||
137 | - | let al = 1 | |
138 | - | ||
139 | - | func am (an) = makeString(["%s%s", toBase58String(an), "status"], a) | |
161 | + | func as (aq) = makeString(["%s%s", toBase58String(aq), "ownerPublicKey"], a) | |
140 | 162 | ||
141 | 163 | ||
142 | - | func | |
164 | + | func at (aq) = makeString(["%s%s", toBase58String(aq), "amountAssetId"], a) | |
143 | 165 | ||
144 | 166 | ||
145 | - | func | |
167 | + | func au (aq) = makeString(["%s%s", toBase58String(aq), "priceAssetId"], a) | |
146 | 168 | ||
147 | 169 | ||
148 | - | func | |
170 | + | func av (aq) = makeString(["%s%s", toBase58String(aq), "requestIdToAccountPublicKey"], a) | |
149 | 171 | ||
150 | 172 | ||
151 | - | func | |
173 | + | func aw (ae) = makeString(["%s%s", toString(ae), "accountAddressToRequestId"], a) | |
152 | 174 | ||
153 | 175 | ||
154 | - | func | |
176 | + | func ax () = makeString(["%s", "requestsQueue"], a) | |
155 | 177 | ||
156 | 178 | ||
157 | - | func | |
179 | + | func ay () = valueOrElse(getBinary(I, ax()), base58'') | |
158 | 180 | ||
159 | 181 | ||
160 | - | func | |
182 | + | func az () = makeString(["%s", "accountsQueue"], a) | |
161 | 183 | ||
162 | 184 | ||
163 | - | func | |
185 | + | func aA () = valueOrElse(getBinary(I, az()), base58'') | |
164 | 186 | ||
165 | 187 | ||
166 | - | func | |
188 | + | func aB (aC) = makeString(["%s%s", "requests", toString(aC)], a) | |
167 | 189 | ||
168 | 190 | ||
169 | - | func | |
191 | + | func aD (aC) = valueOrElse(getBinary(I, aB(aC)), base58'') | |
170 | 192 | ||
171 | 193 | ||
172 | - | func | |
194 | + | func aE (aF,aG) = makeString(["%s%s%s", E(aF), E(aG), "pairAllowed"], a) | |
173 | 195 | ||
174 | 196 | ||
175 | - | func | |
197 | + | func aH (aF,aG) = valueOrElse(getBoolean(I, aE(aF, aG)), false) | |
176 | 198 | ||
177 | 199 | ||
178 | - | func | |
200 | + | func aI (ah) = makeString(["%s", E(ah)], a) | |
179 | 201 | ||
180 | 202 | ||
181 | - | func aE (aC,aD) = valueOrElse(getBoolean(D, aB(aC, aD)), false) | |
182 | - | ||
183 | - | ||
184 | - | func aF (ae) = makeString(["%s", S(ae)], a) | |
185 | - | ||
186 | - | ||
187 | - | func aG (ae) = { | |
188 | - | let aH = fromBase58String(valueOrErrorMessage(getString(D, o), x("invalid matcher public key"))) | |
189 | - | let aI = addressFromPublicKey(aH) | |
190 | - | let aJ = valueOrErrorMessage(getInteger(aI, aF(ae)), x(("invalid price, assetId = " + S(ae)))) | |
191 | - | aJ | |
203 | + | func aJ (ah) = { | |
204 | + | let aK = fromBase58String(valueOrErrorMessage(getString(I, q), z("invalid matcher public key"))) | |
205 | + | let aL = addressFromPublicKey(aK) | |
206 | + | let aM = valueOrErrorMessage(getInteger(aL, aI(ah)), z(("invalid price, assetId = " + E(ah)))) | |
207 | + | aM | |
192 | 208 | } | |
193 | 209 | ||
194 | 210 | ||
195 | - | func | |
211 | + | func aN (aO,aP,aQ) = ((aO * aQ) + aP) | |
196 | 212 | ||
197 | 213 | ||
198 | - | func | |
214 | + | func aR (aS,aT,aQ) = ((aS * aQ) + aT) | |
199 | 215 | ||
200 | 216 | ||
201 | - | func | |
217 | + | func aU (aV,aW) = (aV - aW) | |
202 | 218 | ||
203 | 219 | ||
204 | - | func | |
220 | + | func aX (aY,aZ,aW) = ((aY * aZ) - aW) | |
205 | 221 | ||
206 | 222 | ||
207 | - | func | |
208 | - | then ( | |
223 | + | func ba (bb,bc) = if ((bb > 0)) | |
224 | + | then (bb - bc) | |
209 | 225 | else 0 | |
210 | 226 | ||
211 | 227 | ||
212 | - | func | |
213 | - | then ( | |
228 | + | func bd (bb,bc) = if ((bb > 0)) | |
229 | + | then (bc - bb) | |
214 | 230 | else 0 | |
215 | 231 | ||
216 | 232 | ||
217 | - | func | |
218 | - | then max([0, ( | |
233 | + | func be (bf,bg) = if ((bg > 0)) | |
234 | + | then max([0, (bf / bg)]) | |
219 | 235 | else 0 | |
220 | 236 | ||
221 | 237 | ||
222 | - | func | |
223 | - | then max([0, ( | |
238 | + | func bh (bf,bg) = if ((bg > 0)) | |
239 | + | then max([0, (bg / bf)]) | |
224 | 240 | else 0 | |
225 | 241 | ||
226 | 242 | ||
227 | - | func | |
243 | + | func bi (bj,bk,aQ,bl) = (((bj * aQ) + bk) * bl) | |
228 | 244 | ||
229 | 245 | ||
230 | - | func | |
246 | + | func bm (bn,bl,bo) = ((bn / bl) * bo) | |
231 | 247 | ||
232 | 248 | ||
233 | - | func | |
234 | - | let | |
235 | - | then ((( | |
249 | + | func bp (aY,bq,bj,bk,br,bs) = { | |
250 | + | let bt = if ((bj > 0)) | |
251 | + | then (((aY - bq) / bj) + br) | |
236 | 252 | else 0 | |
237 | - | let | |
238 | - | then ( | |
253 | + | let bu = if ((bk > 0)) | |
254 | + | then (bs - ((aY - bq) / (bj / bs))) | |
239 | 255 | else 0 | |
240 | - | ( | |
256 | + | (bt + bu) | |
241 | 257 | } | |
242 | 258 | ||
243 | 259 | ||
244 | - | func | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | $Tuple2( | |
260 | + | func bv (ae) = { | |
261 | + | let aq = fromBase58String(valueOrErrorMessage(getString(I, aw(ae)), z("invalid account address"))) | |
262 | + | let aF = C(valueOrErrorMessage(getString(I, at(aq)), z("invalid amount asset id"))) | |
263 | + | let aG = C(valueOrErrorMessage(getString(I, au(aq)), z("invalid amount price id"))) | |
264 | + | $Tuple2(aF, aG) | |
249 | 265 | } | |
250 | 266 | ||
251 | 267 | ||
252 | - | @Callable( | |
253 | - | func init ( | |
254 | - | let | |
255 | - | if (( | |
256 | - | then $Tuple2([StringEntry( | |
268 | + | @Callable(bw) | |
269 | + | func init (bx) = { | |
270 | + | let by = Q(bw.caller) | |
271 | + | if ((by == by)) | |
272 | + | then $Tuple2([StringEntry(F, bx)], unit) | |
257 | 273 | else throw("Strict value is not equal to itself.") | |
258 | 274 | } | |
259 | 275 | ||
260 | 276 | ||
261 | 277 | ||
262 | - | @Callable( | |
263 | - | func requestAccount ( | |
264 | - | let | |
278 | + | @Callable(bw) | |
279 | + | func requestAccount (T,bz) = { | |
280 | + | let bA = [if (!(N)) | |
265 | 281 | then true | |
266 | - | else | |
267 | - | if (( | |
282 | + | else B("not allowed"), R(bw.caller)] | |
283 | + | if ((bA == bA)) | |
268 | 284 | then { | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
285 | + | let bB = bz[0] | |
286 | + | let bC = bz[1] | |
287 | + | let bD = addressFromPublicKey(T) | |
288 | + | let aq = sha256(((bD.bytes + fromBase58String(bB)) + fromBase58String(bC))) | |
289 | + | let aF = C(bB) | |
290 | + | let aG = C(bC) | |
291 | + | let bE = (size(aB(bD)) / j) | |
292 | + | let bF = [if ((size(bw.payments) == 1)) | |
277 | 293 | then true | |
278 | - | else | |
294 | + | else B("1 payment is required"), if ((bw.payments[0].assetId == unit)) | |
279 | 295 | then true | |
280 | - | else | |
296 | + | else B("invalid asset"), if ((bw.payments[0].amount == Z())) | |
281 | 297 | then true | |
282 | - | else | |
298 | + | else B("invalid amount"), if (aH(aF, aG)) | |
283 | 299 | then true | |
284 | - | else | |
300 | + | else B("pair is not allowed"), if ((getInteger(I, ap(aq)) == unit)) | |
285 | 301 | then true | |
286 | - | else | |
302 | + | else B("account is already exists"), if ((ac() > bE)) | |
287 | 303 | then true | |
288 | - | else | |
289 | - | if (( | |
304 | + | else B(("accounts limit is " + toString(ac())))] | |
305 | + | if ((bF == bF)) | |
290 | 306 | then { | |
291 | - | let | |
292 | - | then $Tuple2([ScriptTransfer( | |
307 | + | let bG = if ((size(aA()) == 0)) | |
308 | + | then $Tuple2([ScriptTransfer(I, Z(), unit)], [invoke(I, "integerEntry", [ap(aq), an], nil), invoke(I, "binaryEntry", [ax(), (ay() + aq)], nil)]) | |
293 | 309 | else { | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | $Tuple2([ScriptTransfer( | |
310 | + | let bH = take(aA(), j) | |
311 | + | let ae = addressFromPublicKey(bH) | |
312 | + | let bI = addressFromPublicKey(valueOrErrorMessage(getBinary(I, ar(ae)), z("invalid creator public key"))) | |
313 | + | $Tuple2([ScriptTransfer(bI, Z(), unit)], [invoke(I, "binaryEntry", [az(), drop(aA(), j)], nil), invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil)]) | |
298 | 314 | } | |
299 | - | let | |
300 | - | let | |
301 | - | $Tuple2( | |
315 | + | let bJ = bG._1 | |
316 | + | let bK = bG._2 | |
317 | + | $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [as(aq), T], nil), invoke(I, "binaryEntry", [aB(bD), (aD(bD) + aq)], nil), invoke(I, "stringEntry", [at(aq), bB], nil), invoke(I, "stringEntry", [au(aq), bC], nil)])) | |
302 | 318 | } | |
303 | 319 | else throw("Strict value is not equal to itself.") | |
304 | 320 | } | |
305 | 321 | else throw("Strict value is not equal to itself.") | |
306 | 322 | } | |
307 | 323 | ||
308 | 324 | ||
309 | 325 | ||
310 | - | @Callable( | |
311 | - | func addAccount ( | |
312 | - | let | |
326 | + | @Callable(bw) | |
327 | + | func addAccount (T,bz) = { | |
328 | + | let bA = [if (!(N)) | |
313 | 329 | then true | |
314 | - | else | |
315 | - | if (( | |
330 | + | else B("not allowed"), R(bw.caller)] | |
331 | + | if ((bA == bA)) | |
316 | 332 | then { | |
317 | - | let | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
333 | + | let bL = fromBase58String(bz[0]) | |
334 | + | let bH = T | |
335 | + | let ae = addressFromPublicKey(T) | |
336 | + | let bI = addressFromPublicKey(bL) | |
337 | + | let bF = [if ((getBinary(I, ar(ae)) == unit)) | |
322 | 338 | then true | |
323 | - | else | |
324 | - | let | |
325 | - | if ($isInstanceOf( | |
339 | + | else B("account is already exists"), if ({ | |
340 | + | let H = scriptHash(ae) | |
341 | + | if ($isInstanceOf(H, "ByteVector")) | |
326 | 342 | then { | |
327 | - | let | |
328 | - | ( | |
343 | + | let bM = H | |
344 | + | (bM == blake2b256_32Kb(X())) | |
329 | 345 | } | |
330 | 346 | else false | |
331 | 347 | }) | |
332 | 348 | then true | |
333 | - | else | |
334 | - | if (( | |
349 | + | else B("invalid script")] | |
350 | + | if ((bF == bF)) | |
335 | 351 | then { | |
336 | - | let | |
337 | - | then $Tuple2(nil, [invoke( | |
352 | + | let bN = if ((size(ay()) == 0)) | |
353 | + | then $Tuple2(nil, [invoke(I, "binaryEntry", [az(), (aA() + bH)], nil)]) | |
338 | 354 | else { | |
339 | - | let | |
340 | - | $Tuple2(nil, [invoke( | |
355 | + | let aq = take(ay(), j) | |
356 | + | $Tuple2(nil, [invoke(I, "integerEntry", [ap(aq), ao], nil), invoke(I, "binaryEntry", [av(aq), bH], nil), invoke(I, "binaryEntry", [ax(), drop(ay(), j)], nil), invoke(I, "stringEntry", [aw(ae), toBase58String(aq)], nil), invoke(I, "transferWaves", [bI.bytes, Z()], nil)]) | |
341 | 357 | } | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2( | |
358 | + | let bJ = bN._1 | |
359 | + | let bK = bN._2 | |
360 | + | $Tuple2(bJ, (bK ++ [invoke(I, "binaryEntry", [ar(ae), bL], nil)])) | |
345 | 361 | } | |
346 | 362 | else throw("Strict value is not equal to itself.") | |
347 | 363 | } | |
348 | 364 | else throw("Strict value is not equal to itself.") | |
349 | 365 | } | |
350 | 366 | ||
351 | 367 | ||
352 | 368 | ||
353 | - | @Callable(bt) | |
354 | - | func deposit (L,bw) = { | |
355 | - | let bx = [if (!(F)) | |
369 | + | @Callable(bw) | |
370 | + | func deposit (T,bz) = { | |
371 | + | let bO = bw.payments[0] | |
372 | + | let bA = [if (!(N)) | |
356 | 373 | then true | |
357 | - | else z("not allowed"), J(bt.caller)] | |
358 | - | if ((bx == bx)) | |
374 | + | else B("not allowed"), R(bw.caller), if ((size(bw.payments) == 1)) | |
375 | + | then true | |
376 | + | else B("1 payment is required"), if ((bO.assetId == L)) | |
377 | + | then true | |
378 | + | else B("invalid asset")] | |
379 | + | if ((bA == bA)) | |
359 | 380 | then { | |
360 | - | let ab = valueOrErrorMessage(addressFromString(bw[0]), x("invalid account address")) | |
361 | - | let bL = bt.payments[0] | |
362 | - | let bG = [ScriptTransfer(ab, bL.amount, bL.assetId)] | |
363 | - | let bH = [invoke(D, "integerEntry", [aa(ab), (valueOrElse(ac(ab), 0) + bL.amount)], nil)] | |
364 | - | $Tuple2(bG, bH) | |
381 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
382 | + | let bJ = [ScriptTransfer(ae, bO.amount, bO.assetId)] | |
383 | + | let bK = [invoke(I, "integerEntry", [ad(ae), (valueOrElse(af(ae), 0) + bO.amount)], nil)] | |
384 | + | $Tuple2(bJ, bK) | |
365 | 385 | } | |
366 | 386 | else throw("Strict value is not equal to itself.") | |
367 | 387 | } | |
368 | 388 | ||
369 | 389 | ||
370 | 390 | ||
371 | - | @Callable( | |
372 | - | func withdraw ( | |
373 | - | let | |
391 | + | @Callable(bw) | |
392 | + | func withdraw (T,bz) = { | |
393 | + | let bA = [if (!(N)) | |
374 | 394 | then true | |
375 | - | else | |
376 | - | if (( | |
395 | + | else B("not allowed"), R(bw.caller)] | |
396 | + | if ((bA == bA)) | |
377 | 397 | then { | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | $Tuple2(nil, | |
398 | + | let bD = addressFromPublicKey(T) | |
399 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
400 | + | let bP = valueOrErrorMessage(parseInt(bz[1]), z("invalid amount")) | |
401 | + | let ah = C(bz[2]) | |
402 | + | let bQ = [invoke(ae, "transferAsset", [bD.bytes, bP, ah], nil)] | |
403 | + | $Tuple2(nil, bQ) | |
384 | 404 | } | |
385 | 405 | else throw("Strict value is not equal to itself.") | |
386 | 406 | } | |
387 | 407 | ||
388 | 408 | ||
389 | 409 | ||
390 | - | @Callable( | |
391 | - | func borrow ( | |
392 | - | let | |
410 | + | @Callable(bw) | |
411 | + | func borrow (T,bz) = { | |
412 | + | let bA = [if (!(N)) | |
393 | 413 | then true | |
394 | - | else | |
395 | - | if (( | |
414 | + | else B("not allowed"), R(bw.caller)] | |
415 | + | if ((bA == bA)) | |
396 | 416 | then { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | $Tuple2(nil, [ | |
417 | + | let ae = valueOrErrorMessage(addressFromString(bz[0]), z("invalid account address")) | |
418 | + | let ah = C(bz[1]) | |
419 | + | let bR = parseInt(bz[2]) | |
420 | + | let bS = valueOrElse(af(ae), 0) | |
421 | + | let bT = bv(ae) | |
422 | + | let aF = bT._1 | |
423 | + | let aG = bT._2 | |
424 | + | let aQ = aJ(aF) | |
425 | + | let aO = valueOrElse(getInteger(I, ag(ae, aF)), 0) | |
426 | + | let aP = valueOrElse(getInteger(I, ag(ae, aG)), 0) | |
427 | + | let aW = aN(aO, aP, aQ) | |
428 | + | let bU = 3 | |
429 | + | let aZ = valueOrElse(getInteger(I, ai(ae)), bU) | |
430 | + | let bV = aX(bS, aZ, aW) | |
431 | + | $Tuple2(nil, [bV]) | |
412 | 432 | } | |
413 | 433 | else throw("Strict value is not equal to itself.") | |
414 | 434 | } | |
415 | 435 | ||
416 | 436 | ||
417 | 437 | ||
418 | - | @Callable( | |
419 | - | func repay ( | |
420 | - | let | |
438 | + | @Callable(bw) | |
439 | + | func repay (T,bz) = { | |
440 | + | let bA = [if (!(N)) | |
421 | 441 | then true | |
422 | - | else | |
423 | - | if (( | |
442 | + | else B("not allowed"), R(bw.caller)] | |
443 | + | if ((bA == bA)) | |
424 | 444 | then $Tuple2(nil, unit) | |
425 | 445 | else throw("Strict value is not equal to itself.") | |
426 | 446 | } | |
427 | 447 | ||
428 | 448 | ||
429 | 449 | ||
430 | - | @Callable( | |
431 | - | func setPairAllowance ( | |
432 | - | let | |
450 | + | @Callable(bw) | |
451 | + | func setPairAllowance (T,bz) = { | |
452 | + | let bA = [if (!(N)) | |
433 | 453 | then true | |
434 | - | else | |
435 | - | if (( | |
454 | + | else B("not allowed"), R(bw.caller), S(T)] | |
455 | + | if ((bA == bA)) | |
436 | 456 | then { | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | $Tuple2(nil, | |
457 | + | let bB = bz[0] | |
458 | + | let bC = bz[1] | |
459 | + | let bW = bz[2] | |
460 | + | let aF = C(bB) | |
461 | + | let aG = C(bC) | |
462 | + | let bX = (bW == "true") | |
463 | + | let bQ = [invoke(I, "booleanEntry", [aE(aF, aG), bX], nil)] | |
464 | + | $Tuple2(nil, bQ) | |
445 | 465 | } | |
446 | 466 | else throw("Strict value is not equal to itself.") | |
447 | 467 | } | |
448 | 468 | ||
449 | 469 | ||
450 | 470 | ||
451 | - | @Callable( | |
452 | - | func addSyntheticAsset ( | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
471 | + | @Callable(bw) | |
472 | + | func addSyntheticAsset (T,bz) = { | |
473 | + | let bY = bz[0] | |
474 | + | let ak = C(bY) | |
475 | + | let am = bw.payments[0].assetId | |
476 | + | let bA = [if (!(N)) | |
457 | 477 | then true | |
458 | - | else | |
478 | + | else B("not allowed"), R(bw.caller), S(T), if ((getString(I, aj(ak)) == unit)) | |
459 | 479 | then true | |
460 | - | else | |
480 | + | else B("invalid base asset"), if ((size(bw.payments) == 1)) | |
461 | 481 | then true | |
462 | - | else | |
482 | + | else B("invalid payments"), if ((getString(I, al(am)) == unit)) | |
463 | 483 | then true | |
464 | - | else | |
465 | - | if (( | |
484 | + | else B("invalid synthetic asset")] | |
485 | + | if ((bA == bA)) | |
466 | 486 | then { | |
467 | - | let | |
468 | - | $Tuple2(nil, | |
487 | + | let bQ = [invoke(I, "stringEntry", [aj(ak), E(am)], nil), invoke(I, "stringEntry", [al(am), E(ak)], nil)] | |
488 | + | $Tuple2(nil, bQ) | |
469 | 489 | } | |
470 | 490 | else throw("Strict value is not equal to itself.") | |
471 | 491 | } | |
472 | 492 | ||
473 | 493 | ||
474 | 494 | ||
475 | - | @Callable( | |
476 | - | func doShutdown ( | |
477 | - | let | |
478 | - | if (( | |
495 | + | @Callable(bw) | |
496 | + | func doShutdown (T,bz) = { | |
497 | + | let bF = [R(bw.caller), S(T)] | |
498 | + | if ((bF == bF)) | |
479 | 499 | then { | |
480 | - | let | |
481 | - | $Tuple2(nil, | |
500 | + | let bQ = [invoke(I, "booleanEntry", [o, true], nil)] | |
501 | + | $Tuple2(nil, bQ) | |
482 | 502 | } | |
483 | 503 | else throw("Strict value is not equal to itself.") | |
484 | 504 | } | |
485 | 505 | ||
486 | 506 | ||
487 | - | @Verifier( | |
488 | - | func | |
489 | - | then isDefined(getString( | |
507 | + | @Verifier(bZ) | |
508 | + | func ca () = if (if (isDefined(G)) | |
509 | + | then isDefined(getString(I, k)) | |
490 | 510 | else false) | |
491 | 511 | then { | |
492 | - | let | |
493 | - | if ($isInstanceOf( | |
512 | + | let H = getString(I, k) | |
513 | + | if ($isInstanceOf(H, "String")) | |
494 | 514 | then { | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | | |
515 | + | let U = H | |
516 | + | let cb = l(toString(this), toBase58String(bZ.id)) | |
517 | + | let cc = valueOrElse(getBoolean(addressFromStringValue(U), cb), false) | |
518 | + | cc | |
499 | 519 | } | |
500 | 520 | else false | |
501 | 521 | } | |
502 | - | else sigVerify( | |
522 | + | else sigVerify(bZ.bodyBytes, bZ.proofs[0], bZ.senderPublicKey) | |
503 | 523 |
github/deemru/w8io/169f3d6 171.39 ms ◑