tx · VwToUbpMaF3Ja1Vg88oE5hU8wf8vkT93ZSqYonPGzWK

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.06.27 13:46 [2640968] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "VwToUbpMaF3Ja1Vg88oE5hU8wf8vkT93ZSqYonPGzWK", "fee": 1000000, "feeAssetId": null, "timestamp": 1687862788545, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "2VJAY1PHbjQ1svn8oy2D6xzyav66MVsRYHMfAbbaj47omcZJ7cfWQqQFWzrNwq2b8zpZK9mkiVGupHSjuVscHaNn" ], "script": "base64:BgI4CAISBAoCAQgSABIFCgMIAQgSAwoBARIDCgEBEgMKAQESAwoBARIECgIIARIAEgQKAggBEgMKAQgGAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAkAzAgCAMCEPQUDbmlsBQNuaWwBD2dldEN1cnJlbnRQcmljZQEKYXNzZXRJZFN0cgMJAAACBQphc3NldElkU3RyAgVXQVZFUwACCQACAQIFRXJyb3IBCmdldEJhbGFuY2UCCmFzc2V0SWRTdHIHYWRkcmVzcwMJAAACBQphc3NldElkU3RyAgVXQVZFUwgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUJAPAHAgUHYWRkcmVzcwkA2QQBBQphc3NldElkU3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3MJANkEAQUKYXNzZXRJZFN0cgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleY2QSzk=", "height": 2640968, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 65i9ZrN5bhnN63h5N8mpSpGWNrhZeATdyxNkH1cRXBts Next: FyGRmirLtAHHbCKgmYnj2imEf4kLYUYJ1RwHZ2uw46v7 Diff:
OldNewDifferences
4242
4343
4444 @Callable(l)
45+func transferWavesTest2 (g,k,i) = [IntegerEntry(((i + "_deposited_") + g), k)]
46+
47+
48+
49+@Callable(l)
50+func long1x (k) = {
51+ let n = invoke(this, "transferWavesTest2", ["WAVES", k, toString(l.caller)], [AttachedPayment(unit, k)])
52+ if ((n == n))
53+ then nil
54+ else throw("Strict value is not equal to itself.")
55+ }
56+
57+
58+
59+@Callable(l)
4560 func long2x (k) = {
4661 let i = toString(l.caller)
47- let n = h("WAVES", l.caller)
48- if ((n > k))
62+ let o = h("WAVES", l.caller)
63+ if ((o > k))
4964 then {
50- func o (p,q) = {
51- let r = invoke(this, "transferWaves", [k, l.caller], nil)
52- if ((r == r))
65+ func p (q,r) = {
66+ let s = invoke(this, "transferWaves", [k, l.caller], nil)
67+ if ((s == s))
5368 then {
54- let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
55- if ((s == s))
69+ let t = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
70+ if ((t == t))
5671 then {
57- let t = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((k * f("WAVES")) / 100)], nil)
58- if ((t == t))
59- then (p + q)
72+ let u = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((k * f("WAVES")) / 100)], nil)
73+ if ((u == u))
74+ then (q + r)
6075 else throw("Strict value is not equal to itself.")
6176 }
6277 else throw("Strict value is not equal to itself.")
6479 else throw("Strict value is not equal to itself.")
6580 }
6681
67- let u = [k, k]
68- let v = {
69- let w = u
82+ let v = [k, k]
83+ let n = {
84+ let w = v
7085 let x = size(w)
7186 let y = 0
7287 func z (A,B) = if ((B >= x))
7388 then A
74- else o(A, w[B])
89+ else p(A, w[B])
7590
7691 func C (A,B) = if ((B >= x))
7792 then A
7994
8095 C(z(z(y, 0), 1), 2)
8196 }
82-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(l.caller, ((v * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, v, unit)]
97+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(l.caller, ((n * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, n, unit)]
8398 }
8499 else throw("Error!")
85100 }
89104 @Callable(l)
90105 func borrow (k) = {
91106 let i = toString(l.caller)
92- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
93- if ((v == v))
107+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
108+ if ((n == n))
94109 then [ScriptTransfer(l.caller, k, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k)]
95110 else throw("Strict value is not equal to itself.")
96111 }
100115 @Callable(l)
101116 func borrow2 (k) = {
102117 let i = toString(l.caller)
103- func o (p,q) = {
118+ func p (q,r) = {
104119 let D = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
105120 if ((D == D))
106- then (p + q)
121+ then (q + r)
107122 else throw("Strict value is not equal to itself.")
108123 }
109124
110- let u = [k, k]
111- let v = {
112- let w = u
125+ let v = [k, k]
126+ let n = {
127+ let w = v
113128 let x = size(w)
114129 let y = 0
115130 func z (A,B) = if ((B >= x))
116131 then A
117- else o(A, w[B])
132+ else p(A, w[B])
118133
119134 func C (A,B) = if ((B >= x))
120135 then A
122137
123138 C(z(z(y, 0), 1), 2)
124139 }
125-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(l.caller, v, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
140+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(l.caller, n, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
126141 }
127142
128143
130145 @Callable(l)
131146 func borrow5 (g,k) = {
132147 let i = toString(l.caller)
133- let v = {
148+ let n = {
134149 let w = a
135150 let x = size(w)
136151 let y = 0
144159
145160 C(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5)
146161 }
147- if ((v == v))
162+ if ((n == n))
148163 then [IntegerEntry(((i + "_borrowed_") + g), k)]
149164 else throw("Strict value is not equal to itself.")
150165 }
154169 @Callable(l)
155170 func deposit () = {
156171 let i = toString(l.caller)
157- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
158- if ((v == v))
172+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
173+ if ((n == n))
159174 then [IntegerEntry((i + "supply_waves"), 1000000)]
160175 else throw("Strict value is not equal to itself.")
161176 }
165180 @Callable(l)
166181 func withdraw (g,k) = {
167182 let i = toString(l.caller)
168- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
169- if ((v == v))
183+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
184+ if ((n == n))
170185 then [IntegerEntry(((i + "_withdrew_") + g), k)]
171186 else throw("Strict value is not equal to itself.")
172187 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = [1, 2, 3, 4, 5]
55
66 let b = [1, 2]
77
88 func c (d,e) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil)
99
1010
1111 func f (g) = if ((g == "WAVES"))
1212 then 2
1313 else throw("Error")
1414
1515
1616 func h (g,i) = if ((g == "WAVES"))
1717 then wavesBalance(i).available
1818 else assetBalance(i, fromBase58String(g))
1919
2020
2121 func j (g,k,i) = [IntegerEntry(((i + "_deposited_") + g), k)]
2222
2323
2424 @Callable(l)
2525 func transferWaves (k,m) = if ((l.caller != this))
2626 then throw("only for internal smart contract invocations")
2727 else [ScriptTransfer(this, k, unit), IntegerEntry((m + "_deposited_WAVES"), k)]
2828
2929
3030
3131 @Callable(l)
3232 func transferWavesTest () = if (if ((size(l.payments) != 1))
3333 then true
3434 else (l.payments[0].amount == 0))
3535 then throw("1 payment has to be attached")
3636 else {
3737 let g = "WAVES"
3838 let k = l.payments[0].amount
3939 j(g, k, toString(l.caller))
4040 }
4141
4242
4343
4444 @Callable(l)
45+func transferWavesTest2 (g,k,i) = [IntegerEntry(((i + "_deposited_") + g), k)]
46+
47+
48+
49+@Callable(l)
50+func long1x (k) = {
51+ let n = invoke(this, "transferWavesTest2", ["WAVES", k, toString(l.caller)], [AttachedPayment(unit, k)])
52+ if ((n == n))
53+ then nil
54+ else throw("Strict value is not equal to itself.")
55+ }
56+
57+
58+
59+@Callable(l)
4560 func long2x (k) = {
4661 let i = toString(l.caller)
47- let n = h("WAVES", l.caller)
48- if ((n > k))
62+ let o = h("WAVES", l.caller)
63+ if ((o > k))
4964 then {
50- func o (p,q) = {
51- let r = invoke(this, "transferWaves", [k, l.caller], nil)
52- if ((r == r))
65+ func p (q,r) = {
66+ let s = invoke(this, "transferWaves", [k, l.caller], nil)
67+ if ((s == s))
5368 then {
54- let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
55- if ((s == s))
69+ let t = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
70+ if ((t == t))
5671 then {
57- let t = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((k * f("WAVES")) / 100)], nil)
58- if ((t == t))
59- then (p + q)
72+ let u = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((k * f("WAVES")) / 100)], nil)
73+ if ((u == u))
74+ then (q + r)
6075 else throw("Strict value is not equal to itself.")
6176 }
6277 else throw("Strict value is not equal to itself.")
6378 }
6479 else throw("Strict value is not equal to itself.")
6580 }
6681
67- let u = [k, k]
68- let v = {
69- let w = u
82+ let v = [k, k]
83+ let n = {
84+ let w = v
7085 let x = size(w)
7186 let y = 0
7287 func z (A,B) = if ((B >= x))
7388 then A
74- else o(A, w[B])
89+ else p(A, w[B])
7590
7691 func C (A,B) = if ((B >= x))
7792 then A
7893 else throw("List size exceeds 2")
7994
8095 C(z(z(y, 0), 1), 2)
8196 }
82-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(l.caller, ((v * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, v, unit)]
97+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(l.caller, ((n * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, n, unit)]
8398 }
8499 else throw("Error!")
85100 }
86101
87102
88103
89104 @Callable(l)
90105 func borrow (k) = {
91106 let i = toString(l.caller)
92- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
93- if ((v == v))
107+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
108+ if ((n == n))
94109 then [ScriptTransfer(l.caller, k, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k)]
95110 else throw("Strict value is not equal to itself.")
96111 }
97112
98113
99114
100115 @Callable(l)
101116 func borrow2 (k) = {
102117 let i = toString(l.caller)
103- func o (p,q) = {
118+ func p (q,r) = {
104119 let D = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
105120 if ((D == D))
106- then (p + q)
121+ then (q + r)
107122 else throw("Strict value is not equal to itself.")
108123 }
109124
110- let u = [k, k]
111- let v = {
112- let w = u
125+ let v = [k, k]
126+ let n = {
127+ let w = v
113128 let x = size(w)
114129 let y = 0
115130 func z (A,B) = if ((B >= x))
116131 then A
117- else o(A, w[B])
132+ else p(A, w[B])
118133
119134 func C (A,B) = if ((B >= x))
120135 then A
121136 else throw("List size exceeds 2")
122137
123138 C(z(z(y, 0), 1), 2)
124139 }
125-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(l.caller, v, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
140+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(l.caller, n, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
126141 }
127142
128143
129144
130145 @Callable(l)
131146 func borrow5 (g,k) = {
132147 let i = toString(l.caller)
133- let v = {
148+ let n = {
134149 let w = a
135150 let x = size(w)
136151 let y = 0
137152 func z (A,B) = if ((B >= x))
138153 then A
139154 else c(A, w[B])
140155
141156 func C (A,B) = if ((B >= x))
142157 then A
143158 else throw("List size exceeds 5")
144159
145160 C(z(z(z(z(z(y, 0), 1), 2), 3), 4), 5)
146161 }
147- if ((v == v))
162+ if ((n == n))
148163 then [IntegerEntry(((i + "_borrowed_") + g), k)]
149164 else throw("Strict value is not equal to itself.")
150165 }
151166
152167
153168
154169 @Callable(l)
155170 func deposit () = {
156171 let i = toString(l.caller)
157- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
158- if ((v == v))
172+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
173+ if ((n == n))
159174 then [IntegerEntry((i + "supply_waves"), 1000000)]
160175 else throw("Strict value is not equal to itself.")
161176 }
162177
163178
164179
165180 @Callable(l)
166181 func withdraw (g,k) = {
167182 let i = toString(l.caller)
168- let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
169- if ((v == v))
183+ let n = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
184+ if ((n == n))
170185 then [IntegerEntry(((i + "_withdrew_") + g), k)]
171186 else throw("Strict value is not equal to itself.")
172187 }
173188
174189
175190
176191 @Callable(l)
177192 func checkBalance (g) = {
178193 let i = l.caller
179194 if ((g == "WAVES"))
180195 then [IntegerEntry("Waves Balance", wavesBalance(i).available)]
181196 else [IntegerEntry("Asset Balance", assetBalance(i, fromBase58String(g)))]
182197 }
183198
184199
185200 @Verifier(E)
186201 func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey)
187202

github/deemru/w8io/169f3d6 
58.27 ms