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:AAIFAAAAAAAAABUIAhIDCgEIEgASAwoBCBIDCgEIEgAAAAAkAAAAAANTRVACAAAAAl9fAAAAAAZzY2FsZTgAAAAAAAX14QAAAAAAEXBvb2xTdGF0c1ByaWNlS2V5AAAAAAAAAAAEAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4UG9vbExQQXNzZXRJZAAAAAAAAAAAAwAAAAANaWR4QW10QXNzZXRJZAAAAAAAAAAABAAAAAAPaWR4UHJpY2VBc3NldElkAAAAAAAAAAAFAAAAAA5pZHhBbXRBc3NldERjbQAAAAAAAAAABgAAAAAQaWR4UHJpY2VBc3NldERjbQAAAAAAAAAABwAAAAAOaWR4SUFtdEFzc2V0SWQAAAAAAAAAAAgAAAAAEGlkeElQcmljZUFzc2V0SWQAAAAAAAAAAAkAAAAADWlkeExQQXNzZXREY20AAAAAAAAAAAoAAAAAE2lkeE1hdGNoZXJQdWJsaWNLZXkAAAAAAAAAAAsBAAAADmtleVJlZ2lzdGVyUHV0AAAA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WF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXndp/uh", "chainId": 84, "height": 1959425, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ofZZG2QRyV8e5Vyf1AUAfP2apq3JEsYRR2RihFRqyhS Next: FKXciMLAskSxUe2EW8sfWa6VXQQouEP75nHAXDE4igc1 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 100000000
77
88 let c = 4
99
1010 let d = 1
1111
1212 let e = 2
1313
1414 let f = 3
1515
1616 let g = 4
1717
1818 let h = 5
1919
2020 let i = 6
2121
2222 let j = 7
2323
2424 let k = 8
2525
2626 let l = 9
2727
2828 let m = 10
2929
3030 let n = 11
3131
3232 func o (p,q) = ((("%s%s%s__P__" + p) + "__") + q)
3333
3434
3535 func r (p,q) = ((("%s%s%s__invest__" + p) + "__") + q)
3636
3737
3838 func s (p,t) = ((("%s%s%s__total__" + p) + "__") + t)
3939
4040
4141 func u () = "%s__factoryContract"
4242
4343
4444 func v (p,t) = (((("%s%s%s__" + p) + "__") + t) + "__slippageCumulative")
4545
4646
4747 func w () = "%s__factoryConfig"
4848
4949
5050 func x (y) = (("%s%s%s__" + y) + "__mappings__poolContract2PoolAssets")
5151
5252
5353 func z (A) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(A))
5454
5555
5656 func B (C,D) = (((("%d%d%s__" + C) + "__") + D) + "__config")
5757
5858
5959 func E () = "%s__shutdown"
6060
6161
6262 func F (G) = ("%s%s__poolWeight__" + G)
6363
6464
6565 func H () = "%s__managerPublicKey"
6666
6767
6868 func I () = "%s__pendingManagerPublicKey"
6969
7070
7171 let J = addressFromStringValue(valueOrErrorMessage(getString(this, u()), "No Factory Acc found."))
7272
7373 func K (t) = if (!(isDefined(t)))
7474 then "WAVES"
7575 else t
7676
7777
7878 func L (M,N,O,P) = makeString(["%s%d%d%d", M, toString(N), toString(O), toString(P)], a)
7979
8080
8181 func Q (R,S,O,P) = makeString(["%d%d%d%d", toString(R), toString(S), toString(O), toString(P)], a)
8282
8383
8484 func T (U) = {
8585 let V = U
8686 if ($isInstanceOf(V, "String"))
8787 then {
8888 let W = V
8989 W
9090 }
9191 else throw("fail to cast into String")
9292 }
9393
9494
9595 func X (Y,Z,aa) = fraction(Y, Z, aa)
9696
9797
9898 func ab () = {
9999 let V = getString(H())
100100 if ($isInstanceOf(V, "String"))
101101 then {
102102 let ac = V
103103 fromBase58String(ac)
104104 }
105105 else if ($isInstanceOf(V, "Unit"))
106106 then unit
107107 else throw("Match error")
108108 }
109109
110110
111111 func ad () = {
112112 let V = getString(I())
113113 if ($isInstanceOf(V, "String"))
114114 then {
115115 let ac = V
116116 fromBase58String(ac)
117117 }
118118 else if ($isInstanceOf(V, "Unit"))
119119 then unit
120120 else throw("Match error")
121121 }
122122
123123
124124 func ae (af) = {
125125 let ag = throw("Permission denied")
126126 let V = ab()
127127 if ($isInstanceOf(V, "ByteVector"))
128128 then {
129129 let ah = V
130130 if ((af.callerPublicKey == ah))
131131 then true
132132 else ag
133133 }
134134 else if ($isInstanceOf(V, "Unit"))
135135 then if ((af.caller == this))
136136 then true
137137 else ag
138138 else throw("Match error")
139139 }
140140
141141
142142 @Callable(af)
143143 func constructor (J) = {
144144 let ai = ae(af)
145145 if ((ai == ai))
146146 then [StringEntry(u(), J)]
147147 else throw("Strict value is not equal to itself.")
148148 }
149149
150150
151151
152152 @Callable(af)
153153 func put () = {
154154 let aj = toString(af.caller)
155155 let ak = value(af.payments[0])
156156 let al = if (!(isDefined(ak.assetId)))
157157 then "WAVES"
158158 else toBase58String(value(ak.assetId))
159159 let am = ak.amount
160160 let an = split(valueOrErrorMessage(getString(J, x(aj)), "Invalid caller"), a)
161161 let ao = parseIntValue(an[1])
162162 let ap = parseIntValue(an[2])
163163 let aq = valueOrErrorMessage(getString(J, z(ao)), "Cannot find asset")
164164 let ar = valueOrErrorMessage(getString(J, z(ap)), "Cannot find asset")
165165 let as = valueOrElse(getInteger(this, s(aj, al)), 0)
166166 let at = valueOrElse(getInteger(this, v(aj, al)), 0)
167167 [StringEntry(o(aj, toBase58String(af.transactionId)), L(al, am, height, lastBlock.timestamp)), IntegerEntry(s(aj, al), (as + am)), IntegerEntry(v(aj, al), (at + am))]
168168 }
169169
170170
171171
172172 @Callable(af)
173173 func invest (au) = {
174174 let p = valueOrErrorMessage(addressFromString(au), "invalid pool address")
175175 let an = split(valueOrErrorMessage(getString(J, x(au)), "Invalid pool passed."), a)
176176 let av = valueOrErrorMessage(getString(J, z(parseIntValue(an[1]))), "No asset mapping found")
177177 let aw = valueOrErrorMessage(getString(J, z(parseIntValue(an[2]))), "No asset mapping found")
178178 let ax = valueOrElse(getInteger(this, s(au, av)), 0)
179179 let ay = valueOrElse(getInteger(this, s(au, aw)), 0)
180180 let az = invoke(p, "evaluatePutByPriceAssetREADONLY", [ay], nil)
181181 let aA = invoke(p, "evaluatePutByAmountAssetREADONLY", [ax], nil)
182182 let aB = 7
183183 let aC = 8
184184 let aD = valueOrErrorMessage(parseIntValue(split(T(az), a)[aB]), "fail to parse estimated amAsset amount")
185185 let aE = valueOrErrorMessage(parseIntValue(split(T(aA), a)[aC]), "fail to parse estimated prAsset amount")
186186 let aF = if ((ax >= aD))
187187 then $Tuple2(aD, ay)
188188 else $Tuple2(ax, aE)
189189 let aG = aF._1
190190 let aH = aF._2
191191 let aI = if ((av == "WAVES"))
192192 then unit
193193 else fromBase58String(av)
194194 let aJ = if ((aw == "WAVES"))
195195 then unit
196196 else fromBase58String(aw)
197197 let aK = invoke(p, "putForFree", [1000], [AttachedPayment(aI, aG), AttachedPayment(aJ, aH)])
198198 if ((aK == aK))
199199 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))]
200200 else throw("Strict value is not equal to itself.")
201201 }
202202
203203
204204
205205 @Callable(af)
206206 func setManager (aL) = {
207207 let ai = ae(af)
208208 if ((ai == ai))
209209 then {
210210 let aM = fromBase58String(aL)
211211 if ((aM == aM))
212212 then [StringEntry(I(), aL)]
213213 else throw("Strict value is not equal to itself.")
214214 }
215215 else throw("Strict value is not equal to itself.")
216216 }
217217
218218
219219
220220 @Callable(af)
221221 func confirmManager () = {
222222 let aN = ad()
223223 let aO = if (isDefined(aN))
224224 then true
225225 else throw("No pending manager")
226226 if ((aO == aO))
227227 then {
228228 let aP = if ((af.callerPublicKey == value(aN)))
229229 then true
230230 else throw("You are not pending manager")
231231 if ((aP == aP))
232232 then [StringEntry(H(), toBase58String(value(aN))), DeleteEntry(I())]
233233 else throw("Strict value is not equal to itself.")
234234 }
235235 else throw("Strict value is not equal to itself.")
236236 }
237237
238238
239239 @Verifier(aQ)
240240 func aR () = {
241241 let aS = {
242242 let V = ab()
243243 if ($isInstanceOf(V, "ByteVector"))
244244 then {
245245 let ah = V
246246 ah
247247 }
248248 else if ($isInstanceOf(V, "Unit"))
249249 then aQ.senderPublicKey
250250 else throw("Match error")
251251 }
252252 sigVerify(aQ.bodyBytes, aQ.proofs[0], aS)
253253 }
254254

github/deemru/w8io/169f3d6 
46.90 ms