tx · 7wMyUpr7Wb1fYFUCyBEr2Xw6sAZ8QTkyT2MjHnodhWVS 3Ms7SA6E2ntk65GZD46LCZyGJjc4XNGuWpw: -0.01400000 Waves 2022.03.11 17:44 [1959425] smart account 3Ms7SA6E2ntk65GZD46LCZyGJjc4XNGuWpw > SELF 0.00000000 Waves
{ "type": 13, "id": "7wMyUpr7Wb1fYFUCyBEr2Xw6sAZ8QTkyT2MjHnodhWVS", "fee": 1400000, "feeAssetId": null, "timestamp": 1647009897720, "version": 1, "sender": "3Ms7SA6E2ntk65GZD46LCZyGJjc4XNGuWpw", "senderPublicKey": "Xr66kzm4ArQMXWGfdhubHQuHx1uwhWdjthS9EP1ayUn", "proofs": [ "3rTm4yFoKkb5es27Ep7HmBFt6Qo1HL1TZ4wpwPK9Jwn3cxhsB9DfrvmAG6SBVvf8YvJrkDf496uoS9rHuDTn7EHK" ], "script": "base64:AAIFAAAAAAAAABUIAhIDCgEIEgASAwoBCBIDCgEIEgAAAAAkAAAAAANTRVACAAAAAl9fAAAAAAZzY2FsZTgAAAAAAAX14QAAAAAAEXBvb2xTdGF0c1ByaWNlS2V5AAAAAAAAAAAEAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4UG9vbExQQXNzZXRJZAAAAAAAAAAAAwAAAAANaWR4QW10QXNzZXRJZAAAAAAAAAAABAAAAAAPaWR4UHJpY2VBc3NldElkAAAAAAAAAAAFAAAAAA5pZHhBbXRBc3NldERjbQAAAAAAAAAABgAAAAAQaWR4UHJpY2VBc3NldERjbQAAAAAAAAAABwAAAAAOaWR4SUFtdEFzc2V0SWQAAAAAAAAAAAgAAAAAEGlkeElQcmljZUFzc2V0SWQAAAAAAAAAAAkAAAAADWlkeExQQXNzZXREY20AAAAAAAAAAAoAAAAAE2lkeE1hdGNoZXJQdWJsaWNLZXkAAAAAAAAAAAsBAAAADmtleVJlZ2lzdGVyUHV0AAAAA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F0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXndp/uh", "chainId": 84, "height": 1959425, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ofZZG2QRyV8e5Vyf1AUAfP2apq3JEsYRR2RihFRqyhS Next: FKXciMLAskSxUe2EW8sfWa6VXQQouEP75nHAXDE4igc1 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 4 | |
9 | 9 | ||
10 | 10 | let d = 1 | |
11 | 11 | ||
12 | 12 | let e = 2 | |
13 | 13 | ||
14 | 14 | let f = 3 | |
15 | 15 | ||
16 | 16 | let g = 4 | |
17 | 17 | ||
18 | 18 | let h = 5 | |
19 | 19 | ||
20 | 20 | let i = 6 | |
21 | 21 | ||
22 | 22 | let j = 7 | |
23 | 23 | ||
24 | 24 | let k = 8 | |
25 | 25 | ||
26 | 26 | let l = 9 | |
27 | 27 | ||
28 | 28 | let m = 10 | |
29 | 29 | ||
30 | 30 | let n = 11 | |
31 | 31 | ||
32 | 32 | func o (p,q) = ((("%s%s%s__P__" + p) + "__") + q) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (p,q) = ((("%s%s%s__invest__" + p) + "__") + q) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func s (p,t) = ((("%s%s%s__total__" + p) + "__") + t) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func u () = "%s__factoryContract" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (p,t) = (((("%s%s%s__" + p) + "__") + t) + "__slippageCumulative") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w () = "%s__factoryConfig" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = (("%s%s%s__" + y) + "__mappings__poolContract2PoolAssets") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func z (A) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(A)) | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func B (C,D) = (((("%d%d%s__" + C) + "__") + D) + "__config") | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func E () = "%s__shutdown" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func F (G) = ("%s%s__poolWeight__" + G) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func H () = "%s__managerPublicKey" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func I () = "%s__pendingManagerPublicKey" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | let J = addressFromStringValue(valueOrErrorMessage(getString(this, u()), "No Factory Acc found.")) | |
72 | 72 | ||
73 | 73 | func K (t) = if (!(isDefined(t))) | |
74 | 74 | then "WAVES" | |
75 | 75 | else t | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func L (M,N,O,P) = makeString(["%s%d%d%d", M, toString(N), toString(O), toString(P)], a) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func Q (R,S,O,P) = makeString(["%d%d%d%d", toString(R), toString(S), toString(O), toString(P)], a) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func T (U) = { | |
85 | 85 | let V = U | |
86 | 86 | if ($isInstanceOf(V, "String")) | |
87 | 87 | then { | |
88 | 88 | let W = V | |
89 | 89 | W | |
90 | 90 | } | |
91 | 91 | else throw("fail to cast into String") | |
92 | 92 | } | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func X (Y,Z,aa) = fraction(Y, Z, aa) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func ab () = { | |
99 | 99 | let V = getString(H()) | |
100 | 100 | if ($isInstanceOf(V, "String")) | |
101 | 101 | then { | |
102 | 102 | let ac = V | |
103 | 103 | fromBase58String(ac) | |
104 | 104 | } | |
105 | 105 | else if ($isInstanceOf(V, "Unit")) | |
106 | 106 | then unit | |
107 | 107 | else throw("Match error") | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ad () = { | |
112 | 112 | let V = getString(I()) | |
113 | 113 | if ($isInstanceOf(V, "String")) | |
114 | 114 | then { | |
115 | 115 | let ac = V | |
116 | 116 | fromBase58String(ac) | |
117 | 117 | } | |
118 | 118 | else if ($isInstanceOf(V, "Unit")) | |
119 | 119 | then unit | |
120 | 120 | else throw("Match error") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ae (af) = { | |
125 | 125 | let ag = throw("Permission denied") | |
126 | 126 | let V = ab() | |
127 | 127 | if ($isInstanceOf(V, "ByteVector")) | |
128 | 128 | then { | |
129 | 129 | let ah = V | |
130 | 130 | if ((af.callerPublicKey == ah)) | |
131 | 131 | then true | |
132 | 132 | else ag | |
133 | 133 | } | |
134 | 134 | else if ($isInstanceOf(V, "Unit")) | |
135 | 135 | then if ((af.caller == this)) | |
136 | 136 | then true | |
137 | 137 | else ag | |
138 | 138 | else throw("Match error") | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(af) | |
143 | 143 | func constructor (J) = { | |
144 | 144 | let ai = ae(af) | |
145 | 145 | if ((ai == ai)) | |
146 | 146 | then [StringEntry(u(), J)] | |
147 | 147 | else throw("Strict value is not equal to itself.") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(af) | |
153 | 153 | func put () = { | |
154 | 154 | let aj = toString(af.caller) | |
155 | 155 | let ak = value(af.payments[0]) | |
156 | 156 | let al = if (!(isDefined(ak.assetId))) | |
157 | 157 | then "WAVES" | |
158 | 158 | else toBase58String(value(ak.assetId)) | |
159 | 159 | let am = ak.amount | |
160 | 160 | let an = split(valueOrErrorMessage(getString(J, x(aj)), "Invalid caller"), a) | |
161 | 161 | let ao = parseIntValue(an[1]) | |
162 | 162 | let ap = parseIntValue(an[2]) | |
163 | 163 | let aq = valueOrErrorMessage(getString(J, z(ao)), "Cannot find asset") | |
164 | 164 | let ar = valueOrErrorMessage(getString(J, z(ap)), "Cannot find asset") | |
165 | 165 | let as = valueOrElse(getInteger(this, s(aj, al)), 0) | |
166 | 166 | let at = valueOrElse(getInteger(this, v(aj, al)), 0) | |
167 | 167 | [StringEntry(o(aj, toBase58String(af.transactionId)), L(al, am, height, lastBlock.timestamp)), IntegerEntry(s(aj, al), (as + am)), IntegerEntry(v(aj, al), (at + am))] | |
168 | 168 | } | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(af) | |
173 | 173 | func invest (au) = { | |
174 | 174 | let p = valueOrErrorMessage(addressFromString(au), "invalid pool address") | |
175 | 175 | let an = split(valueOrErrorMessage(getString(J, x(au)), "Invalid pool passed."), a) | |
176 | 176 | let av = valueOrErrorMessage(getString(J, z(parseIntValue(an[1]))), "No asset mapping found") | |
177 | 177 | let aw = valueOrErrorMessage(getString(J, z(parseIntValue(an[2]))), "No asset mapping found") | |
178 | 178 | let ax = valueOrElse(getInteger(this, s(au, av)), 0) | |
179 | 179 | let ay = valueOrElse(getInteger(this, s(au, aw)), 0) | |
180 | 180 | let az = invoke(p, "evaluatePutByPriceAssetREADONLY", [ay], nil) | |
181 | 181 | let aA = invoke(p, "evaluatePutByAmountAssetREADONLY", [ax], nil) | |
182 | 182 | let aB = 7 | |
183 | 183 | let aC = 8 | |
184 | 184 | let aD = valueOrErrorMessage(parseIntValue(split(T(az), a)[aB]), "fail to parse estimated amAsset amount") | |
185 | 185 | let aE = valueOrErrorMessage(parseIntValue(split(T(aA), a)[aC]), "fail to parse estimated prAsset amount") | |
186 | 186 | let aF = if ((ax >= aD)) | |
187 | 187 | then $Tuple2(aD, ay) | |
188 | 188 | else $Tuple2(ax, aE) | |
189 | 189 | let aG = aF._1 | |
190 | 190 | let aH = aF._2 | |
191 | 191 | let aI = if ((av == "WAVES")) | |
192 | 192 | then unit | |
193 | 193 | else fromBase58String(av) | |
194 | 194 | let aJ = if ((aw == "WAVES")) | |
195 | 195 | then unit | |
196 | 196 | else fromBase58String(aw) | |
197 | 197 | let aK = invoke(p, "putForFree", [1000], [AttachedPayment(aI, aG), AttachedPayment(aJ, aH)]) | |
198 | 198 | if ((aK == aK)) | |
199 | 199 | then [StringEntry(r(au, toBase58String(af.transactionId)), Q(aG, aH, height, lastBlock.timestamp)), IntegerEntry(s(au, av), (ax - aG)), IntegerEntry(s(au, aw), (ay - aH))] | |
200 | 200 | else throw("Strict value is not equal to itself.") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | ||
205 | 205 | @Callable(af) | |
206 | 206 | func setManager (aL) = { | |
207 | 207 | let ai = ae(af) | |
208 | 208 | if ((ai == ai)) | |
209 | 209 | then { | |
210 | 210 | let aM = fromBase58String(aL) | |
211 | 211 | if ((aM == aM)) | |
212 | 212 | then [StringEntry(I(), aL)] | |
213 | 213 | else throw("Strict value is not equal to itself.") | |
214 | 214 | } | |
215 | 215 | else throw("Strict value is not equal to itself.") | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | ||
220 | 220 | @Callable(af) | |
221 | 221 | func confirmManager () = { | |
222 | 222 | let aN = ad() | |
223 | 223 | let aO = if (isDefined(aN)) | |
224 | 224 | then true | |
225 | 225 | else throw("No pending manager") | |
226 | 226 | if ((aO == aO)) | |
227 | 227 | then { | |
228 | 228 | let aP = if ((af.callerPublicKey == value(aN))) | |
229 | 229 | then true | |
230 | 230 | else throw("You are not pending manager") | |
231 | 231 | if ((aP == aP)) | |
232 | 232 | then [StringEntry(H(), toBase58String(value(aN))), DeleteEntry(I())] | |
233 | 233 | else throw("Strict value is not equal to itself.") | |
234 | 234 | } | |
235 | 235 | else throw("Strict value is not equal to itself.") | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Verifier(aQ) | |
240 | 240 | func aR () = { | |
241 | 241 | let aS = { | |
242 | 242 | let V = ab() | |
243 | 243 | if ($isInstanceOf(V, "ByteVector")) | |
244 | 244 | then { | |
245 | 245 | let ah = V | |
246 | 246 | ah | |
247 | 247 | } | |
248 | 248 | else if ($isInstanceOf(V, "Unit")) | |
249 | 249 | then aQ.senderPublicKey | |
250 | 250 | else throw("Match error") | |
251 | 251 | } | |
252 | 252 | sigVerify(aQ.bodyBytes, aQ.proofs[0], aS) | |
253 | 253 | } | |
254 | 254 |
github/deemru/w8io/169f3d6 46.90 ms ◑