tx · AxTD8udrmhv3kobQQfj1wkFbvfQnJg3aEXo6jWBe7ogw

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.09.19 18:04 [2762421] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "AxTD8udrmhv3kobQQfj1wkFbvfQnJg3aEXo6jWBe7ogw", "fee": 1000000, "feeAssetId": null, "timestamp": 1695135893042, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "tHs44pM5jMGFVQ1zdVBWZYqtZYjpUZSyMfeGAFr71J2gUtpXhiMx1ivv75U5UXnogN8YT8eZpGqFCET5RLsEpka" ], "script": "base64:BgINCAISABIAEgASAwoBAQcABnVzZG5JZAEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQADndhdmVzMkxUb2tlbklkASDkzSnqu8EXlTZRNkvkaX2ITlFTrbuGFIX8CY7Zd2/OsQAMcHV6emxlTGVuZFNDAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAAQZmFrZVB1enpsZVN3YXBTQwIjM01zOGZxYlhNNFJobU02Q1BUcjQ0aFV3SGUyQ0NtVkNmVkEADnVzZG5BZGRyZXNzU3RyAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAAPd2F2ZXMyTFRva2VuU3RyAixHUTlRTlZMR2ZZU2JOWjRkUzhOUnl2R0dFTFpMNHNXUEtpVmo4OENWMXJKTAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAQBaQEJbWludExvbmcyAAMDCQECIT0CCQCQ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kU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIXSW5jb3JyZWN0IGludm9rZSByZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEGcmVkZWVtAQt3YXZlc0Ftb3VudAQLdXNlckFkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBBJyZWRlZW1lZFVTRE5BbW91bnQJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQUQZmFrZVB1enpsZVN3YXBTQwIKc3dhcFRvVVNETgkAzAgCBQt3YXZlc0Ftb3VudAkAzAgCBQt1c2VyQWRkcmVzcwUDbmlsBQNuaWwDCQAAAgUScmVkZWVtZWRVU0ROQW1vdW50BRJyZWRlZW1lZFVTRE5BbW91bnQEByRtYXRjaDAFEnJlZGVlbWVkVVNETkFtb3VudAMJAAECBQckbWF0Y2gwAgNJbnQEE3JlZGVlbWVkQW1vdW50VmFsdWUFByRtYXRjaDAJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgULdXNlckFkZHJlc3MCCV9yZWRlZW1lZAUTcmVkZWVtZWRBbW91bnRWYWx1ZQUDbmlsCQACAQIXSW5jb3JyZWN0IGludm9rZSByZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5ofS3hQ==", "height": 2762421, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6WmY16KmZX5yHg2aiYizHuPD5pKwYAdrL941kkg2MiNt Next: none Diff:
OldNewDifferences
104104 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
105105 if ((p == p))
106106 then {
107- let q = [70, 49, 34]
107+ let q = [70, 49]
108108 func r (s,t) = {
109109 let G = invoke(addressFromStringValue(c), "borrow", [e, ((l * t) / 100)], nil)
110110 if ((G == G))
135135
136136 func F (D,E) = if ((E >= A))
137137 then D
138- else throw("List size exceeds 3")
138+ else throw("List size exceeds 2")
139139
140- F(C(C(C(B, 0), 1), 2), 3)
140+ F(C(C(B, 0), 1), 2)
141141 }
142142 [IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * y) / 100), b), IntegerEntry("res", y)]
143143 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
66 let b = base58'GQ9QNVLGfYSbNZ4dS8NRyvGGELZL4sWPKiVj88CV1rJL'
77
88 let c = "3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"
99
1010 let d = "3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"
1111
1212 let e = "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"
1313
1414 let f = "GQ9QNVLGfYSbNZ4dS8NRyvGGELZL4sWPKiVj88CV1rJL"
1515
1616 func g (h) = {
1717 let i = getInteger(this, h)
1818 if ($isInstanceOf(i, "Int"))
1919 then {
2020 let j = i
2121 j
2222 }
2323 else 0
2424 }
2525
2626
2727 @Callable(k)
2828 func mintLong2 () = if (if ((size(k.payments) != 1))
2929 then true
3030 else (k.payments[0].amount == 0))
3131 then throw("1 payment has to be attached mint")
3232 else {
3333 let l = k.payments[0].amount
3434 let m = toString(k.caller)
3535 let n = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), l], nil)
3636 if ((n == n))
3737 then {
3838 let i = n
3939 if ($isInstanceOf(i, "Int"))
4040 then {
4141 let o = i
4242 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
4343 if ((p == p))
4444 then {
4545 let q = [70, 49, 34, 24, 17]
4646 func r (s,t) = {
4747 let u = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100)], nil)
4848 if ((u == u))
4949 then {
5050 let v = u
5151 if ($isInstanceOf(v, "Int"))
5252 then {
5353 let w = v
5454 let x = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, w)])
5555 if ((x == x))
5656 then (s + t)
5757 else throw("Strict value is not equal to itself.")
5858 }
5959 else throw("Incorrect invoke result")
6060 }
6161 else throw("Strict value is not equal to itself.")
6262 }
6363
6464 let y = {
6565 let z = q
6666 let A = size(z)
6767 let B = 0
6868 func C (D,E) = if ((E >= A))
6969 then D
7070 else r(D, z[E])
7171
7272 func F (D,E) = if ((E >= A))
7373 then D
7474 else throw("List size exceeds 5")
7575
7676 F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
7777 }
7878 [ScriptTransfer(k.caller, ((o * y) / 100), b)]
7979 }
8080 else throw("Strict value is not equal to itself.")
8181 }
8282 else throw("Incorrect invoke result")
8383 }
8484 else throw("Strict value is not equal to itself.")
8585 }
8686
8787
8888
8989 @Callable(k)
9090 func mintLong2_3 () = if (if ((size(k.payments) != 1))
9191 then true
9292 else (k.payments[0].amount == 0))
9393 then throw("1 payment has to be attached mint")
9494 else {
9595 let l = k.payments[0].amount
9696 let m = toString(k.caller)
9797 let n = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), l], nil)
9898 if ((n == n))
9999 then {
100100 let i = n
101101 if ($isInstanceOf(i, "Int"))
102102 then {
103103 let o = i
104104 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
105105 if ((p == p))
106106 then {
107- let q = [70, 49, 34]
107+ let q = [70, 49]
108108 func r (s,t) = {
109109 let G = invoke(addressFromStringValue(c), "borrow", [e, ((l * t) / 100)], nil)
110110 if ((G == G))
111111 then {
112112 let u = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((l * t) / 100)], nil)
113113 if ((u == u))
114114 then {
115115 let v = u
116116 if ($isInstanceOf(v, "Int"))
117117 then {
118118 let w = v
119119 (s + t)
120120 }
121121 else throw("Incorrect invoke result")
122122 }
123123 else throw("Strict value is not equal to itself.")
124124 }
125125 else throw("Strict value is not equal to itself.")
126126 }
127127
128128 let y = {
129129 let z = q
130130 let A = size(z)
131131 let B = 0
132132 func C (D,E) = if ((E >= A))
133133 then D
134134 else r(D, z[E])
135135
136136 func F (D,E) = if ((E >= A))
137137 then D
138- else throw("List size exceeds 3")
138+ else throw("List size exceeds 2")
139139
140- F(C(C(C(B, 0), 1), 2), 3)
140+ F(C(C(B, 0), 1), 2)
141141 }
142142 [IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * y) / 100), b), IntegerEntry("res", y)]
143143 }
144144 else throw("Strict value is not equal to itself.")
145145 }
146146 else throw("Incorrect invoke result")
147147 }
148148 else throw("Strict value is not equal to itself.")
149149 }
150150
151151
152152
153153 @Callable(k)
154154 func mintLong2_test () = if (if ((size(k.payments) != 1))
155155 then true
156156 else (k.payments[0].amount == 0))
157157 then throw("1 payment has to be attached mint")
158158 else {
159159 let l = k.payments[0].amount
160160 let m = toString(k.caller)
161161 let n = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), l], nil)
162162 if ((n == n))
163163 then {
164164 let i = n
165165 if ($isInstanceOf(i, "Int"))
166166 then {
167167 let o = i
168168 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
169169 if ((p == p))
170170 then {
171171 let q = [70, 49, 34, 24, 17]
172172 func r (s,t) = (s + t)
173173
174174 let y = {
175175 let z = q
176176 let A = size(z)
177177 let B = 0
178178 func C (D,E) = if ((E >= A))
179179 then D
180180 else r(D, z[E])
181181
182182 func F (D,E) = if ((E >= A))
183183 then D
184184 else throw("List size exceeds 5")
185185
186186 F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
187187 }
188188 [IntegerEntry("res", y), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * y) / 100), b)]
189189 }
190190 else throw("Strict value is not equal to itself.")
191191 }
192192 else throw("Incorrect invoke result")
193193 }
194194 else throw("Strict value is not equal to itself.")
195195 }
196196
197197
198198
199199 @Callable(k)
200200 func redeem (H) = {
201201 let I = toString(k.caller)
202202 let J = invoke(addressFromStringValue(d), "swapToUSDN", [H, I], nil)
203203 if ((J == J))
204204 then {
205205 let i = J
206206 if ($isInstanceOf(i, "Int"))
207207 then {
208208 let K = i
209209 [IntegerEntry((I + "_redeemed"), K)]
210210 }
211211 else throw("Incorrect invoke result")
212212 }
213213 else throw("Strict value is not equal to itself.")
214214 }
215215
216216
217217 @Verifier(L)
218218 func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
219219

github/deemru/w8io/169f3d6 
59.13 ms