tx · GfhnCcyen147CNcaHNDRkXjYK8MtHn8AaQr1achRJNQ8 3Muf6P6CBEAYRhK1kca1dEN2nLJpiguckpn: -0.01300000 Waves 2023.03.14 17:16 [2489826] smart account 3Muf6P6CBEAYRhK1kca1dEN2nLJpiguckpn > SELF 0.00000000 Waves
{ "type": 13, "id": "GfhnCcyen147CNcaHNDRkXjYK8MtHn8AaQr1achRJNQ8", "fee": 1300000, "feeAssetId": null, "timestamp": 1678803422334, "version": 2, "chainId": 84, "sender": "3Muf6P6CBEAYRhK1kca1dEN2nLJpiguckpn", "senderPublicKey": "2iY1dqnzPts3eAeccTKCnRq5PuEFsdtbavcFQ4k8hoQ1", "proofs": [ "4aimFQUsdxXDqTbDexjezJ3K6Ee5q6v3Xqo3iVyrTKr6kiYbpnkQfiMMxor37ttqEWWrA8sLvE7J6Zsj6MCmK9uu" ], "script": "base64:BgIVCAISAwoBCBIAEgMKAQgSAwoBCBIAJAADU0VQAgJfXwAGc2NhbGU4AIDC1y8AEXBvb2xTdGF0c1ByaWNlS2V5AAQADmlkeFBvb2xBZGRyZXNzAAEADWlkeFBvb2xTdGF0dXMAAgAQaWR4UG9vbExQQXNzZXRJZAADAA1pZHhBbXRBc3NldElkAAQAD2lkeFByaWNlQXNzZXRJZAAFAA5pZHhBbXRBc3NldERjbQAGABBpZHhQcmljZUFzc2V0RGNtAAcADmlkeElBbXRBc3NldElkAAgAEGlkeElQcmljZUFzc2V0SWQACQANaWR4TFBBc3NldERjbQAKABNpZHhNYXRjaGVyUHVibGljS2V5AAsBDmtleVJlZ2lzdGVyUHV0Agtwb29sQWRkcmVzcwR0eElkCQCsAgIJAKwCAgkArAICAgslcyVzJXNfX1BfXwULcG9vbEFkZHJlc3MCAl9fBQR0eElkARFrZXlSZWdpc3RlckludmVzdAILcG9vbEFkZHJlc3MEdHhJZAkArAICCQCsAgIJAKwCAgIQJXMlcyVzX19pbnZlc3RfXwULcG9vbEFkZHJlc3MCAl9fBQR0eElkARZrZXlQb29sVG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mdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleQXFtcg=", "height": 2489826, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HT3tf4fXNPQRmeJPN9ytamWDiyxV1hphgvfRA5G7GSii Next: GWCKmKZgCQiyGSHwZNhX81DUM4wMD1tphGq6C4doApFx Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
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/026f985 51.22 ms ◑