tx · 7TiS2YNcrFD46uNRk1wMUazwgz6i9MFC5TgDbRGsotT7

3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS:  -0.01300000 Waves

2023.05.10 13:15 [2571655] smart account 3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS > SELF 0.00000000 Waves

{ "type": 13, "id": "7TiS2YNcrFD46uNRk1wMUazwgz6i9MFC5TgDbRGsotT7", "fee": 1300000, "feeAssetId": null, "timestamp": 1683713758920, "version": 2, "chainId": 84, "sender": "3Mtb4XjrpoT181pEmn2kF73PTm4vjMoRoVS", "senderPublicKey": "Edx9ZQDtX2gxHL28zDigjvqpeQqJ9X6Mh7ZxyVRDkjHr", "proofs": [ "3vi7y5xNPXCTbPdpxrUm9xyyXqLQ2tGCw1RZGYQayedtBPj7Xx6F2aaXcZmtinTN3RBRYdQvomjL9sbU9VGk6ydf" ], "script": "base64:AAIFAAAAAAAABocIAhIFCgMBAQgSAwoBARIAEgMKAQEiA1NFUCILa2V5UmVmZXJyYWwiDGtleVd4QXNzZXRJZCITa2V5TWFuYWdlclB1YmxpY0tleSIWa2V5TWFuYWdlclZhdWx0QWRkcmVzcyIVSWR4Q2ZnQ2xhaW1TdGFydEJsb2NrIhhJZHhDZmdDbGFpbVZlc3RpbmdQZXJpb2QiEklkeENmZ0NsYWltQXNzZXRJZCIUSWR4Q2ZnQ2xhaW1Bc3NldE11bHQiFUlkeENmZ0NsYWltQXNzZXRPd25lciIbSWR4Q2ZnQ2xhaW1Bc3NldFRvdGFsQW1vdW50IhtJZHhUb3RhbHNUb3RhbENsYWltZWRBbW91bnQiGElkeFRvdGFsc1JlbWFpbmluZ0Ftb3VudCIaSWR4VG90YWxzTGFzdENsYWltZWRIZWlnaHQiCHRocm93RXJyIgNtc2ciD2dldFN0cmluZ09yRmFpbCIDa2V5IhJmb3JtYXRDb25maWdTdHJpbmciD2NsYWltU3RhcnRCbG9jayINdmVzdGluZ1BlcmlvZCINYXNzZXRJZEJhc2U1OCIJYX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wAAAANdHJhbnNhY3Rpb25JZAUAAAADbmlsBQAAAAR1bml0CQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACYVMBAAAAAmFUAAAAAAQAAAACYVUEAAAAAVYJAQAAAAJhaQAAAAADCQAAAQAAAAIFAAAAAVYCAAAACkJ5dGVWZWN0b3IEAAAAAmFuBQAAAAFWBQAAAAJhbgMJAAABAAAAAgUAAAABVgIAAAAEVW5pdAgFAAAAAmFTAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYVMAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJhUwAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmFVtU9pKA==", "height": 2571655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CcTwqBsw6WEHhh8CgkaxxDkETPAH6NWroZNnNMP9uvPn Next: none Diff:
OldNewDifferences
6666 func T () = split(q(M()), a)
6767
6868
69-func U () = addressFromStringValue(getStringValue(e()))
70-
71-
72-func V (r,W,X,Y) = {
73- let D = parseIntValue(W[l])
74- let Z = parseIntValue(W[m])
75- let F = parseIntValue(W[n])
76- let aa = (D + X)
77- let ab = (Z - X)
78- if ((0 > ab))
79- then throw("invalid math")
80- else StringEntry(r, C(toString(aa), toString(ab), toString(Y)))
69+func U () = {
70+ let V = getString(e())
71+ if ($isInstanceOf(V, "String"))
72+ then {
73+ let W = V
74+ addressFromStringValue(W)
75+ }
76+ else this
8177 }
8278
8379
84-func ac (Q,H,I,ad,ae,af) = StringEntry(O("claim", Q, toBase58String(af)), G(H, I, ad, ae))
80+func X (r,Y,Z,aa) = {
81+ let D = parseIntValue(Y[l])
82+ let ab = parseIntValue(Y[m])
83+ let F = parseIntValue(Y[n])
84+ let ac = (D + Z)
85+ let ad = (ab - Z)
86+ if ((0 > ad))
87+ then throw("invalid math")
88+ else StringEntry(r, C(toString(ac), toString(ad), toString(aa)))
89+ }
8590
8691
87-func ag () = {
88- let ah = U()
89- let ai = getString(ah, d())
90- if ($isInstanceOf(ai, "String"))
92+func ae (Q,H,I,af,ag,ah) = StringEntry(O("claim", Q, toBase58String(ah)), G(H, I, af, ag))
93+
94+
95+func ai () = {
96+ let aj = U()
97+ let V = getString(aj, d())
98+ if ($isInstanceOf(V, "String"))
9199 then {
92- let aj = ai
93- fromBase58String(aj)
100+ let W = V
101+ fromBase58String(W)
94102 }
95- else if ($isInstanceOf(ai, "Unit"))
103+ else if ($isInstanceOf(V, "Unit"))
96104 then unit
97105 else throw("Match error")
98106 }
100108
101109 func ak (al) = {
102110 let am = o("permission denied")
103- let ai = ag()
104- if ($isInstanceOf(ai, "ByteVector"))
111+ let V = ai()
112+ if ($isInstanceOf(V, "ByteVector"))
105113 then {
106- let an = ai
114+ let an = V
107115 if ((al.callerPublicKey == an))
108116 then true
109117 else am
110118 }
111- else if ($isInstanceOf(ai, "Unit"))
119+ else if ($isInstanceOf(V, "Unit"))
112120 then if ((al.caller == this))
113121 then true
114122 else am
149157 then aB
150158 else ap
151159 let aD = (aB - aC)
152- $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), V(M(), T(), aC, K), ac(toString(av), aC, I, J, K, al.transactionId)], aC)
160+ $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), X(M(), T(), aC, K), ae(toString(av), aC, I, J, K, al.transactionId)], aC)
153161 }
154162 }
155163
196204 if ((aQ == aQ))
197205 then {
198206 let aR = fromBase58String(value(getString(c)))
199- $Tuple2([ScriptTransfer(al.caller, aO, aR), ac(aP, aO, 0, 0, 0, al.transactionId)], unit)
207+ $Tuple2([ScriptTransfer(al.caller, aO, aR), ae(aP, aO, 0, 0, 0, al.transactionId)], unit)
200208 }
201209 else throw("Strict value is not equal to itself.")
202210 }
205213 @Verifier(aS)
206214 func aT () = {
207215 let aU = {
208- let ai = ag()
209- if ($isInstanceOf(ai, "ByteVector"))
216+ let V = ai()
217+ if ($isInstanceOf(V, "ByteVector"))
210218 then {
211- let an = ai
219+ let an = V
212220 an
213221 }
214- else if ($isInstanceOf(ai, "Unit"))
222+ else if ($isInstanceOf(V, "Unit"))
215223 then aS.senderPublicKey
216224 else throw("Match error")
217225 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = makeString(["%s", "referral"], a)
77
88 let c = makeString(["%s", "wxAssetId"], a)
99
1010 func d () = "%s__managerPublicKey"
1111
1212
1313 func e () = "%s__managerVaultAddress"
1414
1515
1616 let f = 1
1717
1818 let g = 2
1919
2020 let h = 3
2121
2222 let i = 4
2323
2424 let j = 5
2525
2626 let k = 6
2727
2828 let l = 1
2929
3030 let m = 2
3131
3232 let n = 3
3333
3434 func o (p) = throw(makeString(["marketing.ride:", p], " "))
3535
3636
3737 func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined"))
3838
3939
4040 func s (t,u,v,w,x,y) = makeString(["%d%d%s%d%s%d%", t, u, v, w, x, y], a)
4141
4242
4343 func z (t,u,v,w,A,B) = s(toString(t), toString(u), v, toString(w), A, toString(B))
4444
4545
4646 func C (D,E,F) = makeString(["%d%d%d", D, E, F], a)
4747
4848
4949 func G (H,I,J,K) = makeString(["%d%d%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(H), toString(I), toString(J), toString(K)], a)
5050
5151
5252 func L () = "%s__config"
5353
5454
5555 func M () = "%s__totals"
5656
5757
5858 let N = makeString(["%s", "amountUnclaimed"], a)
5959
6060 func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a)
6161
6262
6363 func S () = split(q(L()), a)
6464
6565
6666 func T () = split(q(M()), a)
6767
6868
69-func U () = addressFromStringValue(getStringValue(e()))
70-
71-
72-func V (r,W,X,Y) = {
73- let D = parseIntValue(W[l])
74- let Z = parseIntValue(W[m])
75- let F = parseIntValue(W[n])
76- let aa = (D + X)
77- let ab = (Z - X)
78- if ((0 > ab))
79- then throw("invalid math")
80- else StringEntry(r, C(toString(aa), toString(ab), toString(Y)))
69+func U () = {
70+ let V = getString(e())
71+ if ($isInstanceOf(V, "String"))
72+ then {
73+ let W = V
74+ addressFromStringValue(W)
75+ }
76+ else this
8177 }
8278
8379
84-func ac (Q,H,I,ad,ae,af) = StringEntry(O("claim", Q, toBase58String(af)), G(H, I, ad, ae))
80+func X (r,Y,Z,aa) = {
81+ let D = parseIntValue(Y[l])
82+ let ab = parseIntValue(Y[m])
83+ let F = parseIntValue(Y[n])
84+ let ac = (D + Z)
85+ let ad = (ab - Z)
86+ if ((0 > ad))
87+ then throw("invalid math")
88+ else StringEntry(r, C(toString(ac), toString(ad), toString(aa)))
89+ }
8590
8691
87-func ag () = {
88- let ah = U()
89- let ai = getString(ah, d())
90- if ($isInstanceOf(ai, "String"))
92+func ae (Q,H,I,af,ag,ah) = StringEntry(O("claim", Q, toBase58String(ah)), G(H, I, af, ag))
93+
94+
95+func ai () = {
96+ let aj = U()
97+ let V = getString(aj, d())
98+ if ($isInstanceOf(V, "String"))
9199 then {
92- let aj = ai
93- fromBase58String(aj)
100+ let W = V
101+ fromBase58String(W)
94102 }
95- else if ($isInstanceOf(ai, "Unit"))
103+ else if ($isInstanceOf(V, "Unit"))
96104 then unit
97105 else throw("Match error")
98106 }
99107
100108
101109 func ak (al) = {
102110 let am = o("permission denied")
103- let ai = ag()
104- if ($isInstanceOf(ai, "ByteVector"))
111+ let V = ai()
112+ if ($isInstanceOf(V, "ByteVector"))
105113 then {
106- let an = ai
114+ let an = V
107115 if ((al.callerPublicKey == an))
108116 then true
109117 else am
110118 }
111- else if ($isInstanceOf(ai, "Unit"))
119+ else if ($isInstanceOf(V, "Unit"))
112120 then if ((al.caller == this))
113121 then true
114122 else am
115123 else throw("Match error")
116124 }
117125
118126
119127 func ao (al,ap) = {
120128 let aq = S()
121129 let ar = parseIntValue(aq[f])
122130 let as = parseIntValue(aq[g])
123131 let at = (ar + as)
124132 let au = fromBase58String(aq[h])
125133 let av = addressFromStringValue(aq[j])
126134 let aw = parseIntValue(aq[k])
127135 let ax = T()
128136 let D = parseIntValue(ax[l])
129137 let ay = parseIntValue(ax[m])
130138 let F = parseIntValue(ax[n])
131139 if ((al.caller != av))
132140 then throw("permissions denied")
133141 else if ((ar > height))
134142 then throw(("Wait claim start block: " + toString(ar)))
135143 else {
136144 let K = if ((height > at))
137145 then at
138146 else height
139147 let J = if ((F == 0))
140148 then ar
141149 else F
142150 let I = (K - J)
143151 let az = fraction(aw, I, as)
144152 let aA = valueOrElse(getInteger(this, N), 0)
145153 let aB = (az + aA)
146154 let aC = if (if ((0 >= ap))
147155 then true
148156 else (ap >= aB))
149157 then aB
150158 else ap
151159 let aD = (aB - aC)
152- $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), V(M(), T(), aC, K), ac(toString(av), aC, I, J, K, al.transactionId)], aC)
160+ $Tuple2([IntegerEntry(N, aD), ScriptTransfer(av, aC, au), X(M(), T(), aC, K), ae(toString(av), aC, I, J, K, al.transactionId)], aC)
153161 }
154162 }
155163
156164
157165 @Callable(al)
158166 func constructor (t,aE,aF) = {
159167 let aG = (t + aE)
160168 if (isDefined(getString(L())))
161169 then throw("already initialized")
162170 else if ((size(al.payments) != 1))
163171 then throw("exactly 1 payment must be attached")
164172 else if ((al.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq'))
165173 then throw("not authorized")
166174 else {
167175 let aH = valueOrErrorMessage(addressFromString(aF), "Invalid beneficiarAddress passed")
168176 let aI = value(al.payments[0])
169177 let aJ = value(aI.assetId)
170178 let aK = valueOrErrorMessage(assetInfo(aJ), "fail to load ido asset info")
171179 let aL = toBase58String(aJ)
172180 let aM = pow(10, 0, aK.decimals, 0, 0, DOWN)
173181 let aN = aI.amount
174182 [StringEntry(L(), z(t, aE, aL, aM, toString(aH), aN)), StringEntry(M(), C("0", toString(aN), "0"))]
175183 }
176184 }
177185
178186
179187
180188 @Callable(al)
181189 func claimAmount (ap) = ao(al, ap)
182190
183191
184192
185193 @Callable(al)
186194 func claim () = ao(al, -1)
187195
188196
189197
190198 @Callable(al)
191199 func withdrawReferralReward (aO) = {
192200 let aP = value(getString(b))
193201 let aQ = if ((toString(al.caller) == aP))
194202 then true
195203 else o("permission denied")
196204 if ((aQ == aQ))
197205 then {
198206 let aR = fromBase58String(value(getString(c)))
199- $Tuple2([ScriptTransfer(al.caller, aO, aR), ac(aP, aO, 0, 0, 0, al.transactionId)], unit)
207+ $Tuple2([ScriptTransfer(al.caller, aO, aR), ae(aP, aO, 0, 0, 0, al.transactionId)], unit)
200208 }
201209 else throw("Strict value is not equal to itself.")
202210 }
203211
204212
205213 @Verifier(aS)
206214 func aT () = {
207215 let aU = {
208- let ai = ag()
209- if ($isInstanceOf(ai, "ByteVector"))
216+ let V = ai()
217+ if ($isInstanceOf(V, "ByteVector"))
210218 then {
211- let an = ai
219+ let an = V
212220 an
213221 }
214- else if ($isInstanceOf(ai, "Unit"))
222+ else if ($isInstanceOf(V, "Unit"))
215223 then aS.senderPublicKey
216224 else throw("Match error")
217225 }
218226 sigVerify(aS.bodyBytes, aS.proofs[0], aU)
219227 }
220228

github/deemru/w8io/169f3d6 
48.28 ms