tx · HSjeiAp3BCHdYTNDypzBxkBmBgbPxoYGe53b9uZmR7e5

3MyXFjhxofZUKbHj3p8TUgZwDEPNzq7YNo3:  -0.01300000 Waves

2023.09.21 14:38 [2765087] smart account 3MyXFjhxofZUKbHj3p8TUgZwDEPNzq7YNo3 > SELF 0.00000000 Waves

{ "type": 13, "id": "HSjeiAp3BCHdYTNDypzBxkBmBgbPxoYGe53b9uZmR7e5", "fee": 1300000, "feeAssetId": null, "timestamp": 1695296370608, "version": 2, "chainId": 84, "sender": "3MyXFjhxofZUKbHj3p8TUgZwDEPNzq7YNo3", "senderPublicKey": "GMSDsb2uuChLYT3PeuzaUNyxyxCVWUKaV6Y5dP7xWxUV", "proofs": [ "WEgP5aCok7M5CAhtLoJLG6HLXGmruTAcJ2hFvTQRn4Qdw9USC9hssWszyR8sbRiRRxVCP9EbDZzkaM7NiS2DU2y" ], "script": "base64:BgIMCAISAwoBBBIDCgEIKgAMY29udHJhY3RGaWxlAg5sMm1wX3N3YXAucmlkZQADU0VQAgJfXwAGc2NhbGU4AIDC1y8AB3NjYWxlMTgAgICQu7rWrfANABJBRERSRVNTX0JZVEVTX1NJWkUAGgANQkxPQ0tTX0lOX0RBWQCgCwEHd3JhcEVycgEDbXNnCQCsAgIJAKwCAgUMY29udHJhY3RGaWxlAgI6IAUDbXNnAQh0aHJvd0VycgEDbXNnCQACAQkBB3dyYXBFcnIBBQNtc2cADGtleUFzc2V0SW5JZAkAuQkCCQDMCAICAiVzCQDMCAICCWFzc2V0SW5JZAUDbmlsBQNTRVAADWtleUFzc2V0T3V0SWQJALkJAgkAzAgCAgIlcwkAzAgCAgphc3NldE91dElkBQNuaWwFA1NFUAAQa2V5QXNzZXRPdXRQcmljZQkAuQkCCQDMCAICAiVzCQDMCAICDWFzc2V0T3V0UHJpY2UFA25pbAUDU0VQABFrZXlTdGFraW5nQWRkcmVzcwkAuQkCCQDMCAICAiVzCQDMCAICDnN0YWtpbmdBZGRyZXNzBQNuaWwFA1NFUAAP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EFdmFsdWUBBRFhbGxvd2VkVHhJZE9wdGlvbgUEdHhJZAYJAQh0aHJvd0VycgEJAKwCAgUEdHhJZAITIGlzIGFscmVhZHkgYWxsb3dlZAUDbmlsAwkAAAIFA2VycgUDZXJyCQEMdm90ZUlOVEVSTkFMBAUTY2FsbGVyQWRkcmVzc1N0cmluZwUJa2V5UHJlZml4BQZRVU9SVU0FBnJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwUIYnlBZG1pbnMGBQdieU93bmVy+fn+og==", "height": 2765087, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 79AkM7aG2TTzEYn4BgsCpnofnNo7MA9A7tpUC3Tz6JRF Next: 33k3QHroWr5Q5qiiPzNM9E7bbKB2hmX62QS54axojaR4 Diff:
OldNewDifferences
219219 then invoke(G, "stakeFor", [toString(ay)], [AttachedPayment(A, aC)])
220220 else unit
221221 if ((aD == aD))
222- then $Tuple2(([Burn(y, aB), IntegerEntry(n, (valueOrElse(getInteger(this, n), 0) + aB)), IntegerEntry(o, (valueOrElse(getInteger(this, o), 0) + aC)), IntegerEntry(p(ay), (valueOrElse(getInteger(this, p(ay)), 0) + aB)), IntegerEntry(r(ay), (valueOrElse(getInteger(this, r(ay)), 0) + aC)), StringEntry(s(ay, ax.transactionId), u(aB, aC, x))] ++ (if (x)
222+ then $Tuple2(([IntegerEntry(n, (valueOrElse(getInteger(this, n), 0) + aB)), IntegerEntry(o, (valueOrElse(getInteger(this, o), 0) + aC)), IntegerEntry(p(ay), (valueOrElse(getInteger(this, p(ay)), 0) + aB)), IntegerEntry(r(ay), (valueOrElse(getInteger(this, r(ay)), 0) + aC)), StringEntry(s(ay, ax.transactionId), u(aB, aC, x))] ++ (if (x)
223223 then nil
224224 else [ScriptTransfer(ay, aC, A)])), aC)
225225 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "l2mp_swap.ride"
55
66 let b = "__"
77
88 let c = 100000000
99
1010 let d = 1000000000000000000
1111
1212 let e = 26
1313
1414 let f = 1440
1515
1616 func g (h) = ((a + ": ") + h)
1717
1818
1919 func i (h) = throw(g(h))
2020
2121
2222 let j = makeString(["%s", "assetInId"], b)
2323
2424 let k = makeString(["%s", "assetOutId"], b)
2525
2626 let l = makeString(["%s", "assetOutPrice"], b)
2727
2828 let m = makeString(["%s", "stakingAddress"], b)
2929
3030 let n = makeString(["%s%s", "stats", "totalIn"], b)
3131
3232 let o = makeString(["%s%s", "stats", "totalOut"], b)
3333
3434 func p (q) = makeString(["%s%s%s", "stats", "totalIn", toString(q)], b)
3535
3636
3737 func r (q) = makeString(["%s%s%s", "stats", "totalOut", toString(q)], b)
3838
3939
4040 func s (q,t) = makeString(["%s%s%s", "history", toString(q), toBase58String(t)], b)
4141
4242
4343 func u (v,w,x) = makeString(["%d%d%d", toString(v), toString(w), toString(x)], b)
4444
4545
4646 let y = fromBase58String(valueOrErrorMessage(getString(this, j), g("invalid assetInId")))
4747
4848 let z = valueOrErrorMessage(assetInfo(y), g("invalid assetInInfo"))
4949
5050 let A = fromBase58String(valueOrErrorMessage(getString(this, k), g("invalid assetInId")))
5151
5252 let B = valueOrErrorMessage(assetInfo(A), g("invalid assetOutInfo"))
5353
5454 let C = valueOrErrorMessage(getInteger(this, l), g("invalid assetOutPrice"))
5555
5656 let D = {
5757 let E = getString(this, m)
5858 if ($isInstanceOf(E, "String"))
5959 then {
6060 let F = E
6161 addressFromString(F)
6262 }
6363 else if ($isInstanceOf(E, "Unit"))
6464 then unit
6565 else throw("Match error")
6666 }
6767
6868 let G = valueOrErrorMessage(D, g("invalid stakingAddress"))
6969
7070 let H = 5
7171
7272 let I = 3
7373
7474 let J = 32
7575
7676 func K (t) = makeString(["%s%s%s", "allowTxId", t], b)
7777
7878
7979 func L (M,N) = makeString([M, N], b)
8080
8181
8282 func O () = makeString(["%s", "adminAddressList"], b)
8383
8484
8585 func P () = makeString(["%s", "txId"], b)
8686
8787
8888 func Q (M,R) = {
8989 let S = L(M, R)
9090 valueOrElse(getInteger(S), 0)
9191 }
9292
9393
9494 func T () = {
9595 let E = getString(this, O())
9696 if ($isInstanceOf(E, "String"))
9797 then {
9898 let F = E
9999 split(F, b)
100100 }
101101 else nil
102102 }
103103
104104
105105 func U (q) = containsElement(T(), q)
106106
107107
108108 func V (W,N) = {
109109 let X = W
110110 let Y = X._1
111111 let M = X._2
112112 $Tuple2((Y :+ L(M, N)), M)
113113 }
114114
115115
116116 func Z (aa) = {
117117 let ab = O()
118118 let ac = {
119119 let ad = T()
120120 let ae = size(ad)
121121 let af = $Tuple2(nil, aa)
122122 func ag (ah,ai) = if ((ai >= ae))
123123 then ah
124124 else V(ah, ad[ai])
125125
126126 func aj (ah,ai) = if ((ai >= ae))
127127 then ah
128128 else throw("List size exceeds 5")
129129
130130 aj(ag(ag(ag(ag(ag(af, 0), 1), 2), 3), 4), 5)
131131 }
132132 let Y = ac._1
133133 let M = ac._2
134134 Y
135135 }
136136
137137
138138 func ak (Y,S) = (Y + valueOrElse(getInteger(S), 0))
139139
140140
141141 func al (M) = {
142142 let am = Z(M)
143143 let ad = am
144144 let ae = size(ad)
145145 let af = 0
146146 func ag (ah,ai) = if ((ai >= ae))
147147 then ah
148148 else ak(ah, ad[ai])
149149
150150 func aj (ah,ai) = if ((ai >= ae))
151151 then ah
152152 else throw("List size exceeds 5")
153153
154154 aj(ag(ag(ag(ag(ag(af, 0), 1), 2), 3), 4), 5)
155155 }
156156
157157
158158 func an (Y,ao) = (Y :+ DeleteEntry(ao))
159159
160160
161161 func ap (M) = {
162162 let am = Z(M)
163163 let ad = am
164164 let ae = size(ad)
165165 let af = nil
166166 func ag (ah,ai) = if ((ai >= ae))
167167 then ah
168168 else an(ah, ad[ai])
169169
170170 func aj (ah,ai) = if ((ai >= ae))
171171 then ah
172172 else throw("List size exceeds 5")
173173
174174 aj(ag(ag(ag(ag(ag(af, 0), 1), 2), 3), 4), 5)
175175 }
176176
177177
178178 func aq (ar,aa,as,at) = {
179179 let S = L(aa, ar)
180180 let au = Q(aa, ar)
181181 let av = if (!(U(ar)))
182182 then i((("Address: " + ar) + " not in Admin list"))
183183 else if ((au == 1))
184184 then i((S + " you already voted"))
185185 else unit
186186 if ((av == av))
187187 then {
188188 let am = al(aa)
189189 if (((am + 1) >= as))
190190 then {
191191 let aw = ap(aa)
192192 (aw ++ at)
193193 }
194194 else [IntegerEntry(S, 1)]
195195 }
196196 else throw("Strict value is not equal to itself.")
197197 }
198198
199199
200200 @Callable(ax)
201201 func swap (x) = {
202202 let ay = ax.caller
203203 let az = 1
204204 if ((size(ax.payments) != az))
205205 then i("invalid payments")
206206 else {
207207 let aA = ax.payments[0]
208208 if ((aA.assetId != y))
209209 then i("invalid payment assetId")
210210 else if ((C == 0))
211211 then i("invalid assetOutPrice")
212212 else {
213213 let aB = aA.amount
214214 let aC = fraction(aB, c, C)
215215 if ((aC == 0))
216216 then i("invalid assetOutAmount")
217217 else {
218218 let aD = if (x)
219219 then invoke(G, "stakeFor", [toString(ay)], [AttachedPayment(A, aC)])
220220 else unit
221221 if ((aD == aD))
222- then $Tuple2(([Burn(y, aB), IntegerEntry(n, (valueOrElse(getInteger(this, n), 0) + aB)), IntegerEntry(o, (valueOrElse(getInteger(this, o), 0) + aC)), IntegerEntry(p(ay), (valueOrElse(getInteger(this, p(ay)), 0) + aB)), IntegerEntry(r(ay), (valueOrElse(getInteger(this, r(ay)), 0) + aC)), StringEntry(s(ay, ax.transactionId), u(aB, aC, x))] ++ (if (x)
222+ then $Tuple2(([IntegerEntry(n, (valueOrElse(getInteger(this, n), 0) + aB)), IntegerEntry(o, (valueOrElse(getInteger(this, o), 0) + aC)), IntegerEntry(p(ay), (valueOrElse(getInteger(this, p(ay)), 0) + aB)), IntegerEntry(r(ay), (valueOrElse(getInteger(this, r(ay)), 0) + aC)), StringEntry(s(ay, ax.transactionId), u(aB, aC, x))] ++ (if (x)
223223 then nil
224224 else [ScriptTransfer(ay, aC, A)])), aC)
225225 else throw("Strict value is not equal to itself.")
226226 }
227227 }
228228 }
229229 }
230230
231231
232232
233233 @Callable(ax)
234234 func voteForTxId (t) = {
235235 let ar = toBase58String(ax.caller.bytes)
236236 let aa = K(t)
237237 let Y = [StringEntry(P(), t)]
238238 let aE = getString(this, P())
239239 let av = [if ((size(fromBase58String(t)) == J))
240240 then true
241241 else i((t + " is not valid txId")), if (if ((aE == unit))
242242 then true
243243 else (value(aE) != t))
244244 then true
245245 else i((t + " is already allowed"))]
246246 if ((av == av))
247247 then aq(ar, aa, I, Y)
248248 else throw("Strict value is not equal to itself.")
249249 }
250250
251251
252252 @Verifier(aF)
253253 func aG () = {
254254 let aH = (aF.id == fromBase58String(valueOrElse(getString(this, P()), "")))
255255 let aI = if ((size(T()) >= I))
256256 then false
257257 else sigVerify(aF.bodyBytes, aF.proofs[0], aF.senderPublicKey)
258258 if (aH)
259259 then true
260260 else aI
261261 }
262262

github/deemru/w8io/169f3d6 
59.69 ms