tx · FCiBsZ8dsmk2EiddqMAuS98FM3d7vpmAD9SSCva8EyD1 3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg: -0.01400000 Waves 2020.12.12 18:15 [1305612] smart account 3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg > SELF 0.00000000 Waves
{ "type": 13, "id": "FCiBsZ8dsmk2EiddqMAuS98FM3d7vpmAD9SSCva8EyD1", "fee": 1400000, "feeAssetId": null, "timestamp": 1607786141215, "version": 1, "sender": "3MvenppyAqkqbJvpemDnU6P5dvSJ9fvRxRg", "senderPublicKey": "38RJPSAs2g6F7P5zT5FJ6BAc1DyReFGja2vkw8rSz3ga", "proofs": [ "4EurN5wJCUhTTHqHUHCvx9xXhHRFS6ojPLPY2pMbjSMVZ6ucbmTryzQ4uGWhLxiBUDuSqVAH2VUL185CHtSaLW1K" ], "script": "base64:AAIEAAAAAAAAABkIAhIAEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAHAAAAAAMYWRtaW5QdWJLZXkxAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkyAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkzAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABJhZG1pblB1YktleVN0YWtpbmcBAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAEGtleUN1cnJlbnRSZXdhcmQCAAAAD19jdXJyZW50X3Jld2FyZAAAAAAVa2V5UmV3YXJkVXBkYXRlSGVpZ2h0AgAAABVfcmV3YXJkX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QAAAALY2xhaW1BbW91bnQIBQAAAAskdDA4ODY5OTI3NQAAAAJfMwQAAAAVdXNlclNoYXJlVG9rZW5zQW1vdW50CAUAAAALJHQwODg2OTkyNzUAAAACXzQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABNrZXlVc2VyTGFzdEludGVyZXN0BQAAAA91c2VyTmV3SW50ZXJlc3QJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfBQAAAA9rZXlMYXN0SW50ZXJlc3QFAAAAD2N1cnJlbnRJbnRlcmVzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8FAAAAFWtleUxhc3RJbnRlcmVzdEhlaWdodAUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAdSZWlzc3VlAAAAAwUAAAAEU1dPUAUAAAALY2xhaW1BbW91bnQGCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALY2xhaW1BbW91bnQFAAAABFNXT1AFAAAAA25pbAAAAABR8rJA", "chainId": 84, "height": 1305612, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4EPhCxKFNd8qQcN9AvNFvwKetpDasBwoE3S9VJGe1yc4 Next: 89Z34oM5WLJYf1gZGtgsh7UAd8zFdd7A344bsUBPpptK Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | func u () = throw("DApp is already active") | |
46 | 46 | ||
47 | 47 | ||
48 | - | func v (w) = valueOrErrorMessage(getInteger(this, (w + f)), (("No data on the key: " + w) + f)) | |
48 | + | func v (w) = if (true) | |
49 | + | then throw((w + f)) | |
50 | + | else valueOrErrorMessage(getInteger(this, (w + f)), (("No data on the key: " + w) + f)) | |
49 | 51 | ||
50 | 52 | ||
51 | 53 | func x (w) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
5 | 5 | ||
6 | 6 | let b = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
7 | 7 | ||
8 | 8 | let c = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
9 | 9 | ||
10 | 10 | let d = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
11 | 11 | ||
12 | 12 | let e = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU' | |
13 | 13 | ||
14 | 14 | let f = "_total_share_tokens_locked" | |
15 | 15 | ||
16 | 16 | let g = "_current_reward" | |
17 | 17 | ||
18 | 18 | let h = "_reward_update_height" | |
19 | 19 | ||
20 | 20 | let i = "_previous_reward" | |
21 | 21 | ||
22 | 22 | let j = "_last_interest" | |
23 | 23 | ||
24 | 24 | let k = "_last_interest_height" | |
25 | 25 | ||
26 | 26 | let l = "_share_tokens_locked" | |
27 | 27 | ||
28 | 28 | let m = "_last_interest" | |
29 | 29 | ||
30 | 30 | let n = "SWOP_id" | |
31 | 31 | ||
32 | 32 | let o = "_address" | |
33 | 33 | ||
34 | 34 | let p = Address(base58'3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E') | |
35 | 35 | ||
36 | 36 | let q = fromBase58String(getStringValue(this, n)) | |
37 | 37 | ||
38 | 38 | let r = 100000000 | |
39 | 39 | ||
40 | 40 | let s = getIntegerValue(this, "height_reward_update") | |
41 | 41 | ||
42 | 42 | func t () = throw("Only admin can call this function") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func u () = throw("DApp is already active") | |
46 | 46 | ||
47 | 47 | ||
48 | - | func v (w) = valueOrErrorMessage(getInteger(this, (w + f)), (("No data on the key: " + w) + f)) | |
48 | + | func v (w) = if (true) | |
49 | + | then throw((w + f)) | |
50 | + | else valueOrErrorMessage(getInteger(this, (w + f)), (("No data on the key: " + w) + f)) | |
49 | 51 | ||
50 | 52 | ||
51 | 53 | func x (w) = { | |
52 | 54 | let y = valueOrErrorMessage(getInteger(p, (w + g)), (((("No data on the key: " + w) + g) + " at address ") + toString(p))) | |
53 | 55 | let z = valueOrErrorMessage(getInteger(p, (w + h)), (((("No data on the key: " + w) + h) + " at address ") + toString(p))) | |
54 | 56 | let A = valueOrErrorMessage(getInteger(p, (w + h)), (((("No data on the key: " + w) + i) + " at address ") + toString(p))) | |
55 | 57 | $Tuple3(y, z, A) | |
56 | 58 | } | |
57 | 59 | ||
58 | 60 | ||
59 | 61 | func B (w) = { | |
60 | 62 | let C = valueOrErrorMessage(getInteger(this, (w + j)), (((("No data on the key: " + w) + "_") + w) + j)) | |
61 | 63 | let D = valueOrErrorMessage(getInteger(this, (w + k)), (("No data on the key: " + w) + k)) | |
62 | 64 | $Tuple2(D, C) | |
63 | 65 | } | |
64 | 66 | ||
65 | 67 | ||
66 | 68 | func E (w,F) = { | |
67 | 69 | let G = getInteger(this, (((w + "_") + toString(F)) + m)) | |
68 | 70 | let H = getInteger(this, (((w + "_") + toString(F)) + l)) | |
69 | 71 | let I = { | |
70 | 72 | let J = G | |
71 | 73 | if ($isInstanceOf(J, "Int")) | |
72 | 74 | then { | |
73 | 75 | let G = J | |
74 | 76 | G | |
75 | 77 | } | |
76 | 78 | else 0 | |
77 | 79 | } | |
78 | 80 | let K = { | |
79 | 81 | let J = H | |
80 | 82 | if ($isInstanceOf(J, "Int")) | |
81 | 83 | then { | |
82 | 84 | let H = J | |
83 | 85 | H | |
84 | 86 | } | |
85 | 87 | else 0 | |
86 | 88 | } | |
87 | 89 | $Tuple2(I, K) | |
88 | 90 | } | |
89 | 91 | ||
90 | 92 | ||
91 | 93 | func L (D,z,C,M,N,O) = if ((D > z)) | |
92 | 94 | then if ((N == 0)) | |
93 | 95 | then 0 | |
94 | 96 | else { | |
95 | 97 | let P = (M * (height - D)) | |
96 | 98 | ((C * r) + fraction(P, r, N)) | |
97 | 99 | } | |
98 | 100 | else { | |
99 | 101 | let Q = (O * (z - D)) | |
100 | 102 | let R = ((C * r) + fraction(Q, r, N)) | |
101 | 103 | let P = (M * (height - z)) | |
102 | 104 | ((R * r) + fraction(P, r, N)) | |
103 | 105 | } | |
104 | 106 | ||
105 | 107 | ||
106 | 108 | func S (w,T) = { | |
107 | 109 | let N = v(w) | |
108 | 110 | if (true) | |
109 | 111 | then throw(toString(N)) | |
110 | 112 | else { | |
111 | 113 | let U = B(w) | |
112 | 114 | let D = U._1 | |
113 | 115 | let C = U._2 | |
114 | 116 | let V = x(w) | |
115 | 117 | let M = V._1 | |
116 | 118 | let z = V._2 | |
117 | 119 | let O = V._3 | |
118 | 120 | let W = E(w, T) | |
119 | 121 | let G = W._1 | |
120 | 122 | let K = W._2 | |
121 | 123 | let X = L(D, z, C, M, N, O) | |
122 | 124 | let Y = fraction(K, (X - (G * r)), r) | |
123 | 125 | let Z = X | |
124 | 126 | $Tuple4(Z, X, Y, K) | |
125 | 127 | } | |
126 | 128 | } | |
127 | 129 | ||
128 | 130 | ||
129 | 131 | func aa (w,ab) = { | |
130 | 132 | let ac = value(addressFromString(getStringValue(this, (w + o)))) | |
131 | 133 | let ad = fromBase58String(getStringValue(ac, "share_asset_id")) | |
132 | 134 | if ((ab == ad)) | |
133 | 135 | then true | |
134 | 136 | else false | |
135 | 137 | } | |
136 | 138 | ||
137 | 139 | ||
138 | 140 | @Callable(ae) | |
139 | 141 | func init () = if (!(containsElement([a, b, c], ae.callerPublicKey))) | |
140 | 142 | then throw("Only admin can call this function") | |
141 | 143 | else { | |
142 | 144 | let af = Issue("SWOP", "SWOP protocol token", 1, 8, true) | |
143 | 145 | let ag = calculateAssetId(af) | |
144 | 146 | [Issue("SWOP", "SWOP protocol token", 1, 8, true), StringEntry(n, toBase58String(ag))] | |
145 | 147 | } | |
146 | 148 | ||
147 | 149 | ||
148 | 150 | ||
149 | 151 | @Callable(ae) | |
150 | 152 | func initPoolShareLocking (w) = if (!(containsElement([a, b, c], ae.callerPublicKey))) | |
151 | 153 | then throw("Only admin can call this function") | |
152 | 154 | else { | |
153 | 155 | let ah = x(w) | |
154 | 156 | let y = ah._1 | |
155 | 157 | let z = ah._2 | |
156 | 158 | let O = ah._3 | |
157 | 159 | [StringEntry((w + o), w), IntegerEntry((w + f), 0), IntegerEntry((w + g), 0), IntegerEntry((w + j), 0), IntegerEntry((w + k), height), IntegerEntry((w + h), z), IntegerEntry((w + i), O)] | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | ||
161 | 163 | ||
162 | 164 | @Callable(ae) | |
163 | 165 | func lockShareTokens (w) = { | |
164 | 166 | let ai = $Tuple2(ae.payments[0].amount, ae.payments[0].assetId) | |
165 | 167 | let aj = ai._1 | |
166 | 168 | let ab = ai._2 | |
167 | 169 | if (!(aa(w, ab))) | |
168 | 170 | then throw("Incorrect pmtAssetId") | |
169 | 171 | else { | |
170 | 172 | let ak = S(w, ae.caller) | |
171 | 173 | let Z = ak._1 | |
172 | 174 | let X = ak._2 | |
173 | 175 | let Y = ak._3 | |
174 | 176 | let K = ak._4 | |
175 | 177 | let al = (K + aj) | |
176 | 178 | [IntegerEntry((((w + "_") + toString(ae.caller)) + m), Z), IntegerEntry((((w + "_") + toString(ae.caller)) + l), al), IntegerEntry((w + j), X), IntegerEntry((w + k), height), Reissue(q, Y, true), ScriptTransfer(ae.caller, Y, q)] | |
177 | 179 | } | |
178 | 180 | } | |
179 | 181 | ||
180 | 182 | ||
181 | 183 | ||
182 | 184 | @Callable(ae) | |
183 | 185 | func withdrawShareTokens (w,am) = { | |
184 | 186 | let an = S(w, ae.caller) | |
185 | 187 | let Z = an._1 | |
186 | 188 | let X = an._2 | |
187 | 189 | let Y = an._3 | |
188 | 190 | let K = an._4 | |
189 | 191 | if ((am > K)) | |
190 | 192 | then throw("Withdraw amount more then user locked amount") | |
191 | 193 | else { | |
192 | 194 | let al = (K - am) | |
193 | 195 | let ao = fromBase58String(getStringValue(this, (w + "share_asset_id"))) | |
194 | 196 | [IntegerEntry((((w + "_") + toString(ae.caller)) + m), Z), IntegerEntry((((w + "_") + toString(ae.caller)) + l), al), IntegerEntry((w + j), X), IntegerEntry((w + k), height), Reissue(q, Y, true), ScriptTransfer(ae.caller, Y, q), ScriptTransfer(ae.caller, am, ao)] | |
195 | 197 | } | |
196 | 198 | } | |
197 | 199 | ||
198 | 200 | ||
199 | 201 | ||
200 | 202 | @Callable(ae) | |
201 | 203 | func claim (w) = { | |
202 | 204 | let N = v(w) | |
203 | 205 | let ap = B(w) | |
204 | 206 | let D = ap._1 | |
205 | 207 | let C = ap._2 | |
206 | 208 | let aq = x(w) | |
207 | 209 | let M = aq._1 | |
208 | 210 | let z = aq._2 | |
209 | 211 | let O = aq._3 | |
210 | 212 | let ar = S(w, ae.caller) | |
211 | 213 | let Z = ar._1 | |
212 | 214 | let X = ar._2 | |
213 | 215 | let Y = ar._3 | |
214 | 216 | let K = ar._4 | |
215 | 217 | [IntegerEntry((((w + "_") + toString(ae.caller)) + m), Z), IntegerEntry(((w + "_") + j), X), IntegerEntry(((w + "_") + k), height), Reissue(q, Y, true), ScriptTransfer(ae.caller, Y, q)] | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 |
github/deemru/w8io/169f3d6 58.07 ms ◑