tx · CszdeK3gpqyjG8yPyXEqmyVPehoKX71WYW4U2cH6TACZ

3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL:  -0.02950000 Waves

2020.10.21 20:44 [1230643] smart account 3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL > SELF 0.00000000 Waves

{ "type": 13, "id": "CszdeK3gpqyjG8yPyXEqmyVPehoKX71WYW4U2cH6TACZ", "fee": 2950000, "feeAssetId": null, "timestamp": 1603302270348, "version": 2, "chainId": 84, "sender": "3N7Ceyu23j5bYLLkou2xqucWC8f5Ma5b3WL", "senderPublicKey": "4sCkx8qKE5wmxM8E1kfvNPCWnrTM2A6TTPYUQTsAWwwm", "proofs": [ "4w2Wp4JZx5DcmPX8TzfKkmJkKhqCJQuyCckxfpgbigtzMtN2Yvt5GiwrYohCaotoDdrSehQ2RCoLU7E3Kijnk3SH" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZj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AAgUAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAB3WcfJ", "height": 1230643, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AiiCjVVhxTPWeaFni2vikifJWYqn58TrFcYv4ihJ6eby Next: 4eMRwHbjyh5ZHewbDeKoApifNMSmN6VKXnKqG6fUMQH7 Diff:
OldNewDifferences
2222 else 0
2323 }
2424 let l = getStringValue(this, g)
25- let m = {
26- let j = getInteger(this, l)
27- if ($isInstanceOf(j, "Int"))
28- then {
29- let k = j
30- k
31- }
32- else 0
33- }
34- let n = getStringValue(this, f)
25+ let m = getStringValue(this, f)
3526 throw(((("Winner is.....: " + h) + " Balance is: ") + toString(i)))
3627 }
3728
4031 @Callable(a)
4132 func payYield () = {
4233 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
43- let o = toBase58String(a.caller.bytes)
44- let p = {
45- let j = getInteger(this, o)
34+ let n = toBase58String(a.caller.bytes)
35+ let o = {
36+ let j = getInteger(this, n)
4637 if ($isInstanceOf(j, "Int"))
4738 then {
4839 let k = j
5041 }
5142 else 0
5243 }
53- if ((p > 0))
44+ if ((o > 0))
5445 then {
55- let q = assetBalance(this, e)
56- if ((1 > q))
46+ let p = assetBalance(this, e)
47+ if ((1 > p))
5748 then throw("No enough GovernToken In Contract")
58- else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
49+ else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
5950 }
6051 else throw("You need to deposit Collateral Token to receive Govern Token")
6152 }
6657 func Stake () = {
6758 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
6859 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
69- let r = extract(a.payment)
70- if (if (isDefined(r.assetId))
71- then (extract(r.assetId) == d)
60+ let q = extract(a.payment)
61+ if (if (isDefined(q.assetId))
62+ then (extract(q.assetId) == d)
7263 else false)
7364 then {
7465 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7566 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
76- let p = {
67+ let o = {
7768 let j = getInteger(this, f)
7869 if ($isInstanceOf(j, "Int"))
7970 then {
8273 }
8374 else 0
8475 }
85- let s = (p + r.amount)
86- let t = assetBalance(this, e)
87- if ((1 > t))
76+ let r = (o + q.amount)
77+ let s = assetBalance(this, e)
78+ if ((1 > s))
8879 then throw("No enough GovernToken In Contract")
89- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
80+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
9081 }
9182 else throw("Can deposit only StakeToken")
9283 }
9687 @Callable(a)
9788 func DepositGovernToken () = {
9889 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
99- let u = toBase58String(e)
100- let r = extract(a.payment)
101- if (if (isDefined(r.assetId))
102- then (extract(r.assetId) == e)
90+ let t = toBase58String(e)
91+ let q = extract(a.payment)
92+ if (if (isDefined(q.assetId))
93+ then (extract(q.assetId) == e)
10394 else false)
10495 then {
105- let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106- let p = {
107- let j = getInteger(this, o)
96+ let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
97+ let o = {
98+ let j = getInteger(this, n)
10899 if ($isInstanceOf(j, "Int"))
109100 then {
110101 let k = j
112103 }
113104 else 0
114105 }
115- let v = (p + r.amount)
106+ let u = (o + q.amount)
116107 let b = "GovernTokenMaxDeposit"
117108 let c = "MaxGovernTokenDepositerKey"
118109 let i = {
124115 }
125116 else 0
126117 }
127- if ((v > i))
128- then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
129- else WriteSet([DataEntry(o, v)])
118+ if ((u > i))
119+ then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
120+ else WriteSet([DataEntry(n, u)])
130121 }
131122 else throw("Can deposit only Govern Token")
132123 }
134125
135126
136127 @Callable(a)
137-func WithdrawStakedFunds (w) = {
138- let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
128+func WithdrawStakedFunds (v) = {
129+ let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
139130 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
140- let o = toBase58String(a.caller.bytes)
141- let p = {
142- let j = getInteger(this, o)
131+ let n = toBase58String(a.caller.bytes)
132+ let o = {
133+ let j = getInteger(this, n)
143134 if ($isInstanceOf(j, "Int"))
144135 then {
145136 let k = j
147138 }
148139 else 0
149140 }
150- let s = (p - w)
151- if ((0 > w))
141+ let r = (o - v)
142+ if ((0 > v))
152143 then throw("Can't withdraw negative amount")
153- else if ((0 > s))
144+ else if ((0 > r))
154145 then throw("User cannot withdraw more than deposited funds")
155146 else {
156- let q = assetBalance(this, e)
157- if ((1 > q))
147+ let p = assetBalance(this, e)
148+ if ((1 > p))
158149 then throw("No enough GovernToken In Contract")
159- else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
150+ else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
160151 }
161152 }
162153
166157 func ClaimPrize () = {
167158 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
168159 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
169- let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
160+ let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
170161 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
171162 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
172- let z = ((toBase58String(y) + "_") + toBase58String(d))
173- let A = {
163+ let y = ((toBase58String(x) + "_") + toBase58String(d))
164+ let z = {
174165 let j = getInteger(this, g)
175166 if ($isInstanceOf(j, "Int"))
176167 then {
179170 }
180171 else 0
181172 }
182- let B = {
173+ let A = {
183174 let j = getInteger(this, f)
184175 if ($isInstanceOf(j, "Int"))
185176 then {
188179 }
189180 else 0
190181 }
191- let C = {
192- let j = getInteger(this, z)
182+ let B = {
183+ let j = getInteger(this, y)
193184 if ($isInstanceOf(j, "Int"))
194185 then {
195186 let k = j
199190 }
200191 let b = "GovernTokenMaxDeposit"
201192 let c = "MaxGovernTokenDepositerKey"
202- let D = getStringValue(this, c)
203- if ((C == 0))
193+ let C = getStringValue(this, c)
194+ if ((B == 0))
204195 then throw("No prize to Claim")
205- else if ((g != D))
196+ else if ((g != C))
206197 then throw("You are not the winner hence cannot claim the reward ")
207- else if ((1 > B))
198+ else if ((1 > A))
208199 then throw(("You have to Stake StakedToken to claim reward
209- Your Balance of Staked Tokens is: " + toString(B)))
210- else if ((A > 100))
211- then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
200+ Your Balance of Staked Tokens is: " + toString(A)))
201+ else if ((z > 100))
202+ then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
212203 else throw(("You have to deposit 100 GovernToken to claim Reward
213- Your Balance is: " + toString(A)))
204+ Your Balance is: " + toString(z)))
214205 }
215206
216207
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func ReadMaxGovernDeposit () = {
88 let b = "GovernTokenMaxDeposit"
99 let c = "MaxGovernTokenDepositerKey"
1010 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
1111 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
1212 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
1313 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
1414 let h = getStringValue(this, c)
1515 let i = {
1616 let j = getInteger(this, b)
1717 if ($isInstanceOf(j, "Int"))
1818 then {
1919 let k = j
2020 k
2121 }
2222 else 0
2323 }
2424 let l = getStringValue(this, g)
25- let m = {
26- let j = getInteger(this, l)
27- if ($isInstanceOf(j, "Int"))
28- then {
29- let k = j
30- k
31- }
32- else 0
33- }
34- let n = getStringValue(this, f)
25+ let m = getStringValue(this, f)
3526 throw(((("Winner is.....: " + h) + " Balance is: ") + toString(i)))
3627 }
3728
3829
3930
4031 @Callable(a)
4132 func payYield () = {
4233 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
43- let o = toBase58String(a.caller.bytes)
44- let p = {
45- let j = getInteger(this, o)
34+ let n = toBase58String(a.caller.bytes)
35+ let o = {
36+ let j = getInteger(this, n)
4637 if ($isInstanceOf(j, "Int"))
4738 then {
4839 let k = j
4940 k
5041 }
5142 else 0
5243 }
53- if ((p > 0))
44+ if ((o > 0))
5445 then {
55- let q = assetBalance(this, e)
56- if ((1 > q))
46+ let p = assetBalance(this, e)
47+ if ((1 > p))
5748 then throw("No enough GovernToken In Contract")
58- else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
49+ else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
5950 }
6051 else throw("You need to deposit Collateral Token to receive Govern Token")
6152 }
6253
6354
6455
6556 @Callable(a)
6657 func Stake () = {
6758 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
6859 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
69- let r = extract(a.payment)
70- if (if (isDefined(r.assetId))
71- then (extract(r.assetId) == d)
60+ let q = extract(a.payment)
61+ if (if (isDefined(q.assetId))
62+ then (extract(q.assetId) == d)
7263 else false)
7364 then {
7465 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
7566 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
76- let p = {
67+ let o = {
7768 let j = getInteger(this, f)
7869 if ($isInstanceOf(j, "Int"))
7970 then {
8071 let k = j
8172 k
8273 }
8374 else 0
8475 }
85- let s = (p + r.amount)
86- let t = assetBalance(this, e)
87- if ((1 > t))
76+ let r = (o + q.amount)
77+ let s = assetBalance(this, e)
78+ if ((1 > s))
8879 then throw("No enough GovernToken In Contract")
89- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
80+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
9081 }
9182 else throw("Can deposit only StakeToken")
9283 }
9384
9485
9586
9687 @Callable(a)
9788 func DepositGovernToken () = {
9889 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
99- let u = toBase58String(e)
100- let r = extract(a.payment)
101- if (if (isDefined(r.assetId))
102- then (extract(r.assetId) == e)
90+ let t = toBase58String(e)
91+ let q = extract(a.payment)
92+ if (if (isDefined(q.assetId))
93+ then (extract(q.assetId) == e)
10394 else false)
10495 then {
105- let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106- let p = {
107- let j = getInteger(this, o)
96+ let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
97+ let o = {
98+ let j = getInteger(this, n)
10899 if ($isInstanceOf(j, "Int"))
109100 then {
110101 let k = j
111102 k
112103 }
113104 else 0
114105 }
115- let v = (p + r.amount)
106+ let u = (o + q.amount)
116107 let b = "GovernTokenMaxDeposit"
117108 let c = "MaxGovernTokenDepositerKey"
118109 let i = {
119110 let j = getInteger(this, b)
120111 if ($isInstanceOf(j, "Int"))
121112 then {
122113 let k = j
123114 k
124115 }
125116 else 0
126117 }
127- if ((v > i))
128- then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)])
129- else WriteSet([DataEntry(o, v)])
118+ if ((u > i))
119+ then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
120+ else WriteSet([DataEntry(n, u)])
130121 }
131122 else throw("Can deposit only Govern Token")
132123 }
133124
134125
135126
136127 @Callable(a)
137-func WithdrawStakedFunds (w) = {
138- let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
128+func WithdrawStakedFunds (v) = {
129+ let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
139130 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
140- let o = toBase58String(a.caller.bytes)
141- let p = {
142- let j = getInteger(this, o)
131+ let n = toBase58String(a.caller.bytes)
132+ let o = {
133+ let j = getInteger(this, n)
143134 if ($isInstanceOf(j, "Int"))
144135 then {
145136 let k = j
146137 k
147138 }
148139 else 0
149140 }
150- let s = (p - w)
151- if ((0 > w))
141+ let r = (o - v)
142+ if ((0 > v))
152143 then throw("Can't withdraw negative amount")
153- else if ((0 > s))
144+ else if ((0 > r))
154145 then throw("User cannot withdraw more than deposited funds")
155146 else {
156- let q = assetBalance(this, e)
157- if ((1 > q))
147+ let p = assetBalance(this, e)
148+ if ((1 > p))
158149 then throw("No enough GovernToken In Contract")
159- else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)]))
150+ else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
160151 }
161152 }
162153
163154
164155
165156 @Callable(a)
166157 func ClaimPrize () = {
167158 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
168159 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
169- let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
160+ let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
170161 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
171162 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
172- let z = ((toBase58String(y) + "_") + toBase58String(d))
173- let A = {
163+ let y = ((toBase58String(x) + "_") + toBase58String(d))
164+ let z = {
174165 let j = getInteger(this, g)
175166 if ($isInstanceOf(j, "Int"))
176167 then {
177168 let k = j
178169 k
179170 }
180171 else 0
181172 }
182- let B = {
173+ let A = {
183174 let j = getInteger(this, f)
184175 if ($isInstanceOf(j, "Int"))
185176 then {
186177 let k = j
187178 k
188179 }
189180 else 0
190181 }
191- let C = {
192- let j = getInteger(this, z)
182+ let B = {
183+ let j = getInteger(this, y)
193184 if ($isInstanceOf(j, "Int"))
194185 then {
195186 let k = j
196187 k
197188 }
198189 else 0
199190 }
200191 let b = "GovernTokenMaxDeposit"
201192 let c = "MaxGovernTokenDepositerKey"
202- let D = getStringValue(this, c)
203- if ((C == 0))
193+ let C = getStringValue(this, c)
194+ if ((B == 0))
204195 then throw("No prize to Claim")
205- else if ((g != D))
196+ else if ((g != C))
206197 then throw("You are not the winner hence cannot claim the reward ")
207- else if ((1 > B))
198+ else if ((1 > A))
208199 then throw(("You have to Stake StakedToken to claim reward
209- Your Balance of Staked Tokens is: " + toString(B)))
210- else if ((A > 100))
211- then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)]))
200+ Your Balance of Staked Tokens is: " + toString(A)))
201+ else if ((z > 100))
202+ then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(b, 0), DataEntry(g, 0), DataEntry(c, "")]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
212203 else throw(("You have to deposit 100 GovernToken to claim Reward
213- Your Balance is: " + toString(A)))
204+ Your Balance is: " + toString(z)))
214205 }
215206
216207

github/deemru/w8io/169f3d6 
53.96 ms