tx · A44whh6sSJckeuCdPtNijTdWGFnTeBY4tFbVM2BE15rZ

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.09.18 22:50 [2761275] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "A44whh6sSJckeuCdPtNijTdWGFnTeBY4tFbVM2BE15rZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1695066599469, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "gkFnLnRr28A6asRHaJtT4JzozuTXZ6RNyphnXeCAd6cFXNJhRq7NS6FrrubWJ8xX9qXHMpnPAViFPPDiT8B3n9P" ], "script": "base64:BgILCAISABIAEgMKAQEHAAZ1c2RuSWQBIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AA53YXZlczJMVG9rZW5JZAEg5M0p6rvBF5U2UTZL5Gl9iE5RU627hhSF/AmO2XdvzrEADHB1enpsZUxlbmRTQwIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQAEGZha2VQdXp6bGVTd2FwU0MCIzNNczhmcWJYTTRSaG1NNkNQVHI0NGhVd0hlMkNDbVZDZlZBAA51c2RuQWRkcmVzc1N0cgIsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQAD3dhdmVzMkxUb2tlblN0cgIsR1E5UU5WTEdmWVNiTlo0ZFM4TlJ5dkdHRUxaTDRzV1BLaVZqODhDVjFySkwBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAADAWkBCW1pbnRMb25nMgADAwkBAiE9AgkAkAMBCAUBaQhwYXltZ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CnN3YXBUb1VTRE4JAMwIAgULd2F2ZXNBbW91bnQJAMwIAgULdXNlckFkZHJlc3MFA25pbAUDbmlsAwkAAAIFEnJlZGVlbWVkVVNETkFtb3VudAUScmVkZWVtZWRVU0ROQW1vdW50BAckbWF0Y2gwBRJyZWRlZW1lZFVTRE5BbW91bnQDCQABAgUHJG1hdGNoMAIDSW50BBNyZWRlZW1lZEFtb3VudFZhbHVlBQckbWF0Y2gwCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFC3VzZXJBZGRyZXNzAglfcmVkZWVtZWQFE3JlZGVlbWVkQW1vdW50VmFsdWUFA25pbAkAAgECF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleWU7JhQ=", "height": 2761275, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6LQ842oK4K9JRvCq7uWYBbuwvpSkKsPJrGdgkjHRqdfX Next: 4AGwHrnaUpdKLzkJ6Hi3JkDTVe3v2VkZx2B82QHmGpW5 Diff:
OldNewDifferences
5151 if ($isInstanceOf(v, "Int"))
5252 then {
5353 let w = v
54- (s + t)
54+ let x = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, w)])
55+ if ((x == x))
56+ then (s + t)
57+ else throw("Strict value is not equal to itself.")
5558 }
5659 else throw("Incorrect invoke result")
5760 }
5861 else throw("Strict value is not equal to itself.")
5962 }
6063
61- let x = {
62- let y = q
63- let z = size(y)
64- let A = 0
65- func B (C,D) = if ((D >= z))
66- then C
67- else r(C, y[D])
64+ let y = {
65+ let z = q
66+ let A = size(z)
67+ let B = 0
68+ func C (D,E) = if ((E >= A))
69+ then D
70+ else r(D, z[E])
6871
69- func E (C,D) = if ((D >= z))
70- then C
72+ func F (D,E) = if ((E >= A))
73+ then D
7174 else throw("List size exceeds 5")
7275
73- E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5)
76+ F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
7477 }
75-[ScriptTransfer(k.caller, ((o * x) / 100), b)]
78+[ScriptTransfer(k.caller, ((o * y) / 100), b)]
7679 }
7780 else throw("Strict value is not equal to itself.")
7881 }
104107 let q = [70, 49, 34, 24, 17]
105108 func r (s,t) = (s + t)
106109
107- let x = {
108- let y = q
109- let z = size(y)
110- let A = 0
111- func B (C,D) = if ((D >= z))
112- then C
113- else r(C, y[D])
110+ let y = {
111+ let z = q
112+ let A = size(z)
113+ let B = 0
114+ func C (D,E) = if ((E >= A))
115+ then D
116+ else r(D, z[E])
114117
115- func E (C,D) = if ((D >= z))
116- then C
118+ func F (D,E) = if ((E >= A))
119+ then D
117120 else throw("List size exceeds 5")
118121
119- E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5)
122+ F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
120123 }
121-[IntegerEntry("res", x), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * x) / 100), b)]
124+[IntegerEntry("res", y), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * y) / 100), b)]
122125 }
123126 else throw("Strict value is not equal to itself.")
124127 }
130133
131134
132135 @Callable(k)
133-func redeem (F) = {
134- let G = toString(k.caller)
135- let H = invoke(addressFromStringValue(d), "swapToUSDN", [F, G], nil)
136- if ((H == H))
136+func redeem (G) = {
137+ let H = toString(k.caller)
138+ let I = invoke(addressFromStringValue(d), "swapToUSDN", [G, H], nil)
139+ if ((I == I))
137140 then {
138- let i = H
141+ let i = I
139142 if ($isInstanceOf(i, "Int"))
140143 then {
141- let I = i
142-[IntegerEntry((G + "_redeemed"), I)]
144+ let J = i
145+[IntegerEntry((H + "_redeemed"), J)]
143146 }
144147 else throw("Incorrect invoke result")
145148 }
147150 }
148151
149152
150-@Verifier(J)
151-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
153+@Verifier(K)
154+func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
152155
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
54- (s + t)
54+ let x = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, w)])
55+ if ((x == x))
56+ then (s + t)
57+ else throw("Strict value is not equal to itself.")
5558 }
5659 else throw("Incorrect invoke result")
5760 }
5861 else throw("Strict value is not equal to itself.")
5962 }
6063
61- let x = {
62- let y = q
63- let z = size(y)
64- let A = 0
65- func B (C,D) = if ((D >= z))
66- then C
67- else r(C, y[D])
64+ let y = {
65+ let z = q
66+ let A = size(z)
67+ let B = 0
68+ func C (D,E) = if ((E >= A))
69+ then D
70+ else r(D, z[E])
6871
69- func E (C,D) = if ((D >= z))
70- then C
72+ func F (D,E) = if ((E >= A))
73+ then D
7174 else throw("List size exceeds 5")
7275
73- E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5)
76+ F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
7477 }
75-[ScriptTransfer(k.caller, ((o * x) / 100), b)]
78+[ScriptTransfer(k.caller, ((o * y) / 100), b)]
7679 }
7780 else throw("Strict value is not equal to itself.")
7881 }
7982 else throw("Incorrect invoke result")
8083 }
8184 else throw("Strict value is not equal to itself.")
8285 }
8386
8487
8588
8689 @Callable(k)
8790 func mintLong2_test () = if (if ((size(k.payments) != 1))
8891 then true
8992 else (k.payments[0].amount == 0))
9093 then throw("1 payment has to be attached mint")
9194 else {
9295 let l = k.payments[0].amount
9396 let m = toString(k.caller)
9497 let n = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), l], nil)
9598 if ((n == n))
9699 then {
97100 let i = n
98101 if ($isInstanceOf(i, "Int"))
99102 then {
100103 let o = i
101104 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
102105 if ((p == p))
103106 then {
104107 let q = [70, 49, 34, 24, 17]
105108 func r (s,t) = (s + t)
106109
107- let x = {
108- let y = q
109- let z = size(y)
110- let A = 0
111- func B (C,D) = if ((D >= z))
112- then C
113- else r(C, y[D])
110+ let y = {
111+ let z = q
112+ let A = size(z)
113+ let B = 0
114+ func C (D,E) = if ((E >= A))
115+ then D
116+ else r(D, z[E])
114117
115- func E (C,D) = if ((D >= z))
116- then C
118+ func F (D,E) = if ((E >= A))
119+ then D
117120 else throw("List size exceeds 5")
118121
119- E(B(B(B(B(B(A, 0), 1), 2), 3), 4), 5)
122+ F(C(C(C(C(C(B, 0), 1), 2), 3), 4), 5)
120123 }
121-[IntegerEntry("res", x), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * x) / 100), b)]
124+[IntegerEntry("res", y), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * y) / 100), b)]
122125 }
123126 else throw("Strict value is not equal to itself.")
124127 }
125128 else throw("Incorrect invoke result")
126129 }
127130 else throw("Strict value is not equal to itself.")
128131 }
129132
130133
131134
132135 @Callable(k)
133-func redeem (F) = {
134- let G = toString(k.caller)
135- let H = invoke(addressFromStringValue(d), "swapToUSDN", [F, G], nil)
136- if ((H == H))
136+func redeem (G) = {
137+ let H = toString(k.caller)
138+ let I = invoke(addressFromStringValue(d), "swapToUSDN", [G, H], nil)
139+ if ((I == I))
137140 then {
138- let i = H
141+ let i = I
139142 if ($isInstanceOf(i, "Int"))
140143 then {
141- let I = i
142-[IntegerEntry((G + "_redeemed"), I)]
144+ let J = i
145+[IntegerEntry((H + "_redeemed"), J)]
143146 }
144147 else throw("Incorrect invoke result")
145148 }
146149 else throw("Strict value is not equal to itself.")
147150 }
148151
149152
150-@Verifier(J)
151-func K () = sigVerify(J.bodyBytes, J.proofs[0], J.senderPublicKey)
153+@Verifier(K)
154+func L () = sigVerify(K.bodyBytes, K.proofs[0], K.senderPublicKey)
152155

github/deemru/w8io/169f3d6 
54.79 ms