tx · 4RGPxqm36XZGUBTe7ueSDai7vRgmAWJAoZ5Bkhqik1qW

3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt:  -0.01000000 Waves

2021.11.25 18:24 [1806744] smart account 3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt > SELF 0.00000000 Waves

{ "type": 13, "id": "4RGPxqm36XZGUBTe7ueSDai7vRgmAWJAoZ5Bkhqik1qW", "fee": 1000000, "feeAssetId": null, "timestamp": 1637853887740, "version": 1, "sender": "3Mynj79w9PikhwUwMwFPk2vifkm8zkDt2Zt", "senderPublicKey": "5195SwZ4ifX6bBstZ6tN31kEQFVHaKpFYLc1GCa3Myrh", "proofs": [ "5WrYpV6itCMKdAGGtESaQCnAptotB1UoutDjy4uuNAG1P7upBQPYSX2R72U4qz489AWsSXht7nuKWBouCVZFZXic" ], "script": "base64:AAIFAAAAAAAAABsIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgAAAAqAQAAAA9nZXRTdHJpbmdPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEIgAAAAEFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD21hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQAAAAAA1NFUAIAAAACX18AAAAACEJVRlNDQUxFCQABNgAAAAEADeC2s6dkAAABAAAAHWNvbnZlcnRQcmljZUFzc2V0SW50b0lkb0Fzc2V0AAAABQAAABBwcmljZUFzc2V0QW1vdW50AAAADnByaWNlQXNzZXRNVUxUAAAABXByaWNlAAAACXByaWNlTVVMVAAAAAxpZG9Bc3NldE1VTFQEAAAAD2JQcmljZUFzc2V0TVVMVAkAATYAAAABBQAAAA5wcmljZUFzc2V0TVVMVAQAAAANYklkb0Fzc2V0TVVMVAkAATYAAAABBQAAAAxpZG9Bc3NldE1VTFQEAAAADmJQcmljZUFzc2V0QlVGCQABPAAAAAMJAAE2AAAAAQU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l8xBAAAAAlvdXRBbW91bnQIBQAAABBjbGFpbVJlc3VsdFR1cGxlAAAAAl8yBAAAAApvdXRBc3NldElkCAUAAAAQY2xhaW1SZXN1bHRUdXBsZQAAAAJfMwQAAAAPb3JpZ0ludmVzdEFycmF5CAUAAAAQY2xhaW1SZXN1bHRUdXBsZQAAAAJfNAQAAAAUbmV3Q2xhaW1QZXJpb2RIZWlnaHQIBQAAABBjbGFpbVJlc3VsdFR1cGxlAAAAAl81BAAAABVhdmFpbGFibGVUb0NsYWltQXJyYXkIBQAAABBjbGFpbVJlc3VsdFR1cGxlAAAAAl82BAAAABthdmFpbGFibGVQcmljZUFtb3VudFRvQ2xhaW0JAAGRAAAAAgUAAAAVYXZhaWxhYmxlVG9DbGFpbUFycmF5AAAAAAAAAAAABAAAABlhdmFpbGFibGVJZG9BbW91bnRUb0NsYWltCQABkQAAAAIFAAAAFWF2YWlsYWJsZVRvQ2xhaW1BcnJheQAAAAAAAAAAAQkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAYlcyVkJWQJAARMAAAAAgUAAAANdXNlckFkZHJlc3M1OAkABEwAAAACCQABpAAAAAEFAAAAG2F2YWlsYWJsZVByaWNlQW1vdW50VG9DbGFpbQkABEwAAAACCQABpAAAAAEFAAAAGWF2YWlsYWJsZUlkb0Ftb3VudFRvQ2xhaW0FAAAAA25pbAUAAAADU0VQAAAAABsuTwI=", "chainId": 84, "height": 1806744, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6dn8k2wsPZiTBXTqa9o7nwryyVmxe65cbZ3fdBQjPU2Z Next: C3yQmtNtPD7bBjDKFGDsFu7mGuXps9dL5hsWEWorzyjX Diff:
OldNewDifferences
188188
189189
190190 @Callable(aQ)
191-func invest () = if ((1 == 1))
192- then throw("invalid")
193- else {
194- let aE = ah()
195- let A = parseIntValue(aE[o])
196- let B = parseIntValue(aE[p])
197- let aR = (A + B)
198- let C = parseIntValue(aE[q])
199- let D = parseIntValue(aE[r])
200- let h = parseIntValue(aE[s])
201- let E = parseIntValue(aE[t])
202- let F = aE[u]
203- let aG = fromBase58String(F)
204- let G = parseIntValue(aE[v])
205- let H = aE[w]
206- let aH = fromBase58String(H)
207- let I = parseIntValue(aE[x])
208- let aX = parseIntValue(aE[y])
209- let ac = toString(aQ.caller)
210- if ((A > height))
211- then throw("ido has not been started yet")
212- else if ((height > aR))
213- then throw("ido has been already ended")
214- else if ((size(aQ.payments) != 1))
215- then throw("exactly 1 payment is expected")
216- else {
217- let aS = value(aQ.payments[0])
218- let aY = value(aS.assetId)
219- let aZ = aS.amount
220- if ((aY != aH))
221- then throw((("invalid payment asset id: " + toBase58String(aY)) + " is expected"))
222- else {
223- let ba = al(ac)
224- let aV = ak()
225- let bb = (parseIntValue(aV[M]) + aZ)
226- let bc = (bb * 100)
227- if ((bc > assetBalance(this, aG)))
228- then throw("IDO asset has been - sold consider to use smaller payment")
229- else {
230- let aW = [aZ, aZ, 0, 0]
191+func invest () = {
192+ let aE = ah()
193+ let A = parseIntValue(aE[o])
194+ let B = parseIntValue(aE[p])
195+ let aR = (A + B)
196+ let C = parseIntValue(aE[q])
197+ let D = parseIntValue(aE[r])
198+ let h = parseIntValue(aE[s])
199+ let E = parseIntValue(aE[t])
200+ let F = aE[u]
201+ let aG = fromBase58String(F)
202+ let G = parseIntValue(aE[v])
203+ let H = aE[w]
204+ let aH = fromBase58String(H)
205+ let I = parseIntValue(aE[x])
206+ let aX = parseIntValue(aE[y])
207+ let ac = toString(aQ.caller)
208+ if ((A > height))
209+ then throw("ido has not been started yet")
210+ else if ((height > aR))
211+ then throw("ido has been already ended")
212+ else if ((size(aQ.payments) != 1))
213+ then throw("exactly 1 payment is expected")
214+ else {
215+ let aS = value(aQ.payments[0])
216+ let aY = value(aS.assetId)
217+ let aZ = aS.amount
218+ if ((aY != aH))
219+ then throw((("invalid payment asset id: " + toBase58String(aY)) + " is expected"))
220+ else {
221+ let ba = al(ac)
222+ let aV = ak()
223+ let bb = (parseIntValue(aV[M]) + aZ)
224+ let bc = (bb * 100)
225+ if ((bc > assetBalance(this, aG)))
226+ then throw("IDO asset has been - sold consider to use smaller payment")
227+ else {
228+ let aW = [aZ, aZ, 0, 0]
231229 [ar(ab(ac), ba, aW, C), ar(ad(), aV, aW, C), az(ac, aZ, 0, aQ.transactionId)]
232- }
233- }
234- }
235- }
230+ }
231+ }
232+ }
233+ }
236234
237235
238236
239237 @Callable(aQ)
240-func claim (aD,aI) = if ((1 == 1))
241- then throw("invalid")
242- else {
243- let bd = toString(aQ.caller)
244- if ((aI != bd))
245- then throw("not authorized")
246- else {
247- let be = aC(aD, aQ.caller, aQ.transactionId)
248- let aW = be._1
249- let bf = be._2
250- let bg = be._3
251- let aJ = be._4
252- let aM = be._5
253- let bh = aW[ap]
254- let bi = aW[aq]
255- $Tuple2([ScriptTransfer(aQ.caller, bf, bg), ar(ab(aI), aJ, aW, aM), ar(ad(), ak(), aW, aM), aB(aI, bh, bi, aQ.transactionId)], unit)
256- }
257- }
238+func claim (aD,aI) = {
239+ let bd = toString(aQ.caller)
240+ if ((aI != bd))
241+ then throw("not authorized")
242+ else {
243+ let be = aC(aD, aQ.caller, aQ.transactionId)
244+ let aW = be._1
245+ let bf = be._2
246+ let bg = be._3
247+ let aJ = be._4
248+ let aM = be._5
249+ let bh = aW[ap]
250+ let bi = aW[aq]
251+ $Tuple2([ScriptTransfer(aQ.caller, bf, bg), ar(ab(aI), aJ, aW, aM), ar(ad(), ak(), aW, aM), aB(aI, bh, bi, aQ.transactionId)], unit)
252+ }
253+ }
258254
259255
260256
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined"))
55
66
77 let c = "__"
88
99 let d = toBigInt(1000000000000000000)
1010
1111 func e (f,g,h,i,j) = {
1212 let k = toBigInt(g)
1313 let l = toBigInt(j)
1414 let m = fraction(toBigInt(f), d, k)
1515 let n = fraction(m, toBigInt(i), toBigInt(h))
1616 toInt(fraction(n, toBigInt(j), d))
1717 }
1818
1919
2020 let o = 1
2121
2222 let p = 2
2323
2424 let q = 3
2525
2626 let r = 4
2727
2828 let s = 5
2929
3030 let t = 6
3131
3232 let u = 7
3333
3434 let v = 8
3535
3636 let w = 9
3737
3838 let x = 10
3939
4040 let y = 11
4141
4242 func z (A,B,C,D,h,E,F,G,H,I,J,K) = makeString(["%d%d%d%d%d%d%s%d%s%d%d%d", A, B, C, D, h, E, F, G, H, I, J, K], c)
4343
4444
4545 func L (A,B,C,D,h,E,F,G,H,I,J,K) = z(toString(A), toString(B), toString(C), toString(D), toString(h), toString(E), F, toString(G), H, toString(I), toString(J), toString(K))
4646
4747
4848 let M = 1
4949
5050 let N = 2
5151
5252 let O = 3
5353
5454 let P = 4
5555
5656 let Q = 5
5757
5858 func R (S,T,U,V,W) = makeString(["%d%d%d%d%d", S, T, U, V, W], c)
5959
6060
6161 func X (S,T,U,V,W) = R(toString(S), toString(T), toString(U), toString(V), toString(W))
6262
6363
6464 func Y (f,Z) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(f), toString(Z)], c)
6565
6666
6767 func aa () = "%s__config"
6868
6969
7070 func ab (ac) = ("%s__" + ac)
7171
7272
7373 func ad () = "%s__totals"
7474
7575
7676 func ae (af,ac,ag) = makeString(["%s%s%s%s__history", af, ac, ag], c)
7777
7878
7979 func ah () = split(a(aa()), c)
8080
8181
8282 func ai (aj) = split(valueOrElse(getString(aj), R("0", "0", "0", "0", "0")), c)
8383
8484
8585 func ak () = ai(ad())
8686
8787
8888 func al (ac) = ai(ab(ac))
8989
9090
9191 func am (ac) = split(a(ab(ac)), c)
9292
9393
9494 let an = 0
9595
9696 let ao = 1
9797
9898 let ap = 2
9999
100100 let aq = 3
101101
102102 func ar (b,as,at,au) = {
103103 let S = parseIntValue(as[M])
104104 let T = parseIntValue(as[N])
105105 let U = parseIntValue(as[O])
106106 let V = parseIntValue(as[P])
107107 let W = parseIntValue(as[Q])
108108 let av = (S + at[an])
109109 let aw = (T + at[ao])
110110 let ax = (U + at[ap])
111111 let ay = (V + at[aq])
112112 if ((0 > aw))
113113 then throw("invalid math")
114114 else StringEntry(b, X(av, aw, ax, ay, au))
115115 }
116116
117117
118118 func az (ac,f,Z,aA) = StringEntry(ae("invest", ac, toBase58String(aA)), Y(f, Z))
119119
120120
121121 func aB (ac,f,Z,aA) = StringEntry(ae("claim", ac, toBase58String(aA)), Y(f, Z))
122122
123123
124124 func aC (aD,ac,aA) = {
125125 let aE = ah()
126126 let C = parseIntValue(aE[q])
127127 let D = parseIntValue(aE[r])
128128 let aF = (C + D)
129129 let h = parseIntValue(aE[s])
130130 let E = parseIntValue(aE[t])
131131 let F = aE[u]
132132 let aG = fromBase58String(F)
133133 let G = parseIntValue(aE[v])
134134 let H = aE[w]
135135 let aH = fromBase58String(H)
136136 let I = parseIntValue(aE[x])
137137 let aI = toString(ac)
138138 let aJ = am(aI)
139139 let aK = parseIntValue(aJ[M])
140140 let aL = parseIntValue(aJ[Q])
141141 let aM = if ((height > aF))
142142 then aF
143143 else if ((C > height))
144144 then C
145145 else height
146146 if ((C > height))
147147 then throw("failure")
148148 else {
149149 let aN = (aM - aL)
150150 let aO = fraction(aK, aN, D)
151151 let aP = e(aO, I, h, E, G)
152152 if ((aD == H))
153153 then $Tuple6([0, -(aO), aO, 0], aO, aH, aJ, aM, [aO, aP])
154154 else if ((aD == F))
155155 then $Tuple6([0, -(aO), 0, aP], aP, aG, aJ, aM, [aO, aP])
156156 else throw(("unsupported assetId: " + aD))
157157 }
158158 }
159159
160160
161161 @Callable(aQ)
162162 func constructor (A,B,C,D,h,H,J) = {
163163 let E = ((100 * 1000) * 1000)
164164 let aR = (A + B)
165165 if (isDefined(getString(aa())))
166166 then throw("already initialized")
167167 else if (("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH" != toString(aQ.caller)))
168168 then throw("not authorized")
169169 else if ((size(aQ.payments) != 1))
170170 then throw("exactly 1 payment must be attached")
171171 else if ((aR >= C))
172172 then throw("claimStart must be greater than idoEnd")
173173 else {
174174 let aS = value(aQ.payments[0])
175175 let aG = value(aS.assetId)
176176 let aT = valueOrErrorMessage(assetInfo(aG), "fail to load ido asset info")
177177 let F = toBase58String(aG)
178178 let G = pow(10, 0, aT.decimals, 0, 0, DOWN)
179179 let aH = fromBase58String(H)
180180 let aU = valueOrErrorMessage(assetInfo(aH), "fail to load price asset info")
181181 let I = pow(10, 0, aU.decimals, 0, 0, DOWN)
182182 let aV = ak()
183183 let aW = [0, 0, 0, 0]
184184 [StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, aS.amount)), ar(ad(), aV, aW, C)]
185185 }
186186 }
187187
188188
189189
190190 @Callable(aQ)
191-func invest () = if ((1 == 1))
192- then throw("invalid")
193- else {
194- let aE = ah()
195- let A = parseIntValue(aE[o])
196- let B = parseIntValue(aE[p])
197- let aR = (A + B)
198- let C = parseIntValue(aE[q])
199- let D = parseIntValue(aE[r])
200- let h = parseIntValue(aE[s])
201- let E = parseIntValue(aE[t])
202- let F = aE[u]
203- let aG = fromBase58String(F)
204- let G = parseIntValue(aE[v])
205- let H = aE[w]
206- let aH = fromBase58String(H)
207- let I = parseIntValue(aE[x])
208- let aX = parseIntValue(aE[y])
209- let ac = toString(aQ.caller)
210- if ((A > height))
211- then throw("ido has not been started yet")
212- else if ((height > aR))
213- then throw("ido has been already ended")
214- else if ((size(aQ.payments) != 1))
215- then throw("exactly 1 payment is expected")
216- else {
217- let aS = value(aQ.payments[0])
218- let aY = value(aS.assetId)
219- let aZ = aS.amount
220- if ((aY != aH))
221- then throw((("invalid payment asset id: " + toBase58String(aY)) + " is expected"))
222- else {
223- let ba = al(ac)
224- let aV = ak()
225- let bb = (parseIntValue(aV[M]) + aZ)
226- let bc = (bb * 100)
227- if ((bc > assetBalance(this, aG)))
228- then throw("IDO asset has been - sold consider to use smaller payment")
229- else {
230- let aW = [aZ, aZ, 0, 0]
191+func invest () = {
192+ let aE = ah()
193+ let A = parseIntValue(aE[o])
194+ let B = parseIntValue(aE[p])
195+ let aR = (A + B)
196+ let C = parseIntValue(aE[q])
197+ let D = parseIntValue(aE[r])
198+ let h = parseIntValue(aE[s])
199+ let E = parseIntValue(aE[t])
200+ let F = aE[u]
201+ let aG = fromBase58String(F)
202+ let G = parseIntValue(aE[v])
203+ let H = aE[w]
204+ let aH = fromBase58String(H)
205+ let I = parseIntValue(aE[x])
206+ let aX = parseIntValue(aE[y])
207+ let ac = toString(aQ.caller)
208+ if ((A > height))
209+ then throw("ido has not been started yet")
210+ else if ((height > aR))
211+ then throw("ido has been already ended")
212+ else if ((size(aQ.payments) != 1))
213+ then throw("exactly 1 payment is expected")
214+ else {
215+ let aS = value(aQ.payments[0])
216+ let aY = value(aS.assetId)
217+ let aZ = aS.amount
218+ if ((aY != aH))
219+ then throw((("invalid payment asset id: " + toBase58String(aY)) + " is expected"))
220+ else {
221+ let ba = al(ac)
222+ let aV = ak()
223+ let bb = (parseIntValue(aV[M]) + aZ)
224+ let bc = (bb * 100)
225+ if ((bc > assetBalance(this, aG)))
226+ then throw("IDO asset has been - sold consider to use smaller payment")
227+ else {
228+ let aW = [aZ, aZ, 0, 0]
231229 [ar(ab(ac), ba, aW, C), ar(ad(), aV, aW, C), az(ac, aZ, 0, aQ.transactionId)]
232- }
233- }
234- }
235- }
230+ }
231+ }
232+ }
233+ }
236234
237235
238236
239237 @Callable(aQ)
240-func claim (aD,aI) = if ((1 == 1))
241- then throw("invalid")
242- else {
243- let bd = toString(aQ.caller)
244- if ((aI != bd))
245- then throw("not authorized")
246- else {
247- let be = aC(aD, aQ.caller, aQ.transactionId)
248- let aW = be._1
249- let bf = be._2
250- let bg = be._3
251- let aJ = be._4
252- let aM = be._5
253- let bh = aW[ap]
254- let bi = aW[aq]
255- $Tuple2([ScriptTransfer(aQ.caller, bf, bg), ar(ab(aI), aJ, aW, aM), ar(ad(), ak(), aW, aM), aB(aI, bh, bi, aQ.transactionId)], unit)
256- }
257- }
238+func claim (aD,aI) = {
239+ let bd = toString(aQ.caller)
240+ if ((aI != bd))
241+ then throw("not authorized")
242+ else {
243+ let be = aC(aD, aQ.caller, aQ.transactionId)
244+ let aW = be._1
245+ let bf = be._2
246+ let bg = be._3
247+ let aJ = be._4
248+ let aM = be._5
249+ let bh = aW[ap]
250+ let bi = aW[aq]
251+ $Tuple2([ScriptTransfer(aQ.caller, bf, bg), ar(ab(aI), aJ, aW, aM), ar(ad(), ak(), aW, aM), aB(aI, bh, bi, aQ.transactionId)], unit)
252+ }
253+ }
258254
259255
260256
261257 @Callable(aQ)
262258 func claimREADONLY (aD,aI) = {
263259 let be = aC(aD, addressFromStringValue(aI), fromBase58String(""))
264260 let aW = be._1
265261 let bf = be._2
266262 let bg = be._3
267263 let aJ = be._4
268264 let aM = be._5
269265 let bj = be._6
270266 let bk = bj[0]
271267 let bl = bj[1]
272268 $Tuple2(nil, makeString(["%s%d%d", aI, toString(bk), toString(bl)], c))
273269 }
274270
275271

github/deemru/w8io/169f3d6 
55.92 ms