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+XbkEAAAADG1pblB1c2hCbG9jawAAAAAAAAAAAAQAAAANbWluU3Rha2VCbG9jawAAAAAAAAAAAAQAAAAORGVsYXlBZnRlclB1c2gAAAAAAAAAABQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwMJAABmAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAAAJAAAAAAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtHb3Zlcm5Ub2tlbgcEAAAACFVzZXJQdXNoCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwIAAAAFX1B1c2gEAAAAEVVzZXJMYXN0UHVza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cHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkFAAAAFG5ld0Ftb3VudEdvdmVyblRva2VuCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyU3Rha2VkVG9rZW5LZXkFAAAAFG5ld0Ftb3VudFN0YWtlZFRva2VuCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABhVc2VyU3Rha2VUcmFuc2FjdGlvbnNLZXkFAAAAGE5ld1VzZXJTdGFrZVRyYW5zYWN0aW9ucwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAMU3Rha2VCYWxhbmNlBQAAABJTdGFrZUJhbGFuY2VBbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAB0Z1bmRCb3gFAAAAC1ByaXplQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAtQcml6ZUhlaWdodAUAAAAQUHJpemVIZWlnaHRWYWx1ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHVXNlckFQWQUAAAAMVXNlckFQWVZhbHVlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyTGFzdFN0YWtlQmxvY2sFAAAABmhlaWdodAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAGUmV3YXJkBQAAAAtHb3Zlcm5Ub2tlbgUAAAADbmlsCQAAAgAAAAECAAAAG0NhbiBkZXBvc2l0IG9ubHkgU3Rha2VUb2tlbgAAAADigkQ6", "height": 1370689, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CnoivzeQmyqoXwtiUiZNonyQJvidSdSYZ9WgP9WHoN4P Next: DiQUcG2MHE1a3jrT1MSrL7rjTq7jqPxErjzDhy9KBHE6 Diff:
OldNewDifferences
77 func PushReward () = {
88 let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
99 let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
10- let d = 10
11- let e = 1
10+ let d = 0
11+ let e = 0
1212 let f = 20
1313 let g = extract(a.payment)
1414 if (if ((g.amount > 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func PushReward () = {
88 let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
99 let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
10- let d = 10
11- let e = 1
10+ let d = 0
11+ let e = 0
1212 let f = 20
1313 let g = extract(a.payment)
1414 if (if ((g.amount > 0))
1515 then (g.assetId == c)
1616 else false)
1717 then {
1818 let h = (toBase58String(a.caller.bytes) + "_Push")
1919 let i = (toBase58String(a.caller.bytes) + "_UserLastPushBlock")
2020 let j = (toBase58String(a.caller.bytes) + "_UserLastStakeBlock")
2121 let k = (toBase58String(a.caller.bytes) + "_Staking")
2222 let l = assetBalance(this, b)
2323 let m = {
2424 let n = getInteger(this, "StakeBalance")
2525 if ($isInstanceOf(n, "Int"))
2626 then {
2727 let o = n
2828 o
2929 }
3030 else 0
3131 }
3232 let p = (l - m)
3333 let q = {
3434 let n = getInteger(this, "PrizeHeight")
3535 if ($isInstanceOf(n, "Int"))
3636 then {
3737 let o = n
3838 o
3939 }
4040 else 0
4141 }
4242 let r = if (if ((q == 0))
4343 then (p == 0)
4444 else false)
4545 then 0
4646 else if (if ((q == 0))
4747 then (p != 0)
4848 else false)
4949 then height
5050 else if (if ((q != 0))
5151 then (p != 0)
5252 else false)
5353 then q
5454 else 0
5555 let s = {
5656 let n = getInteger(this, "HighestPush")
5757 if ($isInstanceOf(n, "Int"))
5858 then {
5959 let o = n
6060 o
6161 }
6262 else 0
6363 }
6464 let t = {
6565 let n = getInteger(this, h)
6666 if ($isInstanceOf(n, "Int"))
6767 then {
6868 let o = n
6969 o
7070 }
7171 else 0
7272 }
7373 let u = {
7474 let n = getInteger(this, "Delay")
7575 if ($isInstanceOf(n, "Int"))
7676 then {
7777 let o = n
7878 o
7979 }
8080 else 0
8181 }
8282 let v = (u + f)
8383 let w = {
8484 let n = getInteger(this, "HighestPushAddress")
8585 if ($isInstanceOf(n, "Int"))
8686 then {
8787 let o = n
8888 o
8989 }
9090 else 0
9191 }
9292 let x = {
9393 let n = getInteger(this, i)
9494 if ($isInstanceOf(n, "Int"))
9595 then {
9696 let o = n
9797 o
9898 }
9999 else 0
100100 }
101101 let y = {
102102 let n = getInteger(this, j)
103103 if ($isInstanceOf(n, "Int"))
104104 then {
105105 let o = n
106106 o
107107 }
108108 else 0
109109 }
110110 let z = {
111111 let n = getInteger(this, k)
112112 if ($isInstanceOf(n, "Int"))
113113 then {
114114 let o = n
115115 o
116116 }
117117 else 0
118118 }
119119 let A = (g.amount + t)
120120 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)))
121121 }
122122 else throw("Can deposit only positive amounts of ASIMI Token")
123123 }
124124
125125
126126
127127 @Callable(a)
128128 func Stake () = {
129129 let b = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21'
130130 let c = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA'
131131 let B = assetBalance(this, c)
132132 let C = (toBase58String(a.caller.bytes) + "_APY")
133133 let g = extract(a.payment)
134134 if (if ((g.amount > 0))
135135 then (g.assetId == b)
136136 else false)
137137 then {
138138 let D = (toBase58String(a.caller.bytes) + "_Staking")
139139 let E = (toBase58String(a.caller.bytes) + "_Earnings")
140140 let j = (toBase58String(a.caller.bytes) + "_UserLastStakeBlock")
141141 let F = (toBase58String(a.caller.bytes) + "_StakedTransactions")
142142 let G = (toBase58String(a.caller.bytes) + "_PrizeHeight")
143143 let H = {
144144 let n = getInteger(this, F)
145145 if ($isInstanceOf(n, "Int"))
146146 then {
147147 let o = n
148148 o
149149 }
150150 else 0
151151 }
152152 let I = (H + 1)
153153 let J = {
154154 let n = getInteger(this, D)
155155 if ($isInstanceOf(n, "Int"))
156156 then {
157157 let o = n
158158 o
159159 }
160160 else 0
161161 }
162162 let K = (J + g.amount)
163163 let l = assetBalance(this, b)
164164 let m = {
165165 let n = getInteger(this, "StakeBalance")
166166 if ($isInstanceOf(n, "Int"))
167167 then {
168168 let o = n
169169 o
170170 }
171171 else 0
172172 }
173173 let L = (m + g.amount)
174174 let p = (l - m)
175175 let M = {
176176 let n = getInteger(this, E)
177177 if ($isInstanceOf(n, "Int"))
178178 then {
179179 let o = n
180180 o
181181 }
182182 else 0
183183 }
184184 let q = {
185185 let n = getInteger(this, "PrizeHeight")
186186 if ($isInstanceOf(n, "Int"))
187187 then {
188188 let o = n
189189 o
190190 }
191191 else 0
192192 }
193193 let r = if (if ((q == 0))
194194 then (p == 0)
195195 else false)
196196 then 0
197197 else if (if ((q == 0))
198198 then (p != 0)
199199 else false)
200200 then height
201201 else if (if ((q != 0))
202202 then (p != 0)
203203 else false)
204204 then q
205205 else 0
206206 if ((100000000 > B))
207207 then throw("No enough GovernToken In Contract, Please deposit GovernTokens")
208208 else {
209209 let N = if ((m == 0))
210210 then 10000
211211 else if ((I > 10))
212212 then ((10000 * I) * (1 + (K / m)))
213213 else (10000 * (1 + (K / m)))
214214 let O = if ((M > 0))
215215 then ((100 * N) / M)
216216 else 0
217217 let P = (M + N)
218218 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)]))
219219 }
220220 }
221221 else throw("Can deposit only StakeToken")
222222 }
223223
224224

github/deemru/w8io/169f3d6 
59.62 ms