tx · 9NWLe5RBugR8HYNXLgUd8oRtGUQxiYEv96JMjuM8ucYY 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph: -0.01400000 Waves 2022.02.07 12:07 [1913003] smart account 3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph > SELF 0.00000000 Waves
{ "type": 13, "id": "9NWLe5RBugR8HYNXLgUd8oRtGUQxiYEv96JMjuM8ucYY", "fee": 1400000, "feeAssetId": null, "timestamp": 1644224804740, "version": 2, "chainId": 84, "sender": "3N61Cvq5XcnPk9rxpy2Rnp3bSr4syNGUJph", "senderPublicKey": "G7cNXePvAHUHmZfXa1eHnvFeH6DuykPC5wm9v9djTKgD", "proofs": [ "5va8ZgjRuzFtYTcCG5fWqvML66GfNn5Q6CNaEVmNf2nnyDMnDM8zuDy4Upjad3qb7EKW4mwCLQsv6ZSaWMnTcj58", "cxUF6yVLvbQ9eTe6Bcu25iQHHjtZWDynKL17KXnCeHtMKVyAWbnhJM1344AcEok32ccNRAc6TyjkuDk3AkqjfxA", "5P5isNhi4vjAM212iGJNr9Su7yvNtsRVdnXePcpt3XL1ns3C5DCETRgE3SDweY4MTchH44qZqgSXJRjWe4AJJa8y" ], "script": "base64:AAIFAAAAAAAAACsIAhIAEgYKBBgYGBESAwoBGBIGCgQICAEBEgASAwoBCBIDCgEIEgQKAhgUAAAAFQAAAAAKZGVwb3NpdEZlZQAAAAAAAAAD6AAAAAANY29udHJvbGxlckZlZQAAAAAAAAAnEAAAAAALcGxhdGZvcm1GZWUAAAAAAAAAJxAAAAAADGFkbWluUHViS2V5MQEAAAAgTC9F1XzqFGGdLucFXlrRY8ZeleddBPtyCBFVfBI5UHgAAAAADGFkbWluUHViS2V5MgEAAAAgo1jhnK8LndnZN54kO2lFL7fWRlVIuOuttap+d1LEBD0AAAAADGFkbWluUHViS2V5MwEAAAAgitC0+TBLGvFUtXZrOXd2PwDRrAhjEzCY3dTlamSkHykAAAAADGFkbWluUHViS2V5NAEAAAAgitC0+T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AAAFAAAADGFkbWluUHViS2V5MQAAAAAAAAAAAQAAAAAAAAAAAAQAAAAKYWRtMlNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAxhZG1pblB1YktleTIAAAAAAAAAAAEAAAAAAAAAAAAEAAAACmFkbTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAphZG0xU2lnbmVkBQAAAAphZG0yU2lnbmVkBQAAAAphZG0zU2lnbmVkAAAAAAAAAAAC4gCvug==", "height": 1913003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7JdeDJkNLEZgYZyedBSsuhHtu2dbTVw5n4uNKWT8vtL9 Next: 8C8N2zosTqyJhAX2p5D8hGhRQSwV5kV9t9rxiXGzoj7u Diff:
Old | New | Differences | |
---|---|---|---|
17 | 17 | ||
18 | 18 | let h = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL') | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "SWOP_id" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = fromBase58String(getStringValue(j, k)) | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = "deposit" | |
29 | 29 | ||
30 | - | func n (o) = { | |
31 | - | let p = (o + "_active") | |
32 | - | let q = { | |
33 | - | let r = getBoolean(this, p) | |
34 | - | if ($isInstanceOf(r, "Boolean")) | |
30 | + | let n = "withdraw" | |
31 | + | ||
32 | + | let o = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
33 | + | ||
34 | + | let p = ["replenishWithTwoTokens", "exchange"] | |
35 | + | ||
36 | + | func q (r) = { | |
37 | + | let s = (r + "_active") | |
38 | + | let t = { | |
39 | + | let u = getBoolean(this, s) | |
40 | + | if ($isInstanceOf(u, "Boolean")) | |
35 | 41 | then { | |
36 | - | let | |
37 | - | | |
42 | + | let v = u | |
43 | + | v | |
38 | 44 | } | |
39 | 45 | else throw("Pool is not active!") | |
40 | 46 | } | |
41 | - | | |
47 | + | t | |
42 | 48 | } | |
43 | 49 | ||
44 | 50 | ||
45 | - | func | |
46 | - | let | |
47 | - | if ($isInstanceOf( | |
51 | + | func w (r) = { | |
52 | + | let u = getString((r + "_service_token")) | |
53 | + | if ($isInstanceOf(u, "String")) | |
48 | 54 | then { | |
49 | - | let | |
50 | - | | |
55 | + | let x = u | |
56 | + | x | |
51 | 57 | } | |
52 | 58 | else { | |
53 | - | let | |
59 | + | let y = u | |
54 | 60 | throw("You try to deposit on unsupported pool") | |
55 | 61 | } | |
56 | 62 | } | |
57 | 63 | ||
58 | 64 | ||
59 | - | func | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
65 | + | func z (r) = { | |
66 | + | let u = getString((r + "_liquidity_token")) | |
67 | + | if ($isInstanceOf(u, "String")) | |
62 | 68 | then { | |
63 | - | let | |
64 | - | | |
69 | + | let x = u | |
70 | + | x | |
65 | 71 | } | |
66 | 72 | else { | |
67 | - | let | |
73 | + | let y = u | |
68 | 74 | throw("You try to withdraw from unsupported pool") | |
69 | 75 | } | |
70 | 76 | } | |
71 | 77 | ||
72 | 78 | ||
73 | - | func x (y) = { | |
74 | - | let r = getInteger(k, (((y + "_") + toString(this)) + "_share_tokens_locked")) | |
75 | - | if ($isInstanceOf(r, "Int")) | |
76 | - | then { | |
77 | - | let z = r | |
78 | - | z | |
79 | - | } | |
80 | - | else if ($isInstanceOf(r, "Unit")) | |
79 | + | func A (B) = if ((B == toBase58String(l))) | |
80 | + | then { | |
81 | + | let u = getInteger(i, (toString(this) + "_SWOP_amount")) | |
82 | + | if ($isInstanceOf(u, "Int")) | |
81 | 83 | then { | |
82 | - | let | |
83 | - | | |
84 | + | let C = u | |
85 | + | C | |
84 | 86 | } | |
85 | - | else throw("Match error") | |
86 | - | } | |
87 | + | else if ($isInstanceOf(u, "Unit")) | |
88 | + | then { | |
89 | + | let y = u | |
90 | + | 0 | |
91 | + | } | |
92 | + | else throw("Match error") | |
93 | + | } | |
94 | + | else { | |
95 | + | let u = getInteger(j, (((B + "_") + toString(this)) + "_share_tokens_locked")) | |
96 | + | if ($isInstanceOf(u, "Int")) | |
97 | + | then { | |
98 | + | let C = u | |
99 | + | C | |
100 | + | } | |
101 | + | else if ($isInstanceOf(u, "Unit")) | |
102 | + | then { | |
103 | + | let y = u | |
104 | + | 0 | |
105 | + | } | |
106 | + | else throw("Match error") | |
107 | + | } | |
87 | 108 | ||
88 | 109 | ||
89 | - | func | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | if ($isInstanceOf( | |
110 | + | func D (E,F,B,G) = { | |
111 | + | let H = A(B) | |
112 | + | let I = { | |
113 | + | let u = assetInfo(F) | |
114 | + | if ($isInstanceOf(u, "Asset")) | |
94 | 115 | then { | |
95 | - | let | |
96 | - | | |
116 | + | let J = u | |
117 | + | J.quantity | |
97 | 118 | } | |
98 | 119 | else throw("Can't find asset") | |
99 | 120 | } | |
100 | - | if (( | |
101 | - | then | |
102 | - | else if (( | |
121 | + | if ((H == 0)) | |
122 | + | then E | |
123 | + | else if ((G == m)) | |
103 | 124 | then { | |
104 | - | let | |
105 | - | | |
125 | + | let K = fraction(E, I, H) | |
126 | + | K | |
106 | 127 | } | |
107 | 128 | else { | |
108 | - | let | |
109 | - | | |
129 | + | let K = fraction(E, H, I) | |
130 | + | K | |
110 | 131 | } | |
111 | 132 | } | |
112 | 133 | ||
113 | 134 | ||
114 | - | @Callable(I) | |
115 | - | func addPools (J,K,L,M) = if (containsElement([d, e, f], I.callerPublicKey)) | |
135 | + | @Callable(L) | |
136 | + | func test () = if (containsElement([d, e, f], L.callerPublicKey)) | |
137 | + | then [StringEntry("test_admin", "passed")] | |
138 | + | else [StringEntry("test_admin", "not_passed")] | |
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | @Callable(L) | |
143 | + | func addPools (M,N,O,P) = if (containsElement([d, e, f], L.callerPublicKey)) | |
116 | 144 | then { | |
117 | - | func | |
145 | + | func Q (R,r) = IntegerEntry((r + "_asset_balance"), 0) :: R | |
118 | 146 | ||
119 | - | func | |
120 | - | let | |
121 | - | let | |
122 | - | StringEntry(( | |
147 | + | func S (R,r) = { | |
148 | + | let T = value(indexOf(M, r)) | |
149 | + | let U = N[T] | |
150 | + | StringEntry((r + "_liquidity_token"), U) :: R | |
123 | 151 | } | |
124 | 152 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | StringEntry(( | |
153 | + | func V (R,r) = { | |
154 | + | let T = value(indexOf(M, r)) | |
155 | + | let U = O[T] | |
156 | + | StringEntry((r + "_service_token"), U) :: R | |
129 | 157 | } | |
130 | 158 | ||
131 | - | func | |
132 | - | let | |
133 | - | let | |
134 | - | IntegerEntry(( | |
159 | + | func W (R,r) = { | |
160 | + | let T = value(indexOf(M, r)) | |
161 | + | let U = P[T] | |
162 | + | IntegerEntry((r + "_service_token_decimal"), U) :: R | |
135 | 163 | } | |
136 | 164 | ||
137 | - | func | |
165 | + | func X (R,r) = BooleanEntry((r + "_active"), true) :: R | |
138 | 166 | ||
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | func | |
144 | - | then | |
145 | - | else | |
167 | + | let Y = { | |
168 | + | let Z = M | |
169 | + | let aa = size(Z) | |
170 | + | let ab = nil | |
171 | + | func ac (ad,ae) = if ((ae >= aa)) | |
172 | + | then ad | |
173 | + | else Q(ad, Z[ae]) | |
146 | 174 | ||
147 | - | func | |
148 | - | then | |
175 | + | func af (ad,ae) = if ((ae >= aa)) | |
176 | + | then ad | |
149 | 177 | else throw("List size exceeds 20") | |
150 | 178 | ||
151 | - | ac( | |
179 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
152 | 180 | } | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | func | |
158 | - | then | |
159 | - | else | |
181 | + | let ag = { | |
182 | + | let Z = M | |
183 | + | let aa = size(Z) | |
184 | + | let ab = nil | |
185 | + | func ah (ad,ae) = if ((ae >= aa)) | |
186 | + | then ad | |
187 | + | else S(ad, Z[ae]) | |
160 | 188 | ||
161 | - | func | |
162 | - | then | |
189 | + | func ai (ad,ae) = if ((ae >= aa)) | |
190 | + | then ad | |
163 | 191 | else throw("List size exceeds 20") | |
164 | 192 | ||
165 | - | | |
193 | + | ai(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
166 | 194 | } | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | func | |
172 | - | then | |
173 | - | else | |
195 | + | let aj = { | |
196 | + | let Z = M | |
197 | + | let aa = size(Z) | |
198 | + | let ab = nil | |
199 | + | func ak (ad,ae) = if ((ae >= aa)) | |
200 | + | then ad | |
201 | + | else V(ad, Z[ae]) | |
174 | 202 | ||
175 | - | func | |
176 | - | then | |
203 | + | func al (ad,ae) = if ((ae >= aa)) | |
204 | + | then ad | |
177 | 205 | else throw("List size exceeds 20") | |
178 | 206 | ||
179 | - | | |
207 | + | al(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
180 | 208 | } | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | func | |
186 | - | then | |
187 | - | else | |
209 | + | let am = { | |
210 | + | let Z = M | |
211 | + | let aa = size(Z) | |
212 | + | let ab = nil | |
213 | + | func an (ad,ae) = if ((ae >= aa)) | |
214 | + | then ad | |
215 | + | else W(ad, Z[ae]) | |
188 | 216 | ||
189 | - | func | |
190 | - | then | |
217 | + | func ao (ad,ae) = if ((ae >= aa)) | |
218 | + | then ad | |
191 | 219 | else throw("List size exceeds 20") | |
192 | 220 | ||
193 | - | | |
221 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
194 | 222 | } | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | func | |
200 | - | then | |
201 | - | else | |
223 | + | let ap = { | |
224 | + | let Z = M | |
225 | + | let aa = size(Z) | |
226 | + | let ab = nil | |
227 | + | func aq (ad,ae) = if ((ae >= aa)) | |
228 | + | then ad | |
229 | + | else X(ad, Z[ae]) | |
202 | 230 | ||
203 | - | func | |
204 | - | then | |
231 | + | func ar (ad,ae) = if ((ae >= aa)) | |
232 | + | then ad | |
205 | 233 | else throw("List size exceeds 20") | |
206 | 234 | ||
207 | - | | |
235 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
208 | 236 | } | |
209 | - | (((( | |
237 | + | ((((Y ++ ag) ++ aj) ++ am) ++ ap) | |
210 | 238 | } | |
211 | 239 | else throw("Only admin can call this function") | |
212 | 240 | ||
213 | 241 | ||
214 | 242 | ||
215 | - | @Callable( | |
216 | - | func deleteDepositLockRecords ( | |
243 | + | @Callable(L) | |
244 | + | func deleteDepositLockRecords (as) = if (containsElement([d, e, f], L.callerPublicKey)) | |
217 | 245 | then { | |
218 | - | func | |
246 | + | func at (R,au) = DeleteEntry((au + "_locked")) :: R | |
219 | 247 | ||
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
248 | + | let av = { | |
249 | + | let Z = as | |
250 | + | let aa = size(Z) | |
251 | + | let ab = nil | |
252 | + | func ac (ad,ae) = if ((ae >= aa)) | |
253 | + | then ad | |
254 | + | else at(ad, Z[ae]) | |
227 | 255 | ||
228 | - | func | |
229 | - | then | |
256 | + | func af (ad,ae) = if ((ae >= aa)) | |
257 | + | then ad | |
230 | 258 | else throw("List size exceeds 100") | |
231 | 259 | ||
232 | - | ac( | |
260 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
233 | 261 | } | |
234 | - | | |
262 | + | av | |
235 | 263 | } | |
236 | 264 | else throw("Only admin can call this function") | |
237 | 265 | ||
238 | 266 | ||
239 | 267 | ||
240 | - | @Callable( | |
241 | - | func issueToken ( | |
242 | - | then [Issue( | |
268 | + | @Callable(L) | |
269 | + | func issueToken (aw,ax,ay,az) = if (containsElement([d, e, f], L.callerPublicKey)) | |
270 | + | then [Issue(aw, ax, ay, az, true, unit, 0)] | |
243 | 271 | else throw("Only admin can call this function") | |
244 | 272 | ||
245 | 273 | ||
246 | 274 | ||
247 | - | @Callable( | |
275 | + | @Callable(aA) | |
248 | 276 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
249 | 277 | ||
250 | 278 | ||
251 | 279 | ||
252 | - | @Callable( | |
253 | - | func deposit ( | |
280 | + | @Callable(L) | |
281 | + | func deposit (r) = if ((size(L.payments) != 1)) | |
254 | 282 | then throw("One attached payment expected") | |
255 | 283 | else { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
284 | + | let E = L.payments[0].amount | |
285 | + | let F = L.payments[0].assetId | |
286 | + | let aB = { | |
287 | + | let u = F | |
288 | + | if ($isInstanceOf(u, "ByteVector")) | |
261 | 289 | then { | |
262 | - | let | |
263 | - | toBase58String( | |
290 | + | let aC = u | |
291 | + | toBase58String(aC) | |
264 | 292 | } | |
265 | 293 | else throw("Match error") | |
266 | 294 | } | |
267 | - | if ((0 >= | |
268 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
295 | + | if ((0 >= E)) | |
296 | + | then throw(("Deposit amount must be positive. Actual: " + toString(E))) | |
269 | 297 | else { | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | if ($isInstanceOf( | |
298 | + | let aD = (r + "_asset_balance") | |
299 | + | let aE = toString(L.caller) | |
300 | + | let aF = (((r + "_") + aE) + "_asset_balance") | |
301 | + | let aG = w(r) | |
302 | + | let aH = { | |
303 | + | let u = getString((r + "_liquidity_token")) | |
304 | + | if ($isInstanceOf(u, "String")) | |
277 | 305 | then { | |
278 | - | let | |
279 | - | | |
306 | + | let x = u | |
307 | + | x | |
280 | 308 | } | |
281 | 309 | else { | |
282 | - | let | |
310 | + | let y = u | |
283 | 311 | throw("You try to deposit on unsupported pool") | |
284 | 312 | } | |
285 | 313 | } | |
286 | - | if ( | |
314 | + | if (q(r)) | |
287 | 315 | then { | |
288 | - | let | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
316 | + | let aI = { | |
317 | + | let u = assetInfo(fromBase58String(aH)) | |
318 | + | if ($isInstanceOf(u, "Asset")) | |
291 | 319 | then { | |
292 | - | let | |
293 | - | | |
320 | + | let J = u | |
321 | + | J.decimals | |
294 | 322 | } | |
295 | 323 | else throw("Can't find asset") | |
296 | 324 | } | |
297 | - | if (( | |
325 | + | if ((aH != aB)) | |
298 | 326 | then throw("You attached wrong liquidity token from Swop.fi") | |
299 | 327 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ($isInstanceOf( | |
328 | + | let aJ = getIntegerValue(this, aD) | |
329 | + | let aK = { | |
330 | + | let u = getInteger(aF) | |
331 | + | if ($isInstanceOf(u, "Int")) | |
304 | 332 | then { | |
305 | - | let | |
306 | - | | |
333 | + | let aL = u | |
334 | + | aL | |
307 | 335 | } | |
308 | 336 | else { | |
309 | - | let | |
337 | + | let y = u | |
310 | 338 | 0 | |
311 | 339 | } | |
312 | 340 | } | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | [Reissue(fromBase58String( | |
341 | + | let aM = ((E - fraction(E, 1, a, HALFUP)) - fraction(E, 1, b, HALFUP)) | |
342 | + | let K = D(aM, fromBase58String(aG), r, m) | |
343 | + | let aN = (E - aM) | |
344 | + | let aO = ((aJ + E) - aN) | |
345 | + | let aP = (aK + K) | |
346 | + | let aQ = (((((r + "_") + aE) + "_") + toBase58String(L.transactionId)) + "_locked") | |
347 | + | [Reissue(fromBase58String(aG), K, true), ScriptTransfer(L.caller, K, fromBase58String(aG)), ScriptTransfer(h, aN, fromBase58String(aH)), IntegerEntry(aQ, aM), IntegerEntry(aD, aO), IntegerEntry(aF, aP)] | |
320 | 348 | } | |
321 | 349 | } | |
322 | 350 | else throw("Pool is not active!") | |
325 | 353 | ||
326 | 354 | ||
327 | 355 | ||
328 | - | @Callable( | |
329 | - | func withdraw ( | |
356 | + | @Callable(L) | |
357 | + | func withdraw (r) = if ((size(L.payments) != 1)) | |
330 | 358 | then throw("One attached payment expected") | |
331 | 359 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
360 | + | let E = L.payments[0].amount | |
361 | + | let F = L.payments[0].assetId | |
362 | + | let aB = { | |
363 | + | let u = F | |
364 | + | if ($isInstanceOf(u, "ByteVector")) | |
337 | 365 | then { | |
338 | - | let | |
339 | - | toBase58String( | |
366 | + | let aC = u | |
367 | + | toBase58String(aC) | |
340 | 368 | } | |
341 | 369 | else throw("Match error") | |
342 | 370 | } | |
343 | - | if ((0 >= | |
344 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
345 | - | else if ( | |
371 | + | if ((0 >= E)) | |
372 | + | then throw(("Deposit amount must be positive. Actual: " + toString(E))) | |
373 | + | else if (q(r)) | |
346 | 374 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | if ($isInstanceOf( | |
375 | + | let aD = (r + "_asset_balance") | |
376 | + | let aE = toString(L.caller) | |
377 | + | let aF = (((r + "_") + aE) + "_asset_balance") | |
378 | + | let aK = { | |
379 | + | let u = getInteger(aF) | |
380 | + | if ($isInstanceOf(u, "Int")) | |
353 | 381 | then { | |
354 | - | let | |
355 | - | | |
382 | + | let aL = u | |
383 | + | aL | |
356 | 384 | } | |
357 | 385 | else { | |
358 | - | let | |
386 | + | let y = u | |
359 | 387 | 0 | |
360 | 388 | } | |
361 | 389 | } | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | [Burn(fromBase58String( | |
390 | + | let aG = w(r) | |
391 | + | let aH = z(r) | |
392 | + | let aJ = getIntegerValue(this, aD) | |
393 | + | let K = D(E, fromBase58String(aB), r, n) | |
394 | + | let aO = (aJ - E) | |
395 | + | let aP = (aK - E) | |
396 | + | [Burn(fromBase58String(aG), E), ScriptTransfer(L.caller, K, fromBase58String(aH)), IntegerEntry(aD, aO), IntegerEntry(aF, aP)] | |
369 | 397 | } | |
370 | 398 | else throw("Pool is not active!") | |
371 | 399 | } | |
372 | 400 | ||
373 | 401 | ||
374 | 402 | ||
375 | - | @Callable( | |
376 | - | func poolActivating ( | |
403 | + | @Callable(L) | |
404 | + | func poolActivating (M,aR) = if (containsElement([d, e, f], L.callerPublicKey)) | |
377 | 405 | then { | |
378 | - | func | |
379 | - | let | |
380 | - | let | |
381 | - | BooleanEntry(( | |
406 | + | func X (R,r) = { | |
407 | + | let T = value(indexOf(M, r)) | |
408 | + | let aS = aR[T] | |
409 | + | BooleanEntry((r + "_active"), aS) :: R | |
382 | 410 | } | |
383 | 411 | ||
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | func | |
389 | - | then | |
390 | - | else | |
412 | + | let ap = { | |
413 | + | let Z = M | |
414 | + | let aa = size(Z) | |
415 | + | let ab = nil | |
416 | + | func ac (ad,ae) = if ((ae >= aa)) | |
417 | + | then ad | |
418 | + | else X(ad, Z[ae]) | |
391 | 419 | ||
392 | - | func | |
393 | - | then | |
420 | + | func af (ad,ae) = if ((ae >= aa)) | |
421 | + | then ad | |
394 | 422 | else throw("List size exceeds 100") | |
395 | 423 | ||
396 | - | ac( | |
424 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
397 | 425 | } | |
398 | - | | |
426 | + | ap | |
399 | 427 | } | |
400 | 428 | else throw("Only admin can call this function") | |
401 | 429 | ||
402 | 430 | ||
403 | - | @Verifier( | |
404 | - | func | |
405 | - | let | |
406 | - | if ($isInstanceOf( | |
431 | + | @Verifier(aT) | |
432 | + | func aU () = { | |
433 | + | let u = aT | |
434 | + | if ($isInstanceOf(u, "InvokeScriptTransaction")) | |
407 | 435 | then { | |
408 | - | let | |
409 | - | let | |
410 | - | then if (if (( | |
436 | + | let aV = u | |
437 | + | let aW = if ((aV.dApp == j)) | |
438 | + | then if (if ((aV.function == "lockShareTokens")) | |
411 | 439 | then true | |
412 | - | else ( | |
440 | + | else (aV.function == "claim")) | |
413 | 441 | then true | |
414 | - | else ( | |
442 | + | else (aV.function == "withdrawShareTokens") | |
415 | 443 | else false | |
416 | - | let aU = { | |
417 | - | let aV = aS.dApp | |
418 | - | if ($isInstanceOf(aV, "Address")) | |
444 | + | let aX = if ((aV.dApp == i)) | |
445 | + | then if ((aV.function == "lockSWOP")) | |
446 | + | then true | |
447 | + | else (aV.function == "withdrawSWOP") | |
448 | + | else false | |
449 | + | let aY = { | |
450 | + | let aZ = aV.dApp | |
451 | + | if ($isInstanceOf(aZ, "Address")) | |
419 | 452 | then { | |
420 | - | let | |
421 | - | toString( | |
453 | + | let ba = aZ | |
454 | + | toString(ba) | |
422 | 455 | } | |
423 | 456 | else throw("Transaction must have only address") | |
424 | 457 | } | |
425 | - | let | |
426 | - | then containsElement( | |
458 | + | let bb = if (containsElement(o, aY)) | |
459 | + | then containsElement(p, aV.function) | |
427 | 460 | else false | |
428 | - | let | |
461 | + | let bc = if (if (if (sigVerify(aT.bodyBytes, aT.proofs[0], d)) | |
429 | 462 | then true | |
430 | - | else sigVerify( | |
463 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], e)) | |
431 | 464 | then true | |
432 | - | else sigVerify( | |
465 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], g)) | |
433 | 466 | then true | |
434 | - | else sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
435 | - | if (if (aT) | |
467 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey) | |
468 | + | if (if (if (aW) | |
469 | + | then true | |
470 | + | else bb) | |
436 | 471 | then true | |
437 | 472 | else aX) | |
438 | - | then | |
473 | + | then bc | |
439 | 474 | else false | |
440 | 475 | } | |
441 | 476 | else { | |
442 | - | let | |
477 | + | let bd = if (sigVerify(aT.bodyBytes, aT.proofs[0], d)) | |
443 | 478 | then 1 | |
444 | 479 | else 0 | |
445 | - | let | |
480 | + | let be = if (sigVerify(aT.bodyBytes, aT.proofs[1], e)) | |
446 | 481 | then 1 | |
447 | 482 | else 0 | |
448 | - | let | |
483 | + | let bf = if (sigVerify(aT.bodyBytes, aT.proofs[2], f)) | |
449 | 484 | then 1 | |
450 | 485 | else 0 | |
451 | - | ((( | |
486 | + | (((bd + be) + bf) >= 2) | |
452 | 487 | } | |
453 | 488 | } | |
454 | 489 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000 | |
7 | 7 | ||
8 | 8 | let c = 10000 | |
9 | 9 | ||
10 | 10 | let d = base58'68Po1k24uP6goKr7RDmXPg4QkMiKuyTMEirao14rif8s' | |
11 | 11 | ||
12 | 12 | let e = base58'Bze4aurT9WmLgBT6swA9CajaZFtUwhtwCri6XGAjnAkt' | |
13 | 13 | ||
14 | 14 | let f = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
15 | 15 | ||
16 | 16 | let g = base58'ALsqwPqiUP3bVbM7grozc1Y5oHVBAGKqACRJ5J8RXceC' | |
17 | 17 | ||
18 | 18 | let h = Address(base58'3N7ExjwfofPYTvNBv2zqtAtLcMxqjTxS7iL') | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = Address(base58'3NBTuZhn2CwAgWGL99qpGDjZQ4Wtbg56iDL') | |
23 | 23 | ||
24 | - | let k = | |
24 | + | let k = "SWOP_id" | |
25 | 25 | ||
26 | - | let l = | |
26 | + | let l = fromBase58String(getStringValue(j, k)) | |
27 | 27 | ||
28 | - | let m = | |
28 | + | let m = "deposit" | |
29 | 29 | ||
30 | - | func n (o) = { | |
31 | - | let p = (o + "_active") | |
32 | - | let q = { | |
33 | - | let r = getBoolean(this, p) | |
34 | - | if ($isInstanceOf(r, "Boolean")) | |
30 | + | let n = "withdraw" | |
31 | + | ||
32 | + | let o = ["3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1", "3PKy2mZqnvT2EtpwDim9Mgs6YvCRe4s85nX", "3P27S9V36kw2McjWRZ37AxTx8iwkd7HXw6W"] | |
33 | + | ||
34 | + | let p = ["replenishWithTwoTokens", "exchange"] | |
35 | + | ||
36 | + | func q (r) = { | |
37 | + | let s = (r + "_active") | |
38 | + | let t = { | |
39 | + | let u = getBoolean(this, s) | |
40 | + | if ($isInstanceOf(u, "Boolean")) | |
35 | 41 | then { | |
36 | - | let | |
37 | - | | |
42 | + | let v = u | |
43 | + | v | |
38 | 44 | } | |
39 | 45 | else throw("Pool is not active!") | |
40 | 46 | } | |
41 | - | | |
47 | + | t | |
42 | 48 | } | |
43 | 49 | ||
44 | 50 | ||
45 | - | func | |
46 | - | let | |
47 | - | if ($isInstanceOf( | |
51 | + | func w (r) = { | |
52 | + | let u = getString((r + "_service_token")) | |
53 | + | if ($isInstanceOf(u, "String")) | |
48 | 54 | then { | |
49 | - | let | |
50 | - | | |
55 | + | let x = u | |
56 | + | x | |
51 | 57 | } | |
52 | 58 | else { | |
53 | - | let | |
59 | + | let y = u | |
54 | 60 | throw("You try to deposit on unsupported pool") | |
55 | 61 | } | |
56 | 62 | } | |
57 | 63 | ||
58 | 64 | ||
59 | - | func | |
60 | - | let | |
61 | - | if ($isInstanceOf( | |
65 | + | func z (r) = { | |
66 | + | let u = getString((r + "_liquidity_token")) | |
67 | + | if ($isInstanceOf(u, "String")) | |
62 | 68 | then { | |
63 | - | let | |
64 | - | | |
69 | + | let x = u | |
70 | + | x | |
65 | 71 | } | |
66 | 72 | else { | |
67 | - | let | |
73 | + | let y = u | |
68 | 74 | throw("You try to withdraw from unsupported pool") | |
69 | 75 | } | |
70 | 76 | } | |
71 | 77 | ||
72 | 78 | ||
73 | - | func x (y) = { | |
74 | - | let r = getInteger(k, (((y + "_") + toString(this)) + "_share_tokens_locked")) | |
75 | - | if ($isInstanceOf(r, "Int")) | |
76 | - | then { | |
77 | - | let z = r | |
78 | - | z | |
79 | - | } | |
80 | - | else if ($isInstanceOf(r, "Unit")) | |
79 | + | func A (B) = if ((B == toBase58String(l))) | |
80 | + | then { | |
81 | + | let u = getInteger(i, (toString(this) + "_SWOP_amount")) | |
82 | + | if ($isInstanceOf(u, "Int")) | |
81 | 83 | then { | |
82 | - | let | |
83 | - | | |
84 | + | let C = u | |
85 | + | C | |
84 | 86 | } | |
85 | - | else throw("Match error") | |
86 | - | } | |
87 | + | else if ($isInstanceOf(u, "Unit")) | |
88 | + | then { | |
89 | + | let y = u | |
90 | + | 0 | |
91 | + | } | |
92 | + | else throw("Match error") | |
93 | + | } | |
94 | + | else { | |
95 | + | let u = getInteger(j, (((B + "_") + toString(this)) + "_share_tokens_locked")) | |
96 | + | if ($isInstanceOf(u, "Int")) | |
97 | + | then { | |
98 | + | let C = u | |
99 | + | C | |
100 | + | } | |
101 | + | else if ($isInstanceOf(u, "Unit")) | |
102 | + | then { | |
103 | + | let y = u | |
104 | + | 0 | |
105 | + | } | |
106 | + | else throw("Match error") | |
107 | + | } | |
87 | 108 | ||
88 | 109 | ||
89 | - | func | |
90 | - | let | |
91 | - | let | |
92 | - | let | |
93 | - | if ($isInstanceOf( | |
110 | + | func D (E,F,B,G) = { | |
111 | + | let H = A(B) | |
112 | + | let I = { | |
113 | + | let u = assetInfo(F) | |
114 | + | if ($isInstanceOf(u, "Asset")) | |
94 | 115 | then { | |
95 | - | let | |
96 | - | | |
116 | + | let J = u | |
117 | + | J.quantity | |
97 | 118 | } | |
98 | 119 | else throw("Can't find asset") | |
99 | 120 | } | |
100 | - | if (( | |
101 | - | then | |
102 | - | else if (( | |
121 | + | if ((H == 0)) | |
122 | + | then E | |
123 | + | else if ((G == m)) | |
103 | 124 | then { | |
104 | - | let | |
105 | - | | |
125 | + | let K = fraction(E, I, H) | |
126 | + | K | |
106 | 127 | } | |
107 | 128 | else { | |
108 | - | let | |
109 | - | | |
129 | + | let K = fraction(E, H, I) | |
130 | + | K | |
110 | 131 | } | |
111 | 132 | } | |
112 | 133 | ||
113 | 134 | ||
114 | - | @Callable(I) | |
115 | - | func addPools (J,K,L,M) = if (containsElement([d, e, f], I.callerPublicKey)) | |
135 | + | @Callable(L) | |
136 | + | func test () = if (containsElement([d, e, f], L.callerPublicKey)) | |
137 | + | then [StringEntry("test_admin", "passed")] | |
138 | + | else [StringEntry("test_admin", "not_passed")] | |
139 | + | ||
140 | + | ||
141 | + | ||
142 | + | @Callable(L) | |
143 | + | func addPools (M,N,O,P) = if (containsElement([d, e, f], L.callerPublicKey)) | |
116 | 144 | then { | |
117 | - | func | |
145 | + | func Q (R,r) = IntegerEntry((r + "_asset_balance"), 0) :: R | |
118 | 146 | ||
119 | - | func | |
120 | - | let | |
121 | - | let | |
122 | - | StringEntry(( | |
147 | + | func S (R,r) = { | |
148 | + | let T = value(indexOf(M, r)) | |
149 | + | let U = N[T] | |
150 | + | StringEntry((r + "_liquidity_token"), U) :: R | |
123 | 151 | } | |
124 | 152 | ||
125 | - | func | |
126 | - | let | |
127 | - | let | |
128 | - | StringEntry(( | |
153 | + | func V (R,r) = { | |
154 | + | let T = value(indexOf(M, r)) | |
155 | + | let U = O[T] | |
156 | + | StringEntry((r + "_service_token"), U) :: R | |
129 | 157 | } | |
130 | 158 | ||
131 | - | func | |
132 | - | let | |
133 | - | let | |
134 | - | IntegerEntry(( | |
159 | + | func W (R,r) = { | |
160 | + | let T = value(indexOf(M, r)) | |
161 | + | let U = P[T] | |
162 | + | IntegerEntry((r + "_service_token_decimal"), U) :: R | |
135 | 163 | } | |
136 | 164 | ||
137 | - | func | |
165 | + | func X (R,r) = BooleanEntry((r + "_active"), true) :: R | |
138 | 166 | ||
139 | - | let | |
140 | - | let | |
141 | - | let | |
142 | - | let | |
143 | - | func | |
144 | - | then | |
145 | - | else | |
167 | + | let Y = { | |
168 | + | let Z = M | |
169 | + | let aa = size(Z) | |
170 | + | let ab = nil | |
171 | + | func ac (ad,ae) = if ((ae >= aa)) | |
172 | + | then ad | |
173 | + | else Q(ad, Z[ae]) | |
146 | 174 | ||
147 | - | func | |
148 | - | then | |
175 | + | func af (ad,ae) = if ((ae >= aa)) | |
176 | + | then ad | |
149 | 177 | else throw("List size exceeds 20") | |
150 | 178 | ||
151 | - | ac( | |
179 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
152 | 180 | } | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | func | |
158 | - | then | |
159 | - | else | |
181 | + | let ag = { | |
182 | + | let Z = M | |
183 | + | let aa = size(Z) | |
184 | + | let ab = nil | |
185 | + | func ah (ad,ae) = if ((ae >= aa)) | |
186 | + | then ad | |
187 | + | else S(ad, Z[ae]) | |
160 | 188 | ||
161 | - | func | |
162 | - | then | |
189 | + | func ai (ad,ae) = if ((ae >= aa)) | |
190 | + | then ad | |
163 | 191 | else throw("List size exceeds 20") | |
164 | 192 | ||
165 | - | | |
193 | + | ai(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ah(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
166 | 194 | } | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | func | |
172 | - | then | |
173 | - | else | |
195 | + | let aj = { | |
196 | + | let Z = M | |
197 | + | let aa = size(Z) | |
198 | + | let ab = nil | |
199 | + | func ak (ad,ae) = if ((ae >= aa)) | |
200 | + | then ad | |
201 | + | else V(ad, Z[ae]) | |
174 | 202 | ||
175 | - | func | |
176 | - | then | |
203 | + | func al (ad,ae) = if ((ae >= aa)) | |
204 | + | then ad | |
177 | 205 | else throw("List size exceeds 20") | |
178 | 206 | ||
179 | - | | |
207 | + | al(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ak(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
180 | 208 | } | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | func | |
186 | - | then | |
187 | - | else | |
209 | + | let am = { | |
210 | + | let Z = M | |
211 | + | let aa = size(Z) | |
212 | + | let ab = nil | |
213 | + | func an (ad,ae) = if ((ae >= aa)) | |
214 | + | then ad | |
215 | + | else W(ad, Z[ae]) | |
188 | 216 | ||
189 | - | func | |
190 | - | then | |
217 | + | func ao (ad,ae) = if ((ae >= aa)) | |
218 | + | then ad | |
191 | 219 | else throw("List size exceeds 20") | |
192 | 220 | ||
193 | - | | |
221 | + | ao(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(an(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
194 | 222 | } | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | func | |
200 | - | then | |
201 | - | else | |
223 | + | let ap = { | |
224 | + | let Z = M | |
225 | + | let aa = size(Z) | |
226 | + | let ab = nil | |
227 | + | func aq (ad,ae) = if ((ae >= aa)) | |
228 | + | then ad | |
229 | + | else X(ad, Z[ae]) | |
202 | 230 | ||
203 | - | func | |
204 | - | then | |
231 | + | func ar (ad,ae) = if ((ae >= aa)) | |
232 | + | then ad | |
205 | 233 | else throw("List size exceeds 20") | |
206 | 234 | ||
207 | - | | |
235 | + | ar(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(aq(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
208 | 236 | } | |
209 | - | (((( | |
237 | + | ((((Y ++ ag) ++ aj) ++ am) ++ ap) | |
210 | 238 | } | |
211 | 239 | else throw("Only admin can call this function") | |
212 | 240 | ||
213 | 241 | ||
214 | 242 | ||
215 | - | @Callable( | |
216 | - | func deleteDepositLockRecords ( | |
243 | + | @Callable(L) | |
244 | + | func deleteDepositLockRecords (as) = if (containsElement([d, e, f], L.callerPublicKey)) | |
217 | 245 | then { | |
218 | - | func | |
246 | + | func at (R,au) = DeleteEntry((au + "_locked")) :: R | |
219 | 247 | ||
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | func | |
225 | - | then | |
226 | - | else | |
248 | + | let av = { | |
249 | + | let Z = as | |
250 | + | let aa = size(Z) | |
251 | + | let ab = nil | |
252 | + | func ac (ad,ae) = if ((ae >= aa)) | |
253 | + | then ad | |
254 | + | else at(ad, Z[ae]) | |
227 | 255 | ||
228 | - | func | |
229 | - | then | |
256 | + | func af (ad,ae) = if ((ae >= aa)) | |
257 | + | then ad | |
230 | 258 | else throw("List size exceeds 100") | |
231 | 259 | ||
232 | - | ac( | |
260 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
233 | 261 | } | |
234 | - | | |
262 | + | av | |
235 | 263 | } | |
236 | 264 | else throw("Only admin can call this function") | |
237 | 265 | ||
238 | 266 | ||
239 | 267 | ||
240 | - | @Callable( | |
241 | - | func issueToken ( | |
242 | - | then [Issue( | |
268 | + | @Callable(L) | |
269 | + | func issueToken (aw,ax,ay,az) = if (containsElement([d, e, f], L.callerPublicKey)) | |
270 | + | then [Issue(aw, ax, ay, az, true, unit, 0)] | |
243 | 271 | else throw("Only admin can call this function") | |
244 | 272 | ||
245 | 273 | ||
246 | 274 | ||
247 | - | @Callable( | |
275 | + | @Callable(aA) | |
248 | 276 | func call () = [DeleteEntry("3PPH7x7iqobW5ziyiRCic19rQqKr6nPYaK1_3N5viYFhnu1ew4FRZ9nujme9edr918FkT1a_current_reward")] | |
249 | 277 | ||
250 | 278 | ||
251 | 279 | ||
252 | - | @Callable( | |
253 | - | func deposit ( | |
280 | + | @Callable(L) | |
281 | + | func deposit (r) = if ((size(L.payments) != 1)) | |
254 | 282 | then throw("One attached payment expected") | |
255 | 283 | else { | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
284 | + | let E = L.payments[0].amount | |
285 | + | let F = L.payments[0].assetId | |
286 | + | let aB = { | |
287 | + | let u = F | |
288 | + | if ($isInstanceOf(u, "ByteVector")) | |
261 | 289 | then { | |
262 | - | let | |
263 | - | toBase58String( | |
290 | + | let aC = u | |
291 | + | toBase58String(aC) | |
264 | 292 | } | |
265 | 293 | else throw("Match error") | |
266 | 294 | } | |
267 | - | if ((0 >= | |
268 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
295 | + | if ((0 >= E)) | |
296 | + | then throw(("Deposit amount must be positive. Actual: " + toString(E))) | |
269 | 297 | else { | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | if ($isInstanceOf( | |
298 | + | let aD = (r + "_asset_balance") | |
299 | + | let aE = toString(L.caller) | |
300 | + | let aF = (((r + "_") + aE) + "_asset_balance") | |
301 | + | let aG = w(r) | |
302 | + | let aH = { | |
303 | + | let u = getString((r + "_liquidity_token")) | |
304 | + | if ($isInstanceOf(u, "String")) | |
277 | 305 | then { | |
278 | - | let | |
279 | - | | |
306 | + | let x = u | |
307 | + | x | |
280 | 308 | } | |
281 | 309 | else { | |
282 | - | let | |
310 | + | let y = u | |
283 | 311 | throw("You try to deposit on unsupported pool") | |
284 | 312 | } | |
285 | 313 | } | |
286 | - | if ( | |
314 | + | if (q(r)) | |
287 | 315 | then { | |
288 | - | let | |
289 | - | let | |
290 | - | if ($isInstanceOf( | |
316 | + | let aI = { | |
317 | + | let u = assetInfo(fromBase58String(aH)) | |
318 | + | if ($isInstanceOf(u, "Asset")) | |
291 | 319 | then { | |
292 | - | let | |
293 | - | | |
320 | + | let J = u | |
321 | + | J.decimals | |
294 | 322 | } | |
295 | 323 | else throw("Can't find asset") | |
296 | 324 | } | |
297 | - | if (( | |
325 | + | if ((aH != aB)) | |
298 | 326 | then throw("You attached wrong liquidity token from Swop.fi") | |
299 | 327 | else { | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | if ($isInstanceOf( | |
328 | + | let aJ = getIntegerValue(this, aD) | |
329 | + | let aK = { | |
330 | + | let u = getInteger(aF) | |
331 | + | if ($isInstanceOf(u, "Int")) | |
304 | 332 | then { | |
305 | - | let | |
306 | - | | |
333 | + | let aL = u | |
334 | + | aL | |
307 | 335 | } | |
308 | 336 | else { | |
309 | - | let | |
337 | + | let y = u | |
310 | 338 | 0 | |
311 | 339 | } | |
312 | 340 | } | |
313 | - | let | |
314 | - | let | |
315 | - | let | |
316 | - | let | |
317 | - | let | |
318 | - | let | |
319 | - | [Reissue(fromBase58String( | |
341 | + | let aM = ((E - fraction(E, 1, a, HALFUP)) - fraction(E, 1, b, HALFUP)) | |
342 | + | let K = D(aM, fromBase58String(aG), r, m) | |
343 | + | let aN = (E - aM) | |
344 | + | let aO = ((aJ + E) - aN) | |
345 | + | let aP = (aK + K) | |
346 | + | let aQ = (((((r + "_") + aE) + "_") + toBase58String(L.transactionId)) + "_locked") | |
347 | + | [Reissue(fromBase58String(aG), K, true), ScriptTransfer(L.caller, K, fromBase58String(aG)), ScriptTransfer(h, aN, fromBase58String(aH)), IntegerEntry(aQ, aM), IntegerEntry(aD, aO), IntegerEntry(aF, aP)] | |
320 | 348 | } | |
321 | 349 | } | |
322 | 350 | else throw("Pool is not active!") | |
323 | 351 | } | |
324 | 352 | } | |
325 | 353 | ||
326 | 354 | ||
327 | 355 | ||
328 | - | @Callable( | |
329 | - | func withdraw ( | |
356 | + | @Callable(L) | |
357 | + | func withdraw (r) = if ((size(L.payments) != 1)) | |
330 | 358 | then throw("One attached payment expected") | |
331 | 359 | else { | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | if ($isInstanceOf( | |
360 | + | let E = L.payments[0].amount | |
361 | + | let F = L.payments[0].assetId | |
362 | + | let aB = { | |
363 | + | let u = F | |
364 | + | if ($isInstanceOf(u, "ByteVector")) | |
337 | 365 | then { | |
338 | - | let | |
339 | - | toBase58String( | |
366 | + | let aC = u | |
367 | + | toBase58String(aC) | |
340 | 368 | } | |
341 | 369 | else throw("Match error") | |
342 | 370 | } | |
343 | - | if ((0 >= | |
344 | - | then throw(("Deposit amount must be positive. Actual: " + toString( | |
345 | - | else if ( | |
371 | + | if ((0 >= E)) | |
372 | + | then throw(("Deposit amount must be positive. Actual: " + toString(E))) | |
373 | + | else if (q(r)) | |
346 | 374 | then { | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | if ($isInstanceOf( | |
375 | + | let aD = (r + "_asset_balance") | |
376 | + | let aE = toString(L.caller) | |
377 | + | let aF = (((r + "_") + aE) + "_asset_balance") | |
378 | + | let aK = { | |
379 | + | let u = getInteger(aF) | |
380 | + | if ($isInstanceOf(u, "Int")) | |
353 | 381 | then { | |
354 | - | let | |
355 | - | | |
382 | + | let aL = u | |
383 | + | aL | |
356 | 384 | } | |
357 | 385 | else { | |
358 | - | let | |
386 | + | let y = u | |
359 | 387 | 0 | |
360 | 388 | } | |
361 | 389 | } | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | [Burn(fromBase58String( | |
390 | + | let aG = w(r) | |
391 | + | let aH = z(r) | |
392 | + | let aJ = getIntegerValue(this, aD) | |
393 | + | let K = D(E, fromBase58String(aB), r, n) | |
394 | + | let aO = (aJ - E) | |
395 | + | let aP = (aK - E) | |
396 | + | [Burn(fromBase58String(aG), E), ScriptTransfer(L.caller, K, fromBase58String(aH)), IntegerEntry(aD, aO), IntegerEntry(aF, aP)] | |
369 | 397 | } | |
370 | 398 | else throw("Pool is not active!") | |
371 | 399 | } | |
372 | 400 | ||
373 | 401 | ||
374 | 402 | ||
375 | - | @Callable( | |
376 | - | func poolActivating ( | |
403 | + | @Callable(L) | |
404 | + | func poolActivating (M,aR) = if (containsElement([d, e, f], L.callerPublicKey)) | |
377 | 405 | then { | |
378 | - | func | |
379 | - | let | |
380 | - | let | |
381 | - | BooleanEntry(( | |
406 | + | func X (R,r) = { | |
407 | + | let T = value(indexOf(M, r)) | |
408 | + | let aS = aR[T] | |
409 | + | BooleanEntry((r + "_active"), aS) :: R | |
382 | 410 | } | |
383 | 411 | ||
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | func | |
389 | - | then | |
390 | - | else | |
412 | + | let ap = { | |
413 | + | let Z = M | |
414 | + | let aa = size(Z) | |
415 | + | let ab = nil | |
416 | + | func ac (ad,ae) = if ((ae >= aa)) | |
417 | + | then ad | |
418 | + | else X(ad, Z[ae]) | |
391 | 419 | ||
392 | - | func | |
393 | - | then | |
420 | + | func af (ad,ae) = if ((ae >= aa)) | |
421 | + | then ad | |
394 | 422 | else throw("List size exceeds 100") | |
395 | 423 | ||
396 | - | ac( | |
424 | + | af(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ac(ab, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
397 | 425 | } | |
398 | - | | |
426 | + | ap | |
399 | 427 | } | |
400 | 428 | else throw("Only admin can call this function") | |
401 | 429 | ||
402 | 430 | ||
403 | - | @Verifier( | |
404 | - | func | |
405 | - | let | |
406 | - | if ($isInstanceOf( | |
431 | + | @Verifier(aT) | |
432 | + | func aU () = { | |
433 | + | let u = aT | |
434 | + | if ($isInstanceOf(u, "InvokeScriptTransaction")) | |
407 | 435 | then { | |
408 | - | let | |
409 | - | let | |
410 | - | then if (if (( | |
436 | + | let aV = u | |
437 | + | let aW = if ((aV.dApp == j)) | |
438 | + | then if (if ((aV.function == "lockShareTokens")) | |
411 | 439 | then true | |
412 | - | else ( | |
440 | + | else (aV.function == "claim")) | |
413 | 441 | then true | |
414 | - | else ( | |
442 | + | else (aV.function == "withdrawShareTokens") | |
415 | 443 | else false | |
416 | - | let aU = { | |
417 | - | let aV = aS.dApp | |
418 | - | if ($isInstanceOf(aV, "Address")) | |
444 | + | let aX = if ((aV.dApp == i)) | |
445 | + | then if ((aV.function == "lockSWOP")) | |
446 | + | then true | |
447 | + | else (aV.function == "withdrawSWOP") | |
448 | + | else false | |
449 | + | let aY = { | |
450 | + | let aZ = aV.dApp | |
451 | + | if ($isInstanceOf(aZ, "Address")) | |
419 | 452 | then { | |
420 | - | let | |
421 | - | toString( | |
453 | + | let ba = aZ | |
454 | + | toString(ba) | |
422 | 455 | } | |
423 | 456 | else throw("Transaction must have only address") | |
424 | 457 | } | |
425 | - | let | |
426 | - | then containsElement( | |
458 | + | let bb = if (containsElement(o, aY)) | |
459 | + | then containsElement(p, aV.function) | |
427 | 460 | else false | |
428 | - | let | |
461 | + | let bc = if (if (if (sigVerify(aT.bodyBytes, aT.proofs[0], d)) | |
429 | 462 | then true | |
430 | - | else sigVerify( | |
463 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], e)) | |
431 | 464 | then true | |
432 | - | else sigVerify( | |
465 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], g)) | |
433 | 466 | then true | |
434 | - | else sigVerify(aQ.bodyBytes, aQ.proofs[0], aQ.senderPublicKey) | |
435 | - | if (if (aT) | |
467 | + | else sigVerify(aT.bodyBytes, aT.proofs[0], aT.senderPublicKey) | |
468 | + | if (if (if (aW) | |
469 | + | then true | |
470 | + | else bb) | |
436 | 471 | then true | |
437 | 472 | else aX) | |
438 | - | then | |
473 | + | then bc | |
439 | 474 | else false | |
440 | 475 | } | |
441 | 476 | else { | |
442 | - | let | |
477 | + | let bd = if (sigVerify(aT.bodyBytes, aT.proofs[0], d)) | |
443 | 478 | then 1 | |
444 | 479 | else 0 | |
445 | - | let | |
480 | + | let be = if (sigVerify(aT.bodyBytes, aT.proofs[1], e)) | |
446 | 481 | then 1 | |
447 | 482 | else 0 | |
448 | - | let | |
483 | + | let bf = if (sigVerify(aT.bodyBytes, aT.proofs[2], f)) | |
449 | 484 | then 1 | |
450 | 485 | else 0 | |
451 | - | ((( | |
486 | + | (((bd + be) + bf) >= 2) | |
452 | 487 | } | |
453 | 488 | } | |
454 | 489 |
github/deemru/w8io/026f985 368.89 ms ◑