tx · 9mXwazf9yVNDNg9zefCde6pDhYr8gu2QDqxoZCQgfogz

3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF:  -0.01990000 Waves

2020.10.20 21:37 [1229254] smart account 3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF > SELF 0.00000000 Waves

{ "type": 13, "id": "9mXwazf9yVNDNg9zefCde6pDhYr8gu2QDqxoZCQgfogz", "fee": 1990000, "feeAssetId": null, "timestamp": 1603219112117, "version": 2, "chainId": 84, "sender": "3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF", "senderPublicKey": "9HTwTKruTGvJ6qj6TnQU71EtPTv5eQNsXyuFgW1x3JvZ", "proofs": [ "5khQZzFATqX6p7QNrS6twqvUtjEYtqyHVsb3pYXYxJ4m69AqSooHgcTfryeigxKZRk12HpEDW9NtfNzfzEUjPcXZ" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZ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AAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAZAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAjlcIY", "height": 1229254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4qev3vWMjsBWQ1ZrXyfyF9qa6nKfhxCGQaTwxb4tiY3X Next: 9QB7w3GT1pv6BkczSXE4kYkP89G5nQtYn9KrxAqL6fa9 Diff:
OldNewDifferences
3131 }
3232 else 0
3333 }
34- let n = getStringValue(this, f)
34+ throw(((("Winner is.....: " + h) + "
35+Total GovernToken: ") + toString(i)))
36+ }
37+
38+
39+
40+@Callable(a)
41+func payYield () = {
42+ let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
43+ let n = toBase58String(a.caller.bytes)
3544 let o = {
3645 let j = getInteger(this, n)
3746 if ($isInstanceOf(j, "Int"))
4150 }
4251 else 0
4352 }
44- throw(((("Winner is.....: " + h) + "
45-Total GovernToken: ") + toString(i)))
46- }
47-
48-
49-
50-@Callable(a)
51-func payYield () = {
52- let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
53- let p = toBase58String(a.caller.bytes)
54- let q = {
55- let j = getInteger(this, p)
56- if ($isInstanceOf(j, "Int"))
57- then {
58- let k = j
59- k
60- }
61- else 0
62- }
63- if ((q > 0))
53+ if ((o > 0))
6454 then {
65- let r = assetBalance(this, e)
66- if ((1 > r))
55+ let p = assetBalance(this, e)
56+ if ((1 > p))
6757 then throw("No enough GovernToken In Contract")
68- else ScriptResult(WriteSet([DataEntry(p, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
58+ else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
6959 }
7060 else throw("You need to deposit Collateral Token to receive Govern Token")
7161 }
7666 func Stake () = {
7767 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
7868 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
79- let s = extract(a.payment)
80- if (if (isDefined(s.assetId))
81- then (extract(s.assetId) == d)
69+ let q = extract(a.payment)
70+ if (if (isDefined(q.assetId))
71+ then (extract(q.assetId) == d)
8272 else false)
8373 then {
8474 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
8575 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
86- let q = {
76+ let o = {
8777 let j = getInteger(this, f)
8878 if ($isInstanceOf(j, "Int"))
8979 then {
9282 }
9383 else 0
9484 }
95- let t = (q + s.amount)
96- let u = assetBalance(this, e)
97- if ((1 > u))
85+ let r = (o + q.amount)
86+ let s = assetBalance(this, e)
87+ if ((1 > s))
9888 then throw("No enough GovernToken In Contract")
99- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
89+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
10090 }
10191 else throw("Can deposit only StakeToken")
10292 }
10696 @Callable(a)
10797 func DepositGovernToken () = {
10898 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
109- let v = toBase58String(e)
110- let s = extract(a.payment)
111- if (if (isDefined(s.assetId))
112- then (extract(s.assetId) == e)
99+ let t = toBase58String(e)
100+ let q = extract(a.payment)
101+ if (if (isDefined(q.assetId))
102+ then (extract(q.assetId) == e)
113103 else false)
114104 then {
115- let p = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
116- let q = {
117- let j = getInteger(this, p)
105+ let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106+ let o = {
107+ let j = getInteger(this, n)
118108 if ($isInstanceOf(j, "Int"))
119109 then {
120110 let k = j
122112 }
123113 else 0
124114 }
125- let w = (q + s.amount)
115+ let u = (o + q.amount)
126116 let b = "GovernTokenMaxDeposit"
127117 let c = "MaxGovernTokenDepositerKey"
128118 let i = {
134124 }
135125 else 0
136126 }
137- if (if ((w > i))
127+ if (if ((u > i))
138128 then true
139129 else (i == 0))
140- then WriteSet([DataEntry(p, w), DataEntry(b, w), DataEntry(c, p)])
141- else WriteSet([DataEntry(p, w)])
130+ then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
131+ else WriteSet([DataEntry(n, u)])
142132 }
143133 else throw("Can deposit only Govern Token")
144134 }
146136
147137
148138 @Callable(a)
149-func WithdrawStakedFunds (x) = {
150- let y = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
139+func WithdrawStakedFunds (v) = {
140+ let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
151141 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
152- let p = toBase58String(a.caller.bytes)
153- let q = {
154- let j = getInteger(this, p)
142+ let n = toBase58String(a.caller.bytes)
143+ let o = {
144+ let j = getInteger(this, n)
155145 if ($isInstanceOf(j, "Int"))
156146 then {
157147 let k = j
159149 }
160150 else 0
161151 }
162- let t = (q - x)
163- if ((0 > x))
152+ let r = (o - v)
153+ if ((0 > v))
164154 then throw("Can't withdraw negative amount")
165- else if ((0 > t))
155+ else if ((0 > r))
166156 then throw("User cannot withdraw more than deposited funds")
167157 else {
168- let r = assetBalance(this, e)
169- if ((1 > r))
158+ let p = assetBalance(this, e)
159+ if ((1 > p))
170160 then throw("No enough GovernToken In Contract")
171- else ScriptResult(WriteSet([DataEntry(p, 1), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, y)]))
161+ else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
172162 }
173163 }
174164
178168 func ClaimPrize () = {
179169 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
180170 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
181- let z = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
171+ let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
182172 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
183173 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
184- let A = ((toBase58String(z) + "_") + toBase58String(d))
185- let B = {
174+ let y = ((toBase58String(x) + "_") + toBase58String(d))
175+ let z = {
186176 let j = getInteger(this, g)
187177 if ($isInstanceOf(j, "Int"))
188178 then {
191181 }
192182 else 0
193183 }
194- let C = {
184+ let A = {
195185 let j = getInteger(this, f)
196186 if ($isInstanceOf(j, "Int"))
197187 then {
200190 }
201191 else 0
202192 }
203- let D = {
204- let j = getInteger(this, A)
193+ let B = {
194+ let j = getInteger(this, y)
205195 if ($isInstanceOf(j, "Int"))
206196 then {
207197 let k = j
210200 else 0
211201 }
212202 let c = "MaxGovernTokenDepositerKey"
213- let E = getStringValue(this, c)
214- if ((D == 0))
203+ let C = getStringValue(this, c)
204+ if ((B == 0))
215205 then throw("No prize to Claim")
216- else if ((g != E))
206+ else if ((g != C))
217207 then throw("You are not the winner hence cannot claim the reward ")
218- else if ((1 > C))
208+ else if ((1 > A))
219209 then throw(("You have to Stake StakedToken to claim reward
220- Your Balance of Staked Tokens is: " + toString(C)))
221- else if ((B > 100))
222- then ScriptResult(WriteSet([DataEntry(E, D), DataEntry(A, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, D, d), ScriptTransfer(a.caller, 100, e)]))
210+ Your Balance of Staked Tokens is: " + toString(A)))
211+ else if ((z > 100))
212+ then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
223213 else throw(("You have to deposit 100 GovernToken to claim Reward
224- Your Balance is: " + toString(B)))
214+ Your Balance is: " + toString(z)))
225215 }
226216
227217
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)
2525 let m = {
2626 let j = getInteger(this, l)
2727 if ($isInstanceOf(j, "Int"))
2828 then {
2929 let k = j
3030 k
3131 }
3232 else 0
3333 }
34- let n = getStringValue(this, f)
34+ throw(((("Winner is.....: " + h) + "
35+Total GovernToken: ") + toString(i)))
36+ }
37+
38+
39+
40+@Callable(a)
41+func payYield () = {
42+ let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
43+ let n = toBase58String(a.caller.bytes)
3544 let o = {
3645 let j = getInteger(this, n)
3746 if ($isInstanceOf(j, "Int"))
3847 then {
3948 let k = j
4049 k
4150 }
4251 else 0
4352 }
44- throw(((("Winner is.....: " + h) + "
45-Total GovernToken: ") + toString(i)))
46- }
47-
48-
49-
50-@Callable(a)
51-func payYield () = {
52- let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
53- let p = toBase58String(a.caller.bytes)
54- let q = {
55- let j = getInteger(this, p)
56- if ($isInstanceOf(j, "Int"))
57- then {
58- let k = j
59- k
60- }
61- else 0
62- }
63- if ((q > 0))
53+ if ((o > 0))
6454 then {
65- let r = assetBalance(this, e)
66- if ((1 > r))
55+ let p = assetBalance(this, e)
56+ if ((1 > p))
6757 then throw("No enough GovernToken In Contract")
68- else ScriptResult(WriteSet([DataEntry(p, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
58+ else ScriptResult(WriteSet([DataEntry(n, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
6959 }
7060 else throw("You need to deposit Collateral Token to receive Govern Token")
7161 }
7262
7363
7464
7565 @Callable(a)
7666 func Stake () = {
7767 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
7868 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
79- let s = extract(a.payment)
80- if (if (isDefined(s.assetId))
81- then (extract(s.assetId) == d)
69+ let q = extract(a.payment)
70+ if (if (isDefined(q.assetId))
71+ then (extract(q.assetId) == d)
8272 else false)
8373 then {
8474 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
8575 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
86- let q = {
76+ let o = {
8777 let j = getInteger(this, f)
8878 if ($isInstanceOf(j, "Int"))
8979 then {
9080 let k = j
9181 k
9282 }
9383 else 0
9484 }
95- let t = (q + s.amount)
96- let u = assetBalance(this, e)
97- if ((1 > u))
85+ let r = (o + q.amount)
86+ let s = assetBalance(this, e)
87+ if ((1 > s))
9888 then throw("No enough GovernToken In Contract")
99- else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, t)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
89+ else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, r)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
10090 }
10191 else throw("Can deposit only StakeToken")
10292 }
10393
10494
10595
10696 @Callable(a)
10797 func DepositGovernToken () = {
10898 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
109- let v = toBase58String(e)
110- let s = extract(a.payment)
111- if (if (isDefined(s.assetId))
112- then (extract(s.assetId) == e)
99+ let t = toBase58String(e)
100+ let q = extract(a.payment)
101+ if (if (isDefined(q.assetId))
102+ then (extract(q.assetId) == e)
113103 else false)
114104 then {
115- let p = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
116- let q = {
117- let j = getInteger(this, p)
105+ let n = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
106+ let o = {
107+ let j = getInteger(this, n)
118108 if ($isInstanceOf(j, "Int"))
119109 then {
120110 let k = j
121111 k
122112 }
123113 else 0
124114 }
125- let w = (q + s.amount)
115+ let u = (o + q.amount)
126116 let b = "GovernTokenMaxDeposit"
127117 let c = "MaxGovernTokenDepositerKey"
128118 let i = {
129119 let j = getInteger(this, b)
130120 if ($isInstanceOf(j, "Int"))
131121 then {
132122 let k = j
133123 k
134124 }
135125 else 0
136126 }
137- if (if ((w > i))
127+ if (if ((u > i))
138128 then true
139129 else (i == 0))
140- then WriteSet([DataEntry(p, w), DataEntry(b, w), DataEntry(c, p)])
141- else WriteSet([DataEntry(p, w)])
130+ then WriteSet([DataEntry(n, u), DataEntry(b, u), DataEntry(c, n)])
131+ else WriteSet([DataEntry(n, u)])
142132 }
143133 else throw("Can deposit only Govern Token")
144134 }
145135
146136
147137
148138 @Callable(a)
149-func WithdrawStakedFunds (x) = {
150- let y = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
139+func WithdrawStakedFunds (v) = {
140+ let w = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
151141 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
152- let p = toBase58String(a.caller.bytes)
153- let q = {
154- let j = getInteger(this, p)
142+ let n = toBase58String(a.caller.bytes)
143+ let o = {
144+ let j = getInteger(this, n)
155145 if ($isInstanceOf(j, "Int"))
156146 then {
157147 let k = j
158148 k
159149 }
160150 else 0
161151 }
162- let t = (q - x)
163- if ((0 > x))
152+ let r = (o - v)
153+ if ((0 > v))
164154 then throw("Can't withdraw negative amount")
165- else if ((0 > t))
155+ else if ((0 > r))
166156 then throw("User cannot withdraw more than deposited funds")
167157 else {
168- let r = assetBalance(this, e)
169- if ((1 > r))
158+ let p = assetBalance(this, e)
159+ if ((1 > p))
170160 then throw("No enough GovernToken In Contract")
171- else ScriptResult(WriteSet([DataEntry(p, 1), DataEntry(p, t)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, x, y)]))
161+ else ScriptResult(WriteSet([DataEntry(n, 1), DataEntry(n, r)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, v, w)]))
172162 }
173163 }
174164
175165
176166
177167 @Callable(a)
178168 func ClaimPrize () = {
179169 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
180170 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
181- let z = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
171+ let x = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
182172 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
183173 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
184- let A = ((toBase58String(z) + "_") + toBase58String(d))
185- let B = {
174+ let y = ((toBase58String(x) + "_") + toBase58String(d))
175+ let z = {
186176 let j = getInteger(this, g)
187177 if ($isInstanceOf(j, "Int"))
188178 then {
189179 let k = j
190180 k
191181 }
192182 else 0
193183 }
194- let C = {
184+ let A = {
195185 let j = getInteger(this, f)
196186 if ($isInstanceOf(j, "Int"))
197187 then {
198188 let k = j
199189 k
200190 }
201191 else 0
202192 }
203- let D = {
204- let j = getInteger(this, A)
193+ let B = {
194+ let j = getInteger(this, y)
205195 if ($isInstanceOf(j, "Int"))
206196 then {
207197 let k = j
208198 k
209199 }
210200 else 0
211201 }
212202 let c = "MaxGovernTokenDepositerKey"
213- let E = getStringValue(this, c)
214- if ((D == 0))
203+ let C = getStringValue(this, c)
204+ if ((B == 0))
215205 then throw("No prize to Claim")
216- else if ((g != E))
206+ else if ((g != C))
217207 then throw("You are not the winner hence cannot claim the reward ")
218- else if ((1 > C))
208+ else if ((1 > A))
219209 then throw(("You have to Stake StakedToken to claim reward
220- Your Balance of Staked Tokens is: " + toString(C)))
221- else if ((B > 100))
222- then ScriptResult(WriteSet([DataEntry(E, D), DataEntry(A, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, D, d), ScriptTransfer(a.caller, 100, e)]))
210+ Your Balance of Staked Tokens is: " + toString(A)))
211+ else if ((z > 100))
212+ then ScriptResult(WriteSet([DataEntry(C, B), DataEntry(y, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, B, d), ScriptTransfer(a.caller, 100, e)]))
223213 else throw(("You have to deposit 100 GovernToken to claim Reward
224- Your Balance is: " + toString(B)))
214+ Your Balance is: " + toString(z)))
225215 }
226216
227217

github/deemru/w8io/026f985 
46.83 ms