tx · 9XZnxdVYMmJAx5XHTLa9tAUHrNQmauDT4K4uGmZhNKzo

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.09.18 22:10 [2761239] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "9XZnxdVYMmJAx5XHTLa9tAUHrNQmauDT4K4uGmZhNKzo", "fee": 1000000, "feeAssetId": null, "timestamp": 1695064271166, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "41jJ2Q3kwSPYeSjVXxLoDYstdRQJuffCzBnoMWZkVgCxP1zsUE7WknB2VQtxJYmowVTMskqkA2gH4ukvJj3cHjMh" ], "script": "base64:BgILCAISABIAEgMKAQEHAAZ1c2RuSWQBIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AA53YXZlczJMVG9rZW5JZAEg5M0p6rvBF5U2UTZL5Gl9iE5RU627hhSF/AmO2XdvzrEADHB1enpsZUxlbmRTQwIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQAEGZha2VQdXp6bGVTd2FwU0MCIzNNczhmcWJYTTRSaG1NNkNQVHI0NGhVd0hlMkNDbVZDZlZBAA51c2RuQWRkcmVzc1N0cgIsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQAD3dhdmVzMkxUb2tlblN0cgIsR1E5UU5WTEdmWVNiTlo0ZFM4TlJ5dkdHRUxaTDRzV1BLaVZqODhDVjFySkwBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAADAWkBCW1pbnRMb25nMgADAwkBAiE9AgkAkAMBCAUB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zMkxUb2tlbklkBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQZyZWRlZW0BC3dhdmVzQW1vdW50BAt1c2VyQWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEEnJlZGVlbWVkVVNETkFtb3VudAkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBRBmYWtlUHV6emxlU3dhcFNDAgpzd2FwVG9VU0ROCQDMCAIFC3dhdmVzQW1vdW50CQDMCAIFC3VzZXJBZGRyZXNzBQNuaWwFA25pbAMJAAACBRJyZWRlZW1lZFVTRE5BbW91bnQFEnJlZGVlbWVkVVNETkFtb3VudAQHJG1hdGNoMAUScmVkZWVtZWRVU0ROQW1vdW50AwkAAQIFByRtYXRjaDACA0ludAQTcmVkZWVtZWRBbW91bnRWYWx1ZQUHJG1hdGNoMAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQt1c2VyQWRkcmVzcwIJX3JlZGVlbWVkBRNyZWRlZW1lZEFtb3VudFZhbHVlBQNuaWwJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlQthKW", "height": 2761239, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9r13MP4p7h4LYk5QQeuiHMJKmQ4TNUan2fkA8BJL98Q Next: Fuhqu4tfnX2mAgBY8AnwK7jfX2RrmnBN82hzetXaKqVb Diff:
OldNewDifferences
4242 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
4343 if ((p == p))
4444 then {
45- let q = [70000, 49000, 34300, 24010, 16807]
45+ let q = [70, 49, 34, 24, 17]
4646 func r (s,t) = {
47- let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100000)], nil)
47+ let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100)], nil)
4848 if ((u == u))
4949 then {
50- let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100000)], nil)
50+ let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100)], nil)
5151 if ((v == v))
5252 then {
5353 let w = v
5656 let x = w
5757 let y = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, x)])
5858 if ((y == y))
59- then (((o * s) / 100000) + ((o * t) / 100000))
59+ then (s + t)
6060 else throw("Strict value is not equal to itself.")
6161 }
6262 else throw("Incorrect invoke result")
8080
8181 G(D(D(D(D(D(C, 0), 1), 2), 3), 4), 5)
8282 }
83-[ScriptTransfer(k.caller, z, b)]
83+[ScriptTransfer(k.caller, ((o * z) / 100), b)]
8484 }
8585 else throw("Strict value is not equal to itself.")
8686 }
110110 if ((p == p))
111111 then {
112112 let q = [70, 49, 34, 24, 17]
113- func r (s,t) = {
114- let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100)], nil)
115- if ((u == u))
116- then {
117- let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100)], nil)
118- if ((v == v))
119- then (s + t)
120- else throw("Strict value is not equal to itself.")
121- }
122- else throw("Strict value is not equal to itself.")
123- }
113+ func r (s,t) = (s + t)
124114
125115 let z = {
126116 let A = q
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 {
45- let q = [70000, 49000, 34300, 24010, 16807]
45+ let q = [70, 49, 34, 24, 17]
4646 func r (s,t) = {
47- let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100000)], nil)
47+ let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100)], nil)
4848 if ((u == u))
4949 then {
50- let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100000)], nil)
50+ let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100)], nil)
5151 if ((v == v))
5252 then {
5353 let w = v
5454 if ($isInstanceOf(w, "Int"))
5555 then {
5656 let x = w
5757 let y = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, x)])
5858 if ((y == y))
59- then (((o * s) / 100000) + ((o * t) / 100000))
59+ then (s + t)
6060 else throw("Strict value is not equal to itself.")
6161 }
6262 else throw("Incorrect invoke result")
6363 }
6464 else throw("Strict value is not equal to itself.")
6565 }
6666 else throw("Strict value is not equal to itself.")
6767 }
6868
6969 let z = {
7070 let A = q
7171 let B = size(A)
7272 let C = 0
7373 func D (E,F) = if ((F >= B))
7474 then E
7575 else r(E, A[F])
7676
7777 func G (E,F) = if ((F >= B))
7878 then E
7979 else throw("List size exceeds 5")
8080
8181 G(D(D(D(D(D(C, 0), 1), 2), 3), 4), 5)
8282 }
83-[ScriptTransfer(k.caller, z, b)]
83+[ScriptTransfer(k.caller, ((o * z) / 100), b)]
8484 }
8585 else throw("Strict value is not equal to itself.")
8686 }
8787 else throw("Incorrect invoke result")
8888 }
8989 else throw("Strict value is not equal to itself.")
9090 }
9191
9292
9393
9494 @Callable(k)
9595 func mintLong2_test () = if (if ((size(k.payments) != 1))
9696 then true
9797 else (k.payments[0].amount == 0))
9898 then throw("1 payment has to be attached mint")
9999 else {
100100 let l = k.payments[0].amount
101101 let m = toString(k.caller)
102102 let n = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), l], nil)
103103 if ((n == n))
104104 then {
105105 let i = n
106106 if ($isInstanceOf(i, "Int"))
107107 then {
108108 let o = i
109109 let p = invoke(addressFromStringValue(c), "supply", nil, [AttachedPayment(unit, o)])
110110 if ((p == p))
111111 then {
112112 let q = [70, 49, 34, 24, 17]
113- func r (s,t) = {
114- let u = invoke(addressFromStringValue(c), "borrow", [e, ((l * s) / 100)], nil)
115- if ((u == u))
116- then {
117- let v = invoke(addressFromStringValue(d), "swapToWaves", [toString(k.caller), ((o * s) / 100)], nil)
118- if ((v == v))
119- then (s + t)
120- else throw("Strict value is not equal to itself.")
121- }
122- else throw("Strict value is not equal to itself.")
123- }
113+ func r (s,t) = (s + t)
124114
125115 let z = {
126116 let A = q
127117 let B = size(A)
128118 let C = 0
129119 func D (E,F) = if ((F >= B))
130120 then E
131121 else r(E, A[F])
132122
133123 func G (E,F) = if ((F >= B))
134124 then E
135125 else throw("List size exceeds 5")
136126
137127 G(D(D(D(D(D(C, 0), 1), 2), 3), 4), 5)
138128 }
139129 [IntegerEntry("res", z), IntegerEntry("firstAmountIn", l), IntegerEntry("firstSwappedAmountValue", o), ScriptTransfer(k.caller, ((o * z) / 100), b)]
140130 }
141131 else throw("Strict value is not equal to itself.")
142132 }
143133 else throw("Incorrect invoke result")
144134 }
145135 else throw("Strict value is not equal to itself.")
146136 }
147137
148138
149139
150140 @Callable(k)
151141 func redeem (H) = {
152142 let I = toString(k.caller)
153143 let J = invoke(addressFromStringValue(d), "swapToUSDN", [H, I], nil)
154144 if ((J == J))
155145 then {
156146 let i = J
157147 if ($isInstanceOf(i, "Int"))
158148 then {
159149 let K = i
160150 [IntegerEntry((I + "_redeemed"), K)]
161151 }
162152 else throw("Incorrect invoke result")
163153 }
164154 else throw("Strict value is not equal to itself.")
165155 }
166156
167157
168158 @Verifier(L)
169159 func M () = sigVerify(L.bodyBytes, L.proofs[0], L.senderPublicKey)
170160

github/deemru/w8io/169f3d6 
39.96 ms