tx · 94c96fRDhZ13uLDzWqYm5LG7MhRseMpRTMQmsmU13V9j

3N7Eg5wsiuv2hwrWKF3saVizEDJzB7WBCjh:  -0.01000000 Waves

2021.11.23 15:24 [1803663] smart account 3N7Eg5wsiuv2hwrWKF3saVizEDJzB7WBCjh > SELF 0.00000000 Waves

{ "type": 13, "id": "94c96fRDhZ13uLDzWqYm5LG7MhRseMpRTMQmsmU13V9j", "fee": 1000000, "feeAssetId": null, "timestamp": 1637670273569, "version": 1, "sender": "3N7Eg5wsiuv2hwrWKF3saVizEDJzB7WBCjh", "senderPublicKey": "DYfPdgKrhHPh7wbnb6pt7r2VqXWM4GaskX4c12QgnNQC", "proofs": [ "5q83kYU4DTG888uDUMbXQZjFMzVaZduJGLiUFc9YMvvaYzPwg7NreTFyDH6EY7bQ1RQo8PxzafcTPHSsMubWZm27" ], "script": "base64:AAIFAAAAAAAAABsIAhIJCgcBAQEBAQgBEgASBAoCCAgSBAoCCAgAAAAqAQAAAA9nZXRTdHJpbmdPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEIgAAAAEFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD21hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQAAAAAA1NFUAIAAAACX18AAAAACEJVRlNDQUxFCQABNgAAAAEADeC2s6dkAAABAAAAHWNvbnZlcnRQcmljZUFzc2V0SW50b0lkb0Fzc2V0AAAABQAAABBwcmljZUFzc2V0QW1vdW50AAAADnByaWNlQXNzZXRNVUxUAAAABXByaWNlAAAACXByaWNlTVVMVAAAAAxpZG9Bc3NldE1VTFQEAAAAD2JQcmljZUFzc2V0TVVMVAkAATYAAAABBQAAAA5wcmljZUFzc2V0TVVMVAQAAAANYklkb0Fzc2V0TVVMVAkAATYAAAABBQAAAAxpZG9Bc3NldE1VTFQEAAAADmJQcmljZUFzc2V0QlVGCQABPAAAAAMJAAE2AAAAA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JyYXkIBQAAABBjbGFpbVJlc3VsdFR1cGxlAAAAAl80BAAAABRuZXdDbGFpbVBlcmlvZEhlaWdodAgFAAAAEGNsYWltUmVzdWx0VHVwbGUAAAACXzUEAAAAFWF2YWlsYWJsZVRvQ2xhaW1BcnJheQgFAAAAEGNsYWltUmVzdWx0VHVwbGUAAAACXzYEAAAAG2F2YWlsYWJsZVByaWNlQW1vdW50VG9DbGFpbQkAAZEAAAACBQAAABVhdmFpbGFibGVUb0NsYWltQXJyYXkAAAAAAAAAAAAEAAAAGWF2YWlsYWJsZUlkb0Ftb3VudFRvQ2xhaW0JAAGRAAAAAgUAAAAVYXZhaWxhYmxlVG9DbGFpbUFycmF5AAAAAAAAAAABCQAFFAAAAAIFAAAAA25pbAkABLkAAAACCQAETAAAAAICAAAABiVzJWQlZAkABEwAAAACBQAAAA11c2VyQWRkcmVzczU4CQAETAAAAAIJAAGkAAAAAQUAAAAbYXZhaWxhYmxlUHJpY2VBbW91bnRUb0NsYWltCQAETAAAAAIJAAGkAAAAAQUAAAAZYXZhaWxhYmxlSWRvQW1vdW50VG9DbGFpbQUAAAADbmlsBQAAAANTRVAAAAAAM/PdnQ==", "chainId": 84, "height": 1803663, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Dw6wwAjFsBgqA71UfaUetoHzxaZYgmixubUo5Rv2qi82 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = valueOrErrorMessage(getString(b), (("mandatory this." + b) + " is not defined"))
5+
6+
7+let c = "__"
8+
9+let d = toBigInt(1000000000000000000)
10+
11+func e (f,g,h,i,j) = {
12+ let k = toBigInt(g)
13+ let l = toBigInt(j)
14+ let m = fraction(toBigInt(f), d, k)
15+ let n = fraction(m, toBigInt(i), toBigInt(h))
16+ toInt(fraction(n, toBigInt(j), d))
17+ }
18+
19+
20+let o = 1
21+
22+let p = 2
23+
24+let q = 3
25+
26+let r = 4
27+
28+let s = 5
29+
30+let t = 6
31+
32+let u = 7
33+
34+let v = 8
35+
36+let w = 9
37+
38+let x = 10
39+
40+let y = 11
41+
42+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)
43+
44+
45+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))
46+
47+
48+let M = 1
49+
50+let N = 2
51+
52+let O = 3
53+
54+let P = 4
55+
56+let Q = 5
57+
58+func R (S,T,U,V,W) = makeString(["%d%d%d%d%d", S, T, U, V, W], c)
59+
60+
61+func X (S,T,U,V,W) = R(toString(S), toString(T), toString(U), toString(V), toString(W))
62+
63+
64+func Y (f,Z) = makeString(["%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(f), toString(Z)], c)
65+
66+
67+func aa () = "%s__config"
68+
69+
70+func ab (ac) = ("%s__" + ac)
71+
72+
73+func ad () = "%s__totals"
74+
75+
76+func ae (af,ac,ag) = makeString(["%s%s%s%s__history", af, ac, ag], c)
77+
78+
79+func ah () = split(a(aa()), c)
80+
81+
82+func ai (aj) = split(valueOrElse(getString(aj), R("0", "0", "0", "0", "0")), c)
83+
84+
85+func ak () = ai(ad())
86+
87+
88+func al (ac) = ai(ab(ac))
89+
90+
91+func am (ac) = split(a(ab(ac)), c)
92+
93+
94+let an = 0
95+
96+let ao = 1
97+
98+let ap = 2
99+
100+let aq = 3
101+
102+func ar (b,as,at,au) = {
103+ let S = parseIntValue(as[M])
104+ let T = parseIntValue(as[N])
105+ let U = parseIntValue(as[O])
106+ let V = parseIntValue(as[P])
107+ let W = parseIntValue(as[Q])
108+ let av = (S + at[an])
109+ let aw = (T + at[ao])
110+ let ax = (U + at[ap])
111+ let ay = (V + at[aq])
112+ if ((0 > aw))
113+ then throw("invalid math")
114+ else StringEntry(b, X(av, aw, ax, ay, au))
115+ }
116+
117+
118+func az (ac,f,Z,aA) = StringEntry(ae("invest", ac, toBase58String(aA)), Y(f, Z))
119+
120+
121+func aB (ac,f,Z,aA) = StringEntry(ae("claim", ac, toBase58String(aA)), Y(f, Z))
122+
123+
124+func aC (aD,ac,aA) = {
125+ let aE = ah()
126+ let C = parseIntValue(aE[q])
127+ let D = parseIntValue(aE[r])
128+ let aF = (C + D)
129+ let h = parseIntValue(aE[s])
130+ let E = parseIntValue(aE[t])
131+ let F = aE[u]
132+ let aG = fromBase58String(F)
133+ let G = parseIntValue(aE[v])
134+ let H = aE[w]
135+ let aH = fromBase58String(H)
136+ let I = parseIntValue(aE[x])
137+ let aI = toString(ac)
138+ let aJ = am(aI)
139+ let aK = parseIntValue(aJ[M])
140+ let aL = parseIntValue(aJ[Q])
141+ let aM = if ((height > aF))
142+ then aF
143+ else if ((C > height))
144+ then C
145+ else height
146+ let aN = (aM - aL)
147+ let aO = fraction(aK, aN, D)
148+ let aP = e(aO, I, h, E, G)
149+ if ((aD == H))
150+ then $Tuple6([0, -(aO), aO, 0], aO, aH, aJ, aM, [aO, aP])
151+ else if ((aD == F))
152+ then $Tuple6([0, -(aO), 0, aP], aP, aG, aJ, aM, [aO, aP])
153+ else throw(("unsupported assetId: " + aD))
154+ }
155+
156+
157+@Callable(aQ)
158+func constructor (A,B,C,D,h,H,J) = {
159+ let E = ((100 * 1000) * 1000)
160+ let aR = (A + B)
161+ if (isDefined(getString(aa())))
162+ then throw("already initialized")
163+ else if (("3N4Aib5iubWiGMzdTh6wWiVDVbo32oeVUmH" != toString(aQ.caller)))
164+ then throw("not authorized")
165+ else if ((size(aQ.payments) != 1))
166+ then throw("exactly 1 payment must be attached")
167+ else if ((aR >= C))
168+ then throw("claimStart must be greater than idoEnd")
169+ else {
170+ let aS = value(aQ.payments[0])
171+ let aG = value(aS.assetId)
172+ let aT = valueOrErrorMessage(assetInfo(aG), "fail to load ido asset info")
173+ let F = toBase58String(aG)
174+ let G = pow(10, 0, aT.decimals, 0, 0, DOWN)
175+ let aH = fromBase58String(H)
176+ let aU = valueOrErrorMessage(assetInfo(aH), "fail to load price asset info")
177+ let I = pow(10, 0, aU.decimals, 0, 0, DOWN)
178+ let aV = ak()
179+ let aW = [0, 0, 0, 0]
180+[StringEntry(aa(), L(A, B, C, D, h, E, F, G, H, I, J, aS.amount)), ar(ad(), aV, aW, C)]
181+ }
182+ }
183+
184+
185+
186+@Callable(aQ)
187+func invest () = {
188+ let aE = ah()
189+ let A = parseIntValue(aE[o])
190+ let B = parseIntValue(aE[p])
191+ let aR = (A + B)
192+ let C = parseIntValue(aE[q])
193+ let D = parseIntValue(aE[r])
194+ let h = parseIntValue(aE[s])
195+ let E = parseIntValue(aE[t])
196+ let F = aE[u]
197+ let aG = fromBase58String(F)
198+ let G = parseIntValue(aE[v])
199+ let H = aE[w]
200+ let aH = fromBase58String(H)
201+ let I = parseIntValue(aE[x])
202+ let aX = parseIntValue(aE[y])
203+ let ac = toString(aQ.caller)
204+ if ((A > height))
205+ then throw("ido has not been started yet")
206+ else if ((height > aR))
207+ then throw("ido has been already ended")
208+ else if ((size(aQ.payments) != 1))
209+ then throw("exactly 1 payment is expected")
210+ else {
211+ let aS = value(aQ.payments[0])
212+ let aY = value(aS.assetId)
213+ let aZ = aS.amount
214+ if ((aY != aH))
215+ then throw((("invalid payment asset id: " + toBase58String(aY)) + " is expected"))
216+ else {
217+ let ba = al(ac)
218+ let aV = ak()
219+ let bb = (parseIntValue(aV[M]) + aZ)
220+ let bc = (bb * 100)
221+ if ((bc > assetBalance(this, aG)))
222+ then throw("IDO asset has been - sold consider to use smaller payment")
223+ else {
224+ let aW = [aZ, aZ, 0, 0]
225+[ar(ab(ac), ba, aW, C), ar(ad(), aV, aW, C), az(ac, aZ, 0, aQ.transactionId)]
226+ }
227+ }
228+ }
229+ }
230+
231+
232+
233+@Callable(aQ)
234+func claim (aD,aI) = {
235+ let bd = toString(aQ.caller)
236+ if ((aI != bd))
237+ then throw("not authorized")
238+ else {
239+ let be = aC(aD, aQ.caller, aQ.transactionId)
240+ let aW = be._1
241+ let bf = be._2
242+ let bg = be._3
243+ let aJ = be._4
244+ let aM = be._5
245+ let bh = aW[ap]
246+ let bi = aW[aq]
247+ $Tuple2([ScriptTransfer(aQ.caller, bf, bg), ar(ab(aI), aJ, aW, aM), ar(ad(), ak(), aW, aM), aB(aI, bh, bi, aQ.transactionId)], unit)
248+ }
249+ }
250+
251+
252+
253+@Callable(aQ)
254+func claimREADONLY (aD,aI) = {
255+ let be = aC(aD, addressFromStringValue(aI), fromBase58String(""))
256+ let aW = be._1
257+ let bf = be._2
258+ let bg = be._3
259+ let aJ = be._4
260+ let aM = be._5
261+ let bj = be._6
262+ let bk = bj[0]
263+ let bl = bj[1]
264+ $Tuple2(nil, makeString(["%s%d%d", aI, toString(bk), toString(bl)], c))
265+ }
266+
267+

github/deemru/w8io/026f985 
20.94 ms