tx · AGNVGwVtDXZqie5MyPjARiiDG2qgkEnEtyivQ87VFcS6

3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N:  -0.01000000 Waves

2022.04.27 14:48 [2026850] smart account 3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N > SELF 0.00000000 Waves

{ "type": 13, "id": "AGNVGwVtDXZqie5MyPjARiiDG2qgkEnEtyivQ87VFcS6", "fee": 1000000, "feeAssetId": null, "timestamp": 1651060156459, "version": 2, "chainId": 84, "sender": "3MpcyLdYAQ6Z14cs1Fy3o7XK1cAHajK5g5N", "senderPublicKey": "CpN2UR96CYA49vvxNChb3NFpAE9TK2nyuCptRU4VkHzS", "proofs": [ "54UEEYSHunkyMWCv4RMNgaGMvZcUYtDUKQo17428KKgjNqQpQJXozNKxW5fF9CVSBwkibCDveYsH7KW3pFdsfTnP" ], "script": "base64:AAIFAAAAAAAAACYIAhIECgIBARIDCgEIEgMKAQgSBwoFAQEBAQgSAwoBARIAEgASAAAAABsAAAAAA3ZlcgIAAAADMS4wAAAAAAR5ZWFyAAAAAAAACAUgAAAAAAlzZXBhcmF0b3ICAAAAAl9fAAAAAApXQVZFU0lEU1RSAgAAAAVXQVZFUwAAAAAHV0FWRVNJRAkAAlkAAAABBQAAAApXQVZFU0lEU1RSAAAAAAxtYXhJbnZlc3RLZXkCAAAADSVzX19tYXhJbnZlc3QAAAAADnRvdGFsSW52ZXN0S2V5AgAAAA8lc19fdG90YWxJbnZlc3QAAAAADmludmVzdEFzc2V0S2V5AgAAABElc19faW52ZXN0QXNzZXRJZAAAAAAKYXB5RnJvbUtleQIAAAALJXNfX2FweUZyb20AAAAACGFweVRvS2V5AgAAAAklc19fYXB5VG8AAAAAFGludmVzdEludGVydmFsTWluS2V5AgAAAA8lc19faW50ZXJ2YWxNaW4AAAAADm1heEludGVydmFsS2V5AgAAAA4lX19tYXhJbnRlcnZhbAEAAAAQZ2V0VXNlckludmVzdEtleQAAAAEAAAAEdXNlcgkABL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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAxkZWxldGVBbW91bnQAAAAAAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAACU5vdCBvd25lcgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAOdG90YWxJbnZlc3RLZXkAAAAAAAAAAAAFAAAAA25pbAAAAACoPsnI", "height": 2026850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: vRkEPpDxqRXJLtKKStEmhHBw9NbH6GzJHymKQaKdivC Next: 7ToLhrUZefvWhNQjNw8Zq98EhR7Mf61EaHptAYMBMMmp Diff:
OldNewDifferences
108108 }
109109
110110
111-@Callable(ac)
111+func ac (O,P,Q,R,S,T,U) = {
112+ let X = O
113+ let Y = r(P, height)
114+ let Z = (Y - X)
115+ let aa = fraction(U, Z, b)
116+ let ab = fraction(aa, R, 100000000)
117+ let ad = (P - Y)
118+ let ae = fraction((U * 2), Z, b)
119+ let af = fraction(ae, R, 100000000)
120+ (ab + af)
121+ }
122+
123+
124+@Callable(ag)
112125 func getApyReaOnly (E,F) = {
113- let ad = D(E, F)
114- $Tuple2(nil, ad)
126+ let ah = D(E, F)
127+ $Tuple2(nil, ah)
115128 }
116129
117130
118131
119-@Callable(ac)
132+@Callable(ag)
120133 func claimReadonly (n) = {
121134 let N = M(n)
122135 let S = W(N[0], N[1], N[2], N[3], N[4], N[5], N[6])
125138
126139
127140
128-@Callable(ac)
129-func setParams (H,G,ae,af,ag) = if ((ac.caller != this))
130- then throw("Not owner")
131- else [StringEntry(h, ag), IntegerEntry(j, G), IntegerEntry(i, H), IntegerEntry(l, ae), IntegerEntry(f, af)]
141+@Callable(ag)
142+func forfaitReadonly (n) = {
143+ let N = M(n)
144+ let ai = ac(N[0], N[1], N[2], N[3], N[4], N[5], N[6])
145+ $Tuple2(nil, ai)
146+ }
132147
133148
134149
135-@Callable(ac)
150+@Callable(ag)
151+func setParams (H,G,aj,ak,al) = if ((ag.caller != this))
152+ then throw("Not owner")
153+ else [StringEntry(h, al), IntegerEntry(j, G), IntegerEntry(i, H), IntegerEntry(l, aj), IntegerEntry(f, ak)]
154+
155+
156+
157+@Callable(ag)
136158 func deposit (E) = {
137- let ah = x(k, 43200)
138- let af = v(f)
139- let ai = v(g)
140- let ag = A(h)
141- let aj = ac.caller
142- let ak = toString(aj)
159+ let am = x(k, 43200)
160+ let ak = v(f)
161+ let an = v(g)
162+ let al = A(h)
163+ let ao = ag.caller
164+ let ap = toString(ao)
143165 let F = v(l)
144- let al = height
145- let am = (al + (ah * E))
146- let an = (("Invalid asset. " + ag) + " is expected")
166+ let aq = height
167+ let ar = (aq + (am * E))
168+ let as = (("Invalid asset. " + al) + " is expected")
147169 if (if ((1 > E))
148170 then true
149171 else (E > F))
150172 then throw("Wrong interval")
151- else if ((size(ac.payments) != 1))
173+ else if ((size(ag.payments) != 1))
152174 then throw("Invalid payments size")
153175 else {
154- let ao = ac.payments[0]
155- let R = ao.amount
156- let ap = valueOrErrorMessage(ao.assetId, an)
157- if ((toBase58String(ap) != ag))
158- then throw(an)
159- else if (((R + ai) > af))
176+ let at = ag.payments[0]
177+ let R = at.amount
178+ let au = valueOrErrorMessage(at.assetId, as)
179+ if ((toBase58String(au) != al))
180+ then throw(as)
181+ else if (((R + an) > ak))
160182 then throw("The max invest limit has been reached")
161183 else {
162- let ad = D(E, F)
163- let aq = M(ak)
164- let ar = W(aq[0], aq[1], aq[2], aq[3], aq[4], aq[5], aq[6])
165- let as = (R + aq[3])
166- let T = aq[4]
167- let S = aq[5]
168-[V(ak, al, am, al, as, ar, T, ad), IntegerEntry(g, (R + ai))]
184+ let ah = D(E, F)
185+ let av = M(ap)
186+ let aw = W(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
187+ let ax = (R + av[3])
188+ let T = av[4]
189+ let S = av[5]
190+[V(ap, aq, ar, aq, ax, aw, T, ah), IntegerEntry(g, (R + an))]
169191 }
170192 }
171193 }
172194
173195
174196
175-@Callable(ac)
197+@Callable(ag)
176198 func claim () = {
177- let ag = A(h)
178- let N = M(toString(ac.caller))
199+ let al = A(h)
200+ let N = M(toString(ag.caller))
179201 if ((7 > size(N)))
180202 then throw("User has't invest")
181203 else {
184206 let Q = height
185207 if ((S == 0))
186208 then throw("Nothing to claim")
187- else [ScriptTransfer(ac.caller, S, fromBase58String(ag)), V(toString(ac.caller), N[0], N[1], Q, N[3], 0, T, N[6])]
209+ else [ScriptTransfer(ag.caller, S, fromBase58String(al)), V(toString(ag.caller), N[0], N[1], Q, N[3], 0, T, N[6])]
188210 }
189211 }
190212
191213
192214
193-@Callable(ac)
194-func deleteAmount () = if ((ac.caller != this))
215+@Callable(ag)
216+func cancelInvest () = {
217+ let al = A(h)
218+ let av = M(toString(ag.caller))
219+ if ((7 > size(av)))
220+ then throw("User has't invest")
221+ else {
222+ let S = W(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
223+ let ay = ac(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
224+ let R = av[3]
225+ let az = ((S + R) - ay)
226+[ScriptTransfer(ag.caller, S, fromBase58String(al)), V(toString(ag.caller), 0, 0, 0, 0, 0, 0, 0)]
227+ }
228+ }
229+
230+
231+
232+@Callable(ag)
233+func deleteAmount () = if ((ag.caller != this))
195234 then throw("Not owner")
196235 else [IntegerEntry(g, 0)]
197236
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "1.0"
55
66 let b = 525600
77
88 let c = "__"
99
1010 let d = "WAVES"
1111
1212 let e = fromBase58String(d)
1313
1414 let f = "%s__maxInvest"
1515
1616 let g = "%s__totalInvest"
1717
1818 let h = "%s__investAssetId"
1919
2020 let i = "%s__apyFrom"
2121
2222 let j = "%s__apyTo"
2323
2424 let k = "%s__intervalMin"
2525
2626 let l = "%__maxInterval"
2727
2828 func m (n) = makeString(["%s%s$d", "clrcInvest", n], c)
2929
3030
3131 func o (p,q) = if ((valueOrElse(p, 0) != 0))
3232 then p
3333 else q
3434
3535
3636 func r (s,t) = if ((s > t))
3737 then t
3838 else s
3939
4040
4141 func u (s,t) = if ((t > s))
4242 then t
4343 else s
4444
4545
4646 func v (w) = valueOrElse(getInteger(this, w), 0)
4747
4848
4949 func x (w,q) = valueOrElse(getInteger(this, w), q)
5050
5151
5252 func y (w) = valueOrErrorMessage(getInteger(this, w), (("Mandatory this." + w) + " is not defined"))
5353
5454
5555 func z (w,q) = valueOrElse(getString(this, w), q)
5656
5757
5858 func A (w) = valueOrErrorMessage(getString(this, w), (("Mandatory this." + w) + " is not defined"))
5959
6060
6161 func B (C) = if ((C == d))
6262 then unit
6363 else fromBase58String(C)
6464
6565
6666 func D (E,F) = {
6767 let G = v(j)
6868 let H = v(i)
6969 let I = ((G - H) * 1000000)
7070 let J = (F - 1)
7171 let K = ((I * (E - 1)) / J)
7272 let L = (K + (H * 1000000))
7373 L
7474 }
7575
7676
7777 func M (n) = {
7878 let N = split(z(m(n), ""), c)
7979 if ((7 > size(N)))
8080 then [0, 0, 0, 0, 0, 0, 0]
8181 else {
8282 let O = valueOrElse(parseInt(N[1]), 0)
8383 let P = valueOrElse(parseInt(N[2]), 0)
8484 let Q = valueOrElse(parseInt(N[3]), 0)
8585 let R = valueOrElse(parseInt(N[4]), 0)
8686 let S = valueOrElse(parseInt(N[5]), 0)
8787 let T = valueOrElse(parseInt(N[6]), 0)
8888 let U = valueOrElse(parseInt(N[7]), 0)
8989 [O, P, Q, R, S, T, U]
9090 }
9191 }
9292
9393
9494 func V (n,O,P,Q,R,S,T,U) = {
9595 let w = m(n)
9696 let N = makeString(["%d%d%d%d%d%d", toString(O), toString(P), toString(Q), toString(R), toString(S), toString(T), toString(U)], c)
9797 StringEntry(w, N)
9898 }
9999
100100
101101 func W (O,P,Q,R,S,T,U) = {
102102 let X = u(Q, O)
103103 let Y = r(P, height)
104104 let Z = (Y - X)
105105 let aa = fraction(U, Z, b)
106106 let ab = fraction(aa, R, 100000000)
107107 (ab + S)
108108 }
109109
110110
111-@Callable(ac)
111+func ac (O,P,Q,R,S,T,U) = {
112+ let X = O
113+ let Y = r(P, height)
114+ let Z = (Y - X)
115+ let aa = fraction(U, Z, b)
116+ let ab = fraction(aa, R, 100000000)
117+ let ad = (P - Y)
118+ let ae = fraction((U * 2), Z, b)
119+ let af = fraction(ae, R, 100000000)
120+ (ab + af)
121+ }
122+
123+
124+@Callable(ag)
112125 func getApyReaOnly (E,F) = {
113- let ad = D(E, F)
114- $Tuple2(nil, ad)
126+ let ah = D(E, F)
127+ $Tuple2(nil, ah)
115128 }
116129
117130
118131
119-@Callable(ac)
132+@Callable(ag)
120133 func claimReadonly (n) = {
121134 let N = M(n)
122135 let S = W(N[0], N[1], N[2], N[3], N[4], N[5], N[6])
123136 $Tuple2(nil, S)
124137 }
125138
126139
127140
128-@Callable(ac)
129-func setParams (H,G,ae,af,ag) = if ((ac.caller != this))
130- then throw("Not owner")
131- else [StringEntry(h, ag), IntegerEntry(j, G), IntegerEntry(i, H), IntegerEntry(l, ae), IntegerEntry(f, af)]
141+@Callable(ag)
142+func forfaitReadonly (n) = {
143+ let N = M(n)
144+ let ai = ac(N[0], N[1], N[2], N[3], N[4], N[5], N[6])
145+ $Tuple2(nil, ai)
146+ }
132147
133148
134149
135-@Callable(ac)
150+@Callable(ag)
151+func setParams (H,G,aj,ak,al) = if ((ag.caller != this))
152+ then throw("Not owner")
153+ else [StringEntry(h, al), IntegerEntry(j, G), IntegerEntry(i, H), IntegerEntry(l, aj), IntegerEntry(f, ak)]
154+
155+
156+
157+@Callable(ag)
136158 func deposit (E) = {
137- let ah = x(k, 43200)
138- let af = v(f)
139- let ai = v(g)
140- let ag = A(h)
141- let aj = ac.caller
142- let ak = toString(aj)
159+ let am = x(k, 43200)
160+ let ak = v(f)
161+ let an = v(g)
162+ let al = A(h)
163+ let ao = ag.caller
164+ let ap = toString(ao)
143165 let F = v(l)
144- let al = height
145- let am = (al + (ah * E))
146- let an = (("Invalid asset. " + ag) + " is expected")
166+ let aq = height
167+ let ar = (aq + (am * E))
168+ let as = (("Invalid asset. " + al) + " is expected")
147169 if (if ((1 > E))
148170 then true
149171 else (E > F))
150172 then throw("Wrong interval")
151- else if ((size(ac.payments) != 1))
173+ else if ((size(ag.payments) != 1))
152174 then throw("Invalid payments size")
153175 else {
154- let ao = ac.payments[0]
155- let R = ao.amount
156- let ap = valueOrErrorMessage(ao.assetId, an)
157- if ((toBase58String(ap) != ag))
158- then throw(an)
159- else if (((R + ai) > af))
176+ let at = ag.payments[0]
177+ let R = at.amount
178+ let au = valueOrErrorMessage(at.assetId, as)
179+ if ((toBase58String(au) != al))
180+ then throw(as)
181+ else if (((R + an) > ak))
160182 then throw("The max invest limit has been reached")
161183 else {
162- let ad = D(E, F)
163- let aq = M(ak)
164- let ar = W(aq[0], aq[1], aq[2], aq[3], aq[4], aq[5], aq[6])
165- let as = (R + aq[3])
166- let T = aq[4]
167- let S = aq[5]
168-[V(ak, al, am, al, as, ar, T, ad), IntegerEntry(g, (R + ai))]
184+ let ah = D(E, F)
185+ let av = M(ap)
186+ let aw = W(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
187+ let ax = (R + av[3])
188+ let T = av[4]
189+ let S = av[5]
190+[V(ap, aq, ar, aq, ax, aw, T, ah), IntegerEntry(g, (R + an))]
169191 }
170192 }
171193 }
172194
173195
174196
175-@Callable(ac)
197+@Callable(ag)
176198 func claim () = {
177- let ag = A(h)
178- let N = M(toString(ac.caller))
199+ let al = A(h)
200+ let N = M(toString(ag.caller))
179201 if ((7 > size(N)))
180202 then throw("User has't invest")
181203 else {
182204 let S = W(N[0], N[1], N[2], N[3], N[4], N[5], N[6])
183205 let T = (N[4] + S)
184206 let Q = height
185207 if ((S == 0))
186208 then throw("Nothing to claim")
187- else [ScriptTransfer(ac.caller, S, fromBase58String(ag)), V(toString(ac.caller), N[0], N[1], Q, N[3], 0, T, N[6])]
209+ else [ScriptTransfer(ag.caller, S, fromBase58String(al)), V(toString(ag.caller), N[0], N[1], Q, N[3], 0, T, N[6])]
188210 }
189211 }
190212
191213
192214
193-@Callable(ac)
194-func deleteAmount () = if ((ac.caller != this))
215+@Callable(ag)
216+func cancelInvest () = {
217+ let al = A(h)
218+ let av = M(toString(ag.caller))
219+ if ((7 > size(av)))
220+ then throw("User has't invest")
221+ else {
222+ let S = W(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
223+ let ay = ac(av[0], av[1], av[2], av[3], av[4], av[5], av[6])
224+ let R = av[3]
225+ let az = ((S + R) - ay)
226+[ScriptTransfer(ag.caller, S, fromBase58String(al)), V(toString(ag.caller), 0, 0, 0, 0, 0, 0, 0)]
227+ }
228+ }
229+
230+
231+
232+@Callable(ag)
233+func deleteAmount () = if ((ag.caller != this))
195234 then throw("Not owner")
196235 else [IntegerEntry(g, 0)]
197236
198237

github/deemru/w8io/026f985 
58.04 ms