tx · 7zzrFh5cKoUHAfqXUfWp7SWpdJYtwNJAFxwP2KPW2h4d 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2021.01.26 19:06 [1370689] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "7zzrFh5cKoUHAfqXUfWp7SWpdJYtwNJAFxwP2KPW2h4d", "fee": 1440000, "feeAssetId": null, "timestamp": 1611677178696, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "2eL8xbhQMjwvY6X6HVig9PwR7U5ePyH9f57KgYf12QfrjcbzEeLcCc2bb3tkuegxB5ab4jYXycKPJNYpMNWMvTsi" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAAAAAAAAgAAAAFpAQAAAApQdXNoUmV3YXJkAAAAAAQAAAALU3Rha2VkVG9rZW4BAAAAILXRKGG85gSnPN40vyincnte9/w4CJZnKBhuOOwELCGyBAAAAAtHb3Zlcm5Ub2tlbgEAAAAgEID4OLobvW7l4Eafs479e9fJOrvsYRoAST8NKMW+XbkEAAAADG1pblB1c2hCbG9jawAAAAAAAAAAAAQAAAANbWluU3Rha2VCbG9jawAAAAAAAAAAAAQAAAAORGVsYXlBZnRlclB1c2gAAAAAAAAAABQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwMJAABmAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAAAJAAAAAAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtHb3Zlcm5Ub2tlbgcEAAAACFVzZXJQdXNoCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAFX1B1c2gEAAAAEVVzZXJMYXN0UHVzaE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HRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkFAAAAFG5ld0Ftb3VudEdvdmVyblRva2VuCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyU3Rha2VkVG9rZW5LZXkFAAAAFG5ld0Ftb3VudFN0YWtlZFRva2VuCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABhVc2VyU3Rha2VUcmFuc2FjdGlvbnNLZXkFAAAAGE5ld1VzZXJTdGFrZVRyYW5zYWN0aW9ucwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAMU3Rha2VCYWxhbmNlBQAAABJTdGFrZUJhbGFuY2VBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAB0Z1bmRCb3gFAAAAC1ByaXplQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAtQcml6ZUhlaWdodAUAAAAQUHJpemVIZWlnaHRWYWx1ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHVXNlckFQWQUAAAAMVXNlckFQWVZhbHVlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyTGFzdFN0YWtlQmxvY2sFAAAABmhlaWdodAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGUmV3YXJkBQAAAAtHb3Zlcm5Ub2tlbgUAAAADbmlsCQAAAgAAAAECAAAAG0NhbiBkZXBvc2l0IG9ubHkgU3Rha2VUb2tlbgAAAADigkQ6", "height": 1370689, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CnoivzeQmyqoXwtiUiZNonyQJvidSdSYZ9WgP9WHoN4P Next: DiQUcG2MHE1a3jrT1MSrL7rjTq7jqPxErjzDhy9KBHE6 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | func PushReward () = { | |
8 | 8 | let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
9 | 9 | let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | - | let d = | |
11 | - | let e = | |
10 | + | let d = 0 | |
11 | + | let e = 0 | |
12 | 12 | let f = 20 | |
13 | 13 | let g = extract(a.payment) | |
14 | 14 | if (if ((g.amount > 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func PushReward () = { | |
8 | 8 | let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
9 | 9 | let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
10 | - | let d = | |
11 | - | let e = | |
10 | + | let d = 0 | |
11 | + | let e = 0 | |
12 | 12 | let f = 20 | |
13 | 13 | let g = extract(a.payment) | |
14 | 14 | if (if ((g.amount > 0)) | |
15 | 15 | then (g.assetId == c) | |
16 | 16 | else false) | |
17 | 17 | then { | |
18 | 18 | let h = (toBase58String(a.caller.bytes) + "_Push") | |
19 | 19 | let i = (toBase58String(a.caller.bytes) + "_UserLastPushBlock") | |
20 | 20 | let j = (toBase58String(a.caller.bytes) + "_UserLastStakeBlock") | |
21 | 21 | let k = (toBase58String(a.caller.bytes) + "_Staking") | |
22 | 22 | let l = assetBalance(this, b) | |
23 | 23 | let m = { | |
24 | 24 | let n = getInteger(this, "StakeBalance") | |
25 | 25 | if ($isInstanceOf(n, "Int")) | |
26 | 26 | then { | |
27 | 27 | let o = n | |
28 | 28 | o | |
29 | 29 | } | |
30 | 30 | else 0 | |
31 | 31 | } | |
32 | 32 | let p = (l - m) | |
33 | 33 | let q = { | |
34 | 34 | let n = getInteger(this, "PrizeHeight") | |
35 | 35 | if ($isInstanceOf(n, "Int")) | |
36 | 36 | then { | |
37 | 37 | let o = n | |
38 | 38 | o | |
39 | 39 | } | |
40 | 40 | else 0 | |
41 | 41 | } | |
42 | 42 | let r = if (if ((q == 0)) | |
43 | 43 | then (p == 0) | |
44 | 44 | else false) | |
45 | 45 | then 0 | |
46 | 46 | else if (if ((q == 0)) | |
47 | 47 | then (p != 0) | |
48 | 48 | else false) | |
49 | 49 | then height | |
50 | 50 | else if (if ((q != 0)) | |
51 | 51 | then (p != 0) | |
52 | 52 | else false) | |
53 | 53 | then q | |
54 | 54 | else 0 | |
55 | 55 | let s = { | |
56 | 56 | let n = getInteger(this, "HighestPush") | |
57 | 57 | if ($isInstanceOf(n, "Int")) | |
58 | 58 | then { | |
59 | 59 | let o = n | |
60 | 60 | o | |
61 | 61 | } | |
62 | 62 | else 0 | |
63 | 63 | } | |
64 | 64 | let t = { | |
65 | 65 | let n = getInteger(this, h) | |
66 | 66 | if ($isInstanceOf(n, "Int")) | |
67 | 67 | then { | |
68 | 68 | let o = n | |
69 | 69 | o | |
70 | 70 | } | |
71 | 71 | else 0 | |
72 | 72 | } | |
73 | 73 | let u = { | |
74 | 74 | let n = getInteger(this, "Delay") | |
75 | 75 | if ($isInstanceOf(n, "Int")) | |
76 | 76 | then { | |
77 | 77 | let o = n | |
78 | 78 | o | |
79 | 79 | } | |
80 | 80 | else 0 | |
81 | 81 | } | |
82 | 82 | let v = (u + f) | |
83 | 83 | let w = { | |
84 | 84 | let n = getInteger(this, "HighestPushAddress") | |
85 | 85 | if ($isInstanceOf(n, "Int")) | |
86 | 86 | then { | |
87 | 87 | let o = n | |
88 | 88 | o | |
89 | 89 | } | |
90 | 90 | else 0 | |
91 | 91 | } | |
92 | 92 | let x = { | |
93 | 93 | let n = getInteger(this, i) | |
94 | 94 | if ($isInstanceOf(n, "Int")) | |
95 | 95 | then { | |
96 | 96 | let o = n | |
97 | 97 | o | |
98 | 98 | } | |
99 | 99 | else 0 | |
100 | 100 | } | |
101 | 101 | let y = { | |
102 | 102 | let n = getInteger(this, j) | |
103 | 103 | if ($isInstanceOf(n, "Int")) | |
104 | 104 | then { | |
105 | 105 | let o = n | |
106 | 106 | o | |
107 | 107 | } | |
108 | 108 | else 0 | |
109 | 109 | } | |
110 | 110 | let z = { | |
111 | 111 | let n = getInteger(this, k) | |
112 | 112 | if ($isInstanceOf(n, "Int")) | |
113 | 113 | then { | |
114 | 114 | let o = n | |
115 | 115 | o | |
116 | 116 | } | |
117 | 117 | else 0 | |
118 | 118 | } | |
119 | 119 | let A = (g.amount + t) | |
120 | 120 | throw(((((((((((((((((((("UserPushvalue: " + toString(A)) + " height-UserLastStakeBlockValue: ") + toString(y)) + "__") + toString((height - y))) + " > ") + toString((1440 * e))) + " height-UserLastPushBlockValue ") + toString(x)) + "__") + toString((height - x))) + " > ") + toString(d)) + "UserPushvalue: ") + toString(A)) + " HighestPushValue ") + toString(s)) + " UserStakeValue: ") + toString(z))) | |
121 | 121 | } | |
122 | 122 | else throw("Can deposit only positive amounts of ASIMI Token") | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | ||
127 | 127 | @Callable(a) | |
128 | 128 | func Stake () = { | |
129 | 129 | let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
130 | 130 | let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
131 | 131 | let B = assetBalance(this, c) | |
132 | 132 | let C = (toBase58String(a.caller.bytes) + "_APY") | |
133 | 133 | let g = extract(a.payment) | |
134 | 134 | if (if ((g.amount > 0)) | |
135 | 135 | then (g.assetId == b) | |
136 | 136 | else false) | |
137 | 137 | then { | |
138 | 138 | let D = (toBase58String(a.caller.bytes) + "_Staking") | |
139 | 139 | let E = (toBase58String(a.caller.bytes) + "_Earnings") | |
140 | 140 | let j = (toBase58String(a.caller.bytes) + "_UserLastStakeBlock") | |
141 | 141 | let F = (toBase58String(a.caller.bytes) + "_StakedTransactions") | |
142 | 142 | let G = (toBase58String(a.caller.bytes) + "_PrizeHeight") | |
143 | 143 | let H = { | |
144 | 144 | let n = getInteger(this, F) | |
145 | 145 | if ($isInstanceOf(n, "Int")) | |
146 | 146 | then { | |
147 | 147 | let o = n | |
148 | 148 | o | |
149 | 149 | } | |
150 | 150 | else 0 | |
151 | 151 | } | |
152 | 152 | let I = (H + 1) | |
153 | 153 | let J = { | |
154 | 154 | let n = getInteger(this, D) | |
155 | 155 | if ($isInstanceOf(n, "Int")) | |
156 | 156 | then { | |
157 | 157 | let o = n | |
158 | 158 | o | |
159 | 159 | } | |
160 | 160 | else 0 | |
161 | 161 | } | |
162 | 162 | let K = (J + g.amount) | |
163 | 163 | let l = assetBalance(this, b) | |
164 | 164 | let m = { | |
165 | 165 | let n = getInteger(this, "StakeBalance") | |
166 | 166 | if ($isInstanceOf(n, "Int")) | |
167 | 167 | then { | |
168 | 168 | let o = n | |
169 | 169 | o | |
170 | 170 | } | |
171 | 171 | else 0 | |
172 | 172 | } | |
173 | 173 | let L = (m + g.amount) | |
174 | 174 | let p = (l - m) | |
175 | 175 | let M = { | |
176 | 176 | let n = getInteger(this, E) | |
177 | 177 | if ($isInstanceOf(n, "Int")) | |
178 | 178 | then { | |
179 | 179 | let o = n | |
180 | 180 | o | |
181 | 181 | } | |
182 | 182 | else 0 | |
183 | 183 | } | |
184 | 184 | let q = { | |
185 | 185 | let n = getInteger(this, "PrizeHeight") | |
186 | 186 | if ($isInstanceOf(n, "Int")) | |
187 | 187 | then { | |
188 | 188 | let o = n | |
189 | 189 | o | |
190 | 190 | } | |
191 | 191 | else 0 | |
192 | 192 | } | |
193 | 193 | let r = if (if ((q == 0)) | |
194 | 194 | then (p == 0) | |
195 | 195 | else false) | |
196 | 196 | then 0 | |
197 | 197 | else if (if ((q == 0)) | |
198 | 198 | then (p != 0) | |
199 | 199 | else false) | |
200 | 200 | then height | |
201 | 201 | else if (if ((q != 0)) | |
202 | 202 | then (p != 0) | |
203 | 203 | else false) | |
204 | 204 | then q | |
205 | 205 | else 0 | |
206 | 206 | if ((100000000 > B)) | |
207 | 207 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
208 | 208 | else { | |
209 | 209 | let N = if ((m == 0)) | |
210 | 210 | then 10000 | |
211 | 211 | else if ((I > 10)) | |
212 | 212 | then ((10000 * I) * (1 + (K / m))) | |
213 | 213 | else (10000 * (1 + (K / m))) | |
214 | 214 | let O = if ((M > 0)) | |
215 | 215 | then ((100 * N) / M) | |
216 | 216 | else 0 | |
217 | 217 | let P = (M + N) | |
218 | 218 | ScriptResult(WriteSet([DataEntry(E, P), DataEntry(D, K), DataEntry(F, I), DataEntry("StakeBalance", L), DataEntry("FundBox", p), DataEntry("PrizeHeight", r), DataEntry(C, O), DataEntry(j, height)]), TransferSet([ScriptTransfer(a.caller, N, c)])) | |
219 | 219 | } | |
220 | 220 | } | |
221 | 221 | else throw("Can deposit only StakeToken") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 |
github/deemru/w8io/169f3d6 59.62 ms ◑