tx · APLPgsSsmBCcvt8G39CZzXAPotej9zUQ61HdU278iRV4

3Mzqq2HLLw6JETYRkDNo7eTdVdFw29GhQsW:  -0.01550000 Waves

2020.10.20 22:07 [1229284] smart account 3Mzqq2HLLw6JETYRkDNo7eTdVdFw29GhQsW > SELF 0.00000000 Waves

{ "type": 13, "id": "APLPgsSsmBCcvt8G39CZzXAPotej9zUQ61HdU278iRV4", "fee": 1550000, "feeAssetId": null, "timestamp": 1603220839862, "version": 2, "chainId": 84, "sender": "3Mzqq2HLLw6JETYRkDNo7eTdVdFw29GhQsW", "senderPublicKey": "5z4sZd5N9cB7oxvLA6qHYQkfheJ5fFEVhuAaBWSaQKY3", "proofs": [ "vBaAPmi4VdvjesLnCDQbyLBWsjQAtNeft9FRNo6zz9VB9LWezx78txxCNgFacKdiRZp2iTyKsgzrPbVr44joGNz" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFY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AAEJAAEsAAAAAgIAAABHWW91IGhhdmUgdG8gZGVwb3NpdCAxMDAgR292ZXJuVG9rZW4gdG8gY2xhaW0gUmV3YXJkIAogWW91ciBCYWxhbmNlIGlzOiAJAAGkAAAAAQUAAAAVVXNlckdvdmVyblRva2VuQW1vdW50AAAAAMm2Mkk=", "height": 1229284, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7PcAZw5dzhdQLmWGJ26fCS6ZPHQaaCv4xPs7VWRJQMhH Next: EmWfTQJZrTMPS6bPGYvRNcffQxkZWRurvZViXJ6NBEbd Diff:
OldNewDifferences
196196 then throw(("You have to Stake StakedToken to claim reward
197197 Your Balance of Staked Tokens is: " + toString(y)))
198198 else if ((x > 100))
199- then ScriptResult(WriteSet([DataEntry(A, z), DataEntry(w, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, z, d), ScriptTransfer(a.caller, 100, e)]))
199+ then ScriptResult(WriteSet([DataEntry(A, z), DataEntry(w, 0), DataEntry(c, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, z, d), ScriptTransfer(a.caller, 100, e)]))
200200 else throw(("You have to deposit 100 GovernToken to claim Reward
201201 Your Balance is: " + toString(x)))
202202 }
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 throw(((("Winner is.....: " + h) + " Balance is: ") + toString(i)))
2525 }
2626
2727
2828
2929 @Callable(a)
3030 func payYield () = {
3131 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
3232 let l = toBase58String(a.caller.bytes)
3333 let m = {
3434 let j = getInteger(this, l)
3535 if ($isInstanceOf(j, "Int"))
3636 then {
3737 let k = j
3838 k
3939 }
4040 else 0
4141 }
4242 if ((m > 0))
4343 then {
4444 let n = assetBalance(this, e)
4545 if ((1 > n))
4646 then throw("No enough GovernToken In Contract")
4747 else ScriptResult(WriteSet([DataEntry(l, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)]))
4848 }
4949 else throw("You need to deposit Collateral Token to receive Govern Token")
5050 }
5151
5252
5353
5454 @Callable(a)
5555 func Stake () = {
5656 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
5757 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
5858 let o = extract(a.payment)
5959 if (if (isDefined(o.assetId))
6060 then (extract(o.assetId) == d)
6161 else false)
6262 then {
6363 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
6464 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
6565 let m = {
6666 let j = getInteger(this, f)
6767 if ($isInstanceOf(j, "Int"))
6868 then {
6969 let k = j
7070 k
7171 }
7272 else 0
7373 }
7474 let p = (m + o.amount)
7575 let q = assetBalance(this, e)
7676 if ((1 > q))
7777 then throw("No enough GovernToken In Contract")
7878 else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, p)]), TransferSet([ScriptTransfer(a.caller, 10, e)]))
7979 }
8080 else throw("Can deposit only StakeToken")
8181 }
8282
8383
8484
8585 @Callable(a)
8686 func DepositGovernToken () = {
8787 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
8888 let r = toBase58String(e)
8989 let o = extract(a.payment)
9090 if (if (isDefined(o.assetId))
9191 then (extract(o.assetId) == e)
9292 else false)
9393 then {
9494 let l = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
9595 let m = {
9696 let j = getInteger(this, l)
9797 if ($isInstanceOf(j, "Int"))
9898 then {
9999 let k = j
100100 k
101101 }
102102 else 0
103103 }
104104 let s = (m + o.amount)
105105 let b = "GovernTokenMaxDeposit"
106106 let c = "MaxGovernTokenDepositerKey"
107107 let i = {
108108 let j = getInteger(this, b)
109109 if ($isInstanceOf(j, "Int"))
110110 then {
111111 let k = j
112112 k
113113 }
114114 else 0
115115 }
116116 if ((s > i))
117117 then WriteSet([DataEntry(l, s), DataEntry(b, s), DataEntry(c, l)])
118118 else WriteSet([DataEntry(l, s)])
119119 }
120120 else throw("Can deposit only Govern Token")
121121 }
122122
123123
124124
125125 @Callable(a)
126126 func WithdrawStakedFunds (t) = {
127127 let u = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
128128 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
129129 let l = toBase58String(a.caller.bytes)
130130 let m = {
131131 let j = getInteger(this, l)
132132 if ($isInstanceOf(j, "Int"))
133133 then {
134134 let k = j
135135 k
136136 }
137137 else 0
138138 }
139139 let p = (m - t)
140140 if ((0 > t))
141141 then throw("Can't withdraw negative amount")
142142 else if ((0 > p))
143143 then throw("User cannot withdraw more than deposited funds")
144144 else {
145145 let n = assetBalance(this, e)
146146 if ((1 > n))
147147 then throw("No enough GovernToken In Contract")
148148 else ScriptResult(WriteSet([DataEntry(l, 1), DataEntry(l, p)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, t, u)]))
149149 }
150150 }
151151
152152
153153
154154 @Callable(a)
155155 func ClaimPrize () = {
156156 let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
157157 let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
158158 let v = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
159159 let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d))
160160 let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e))
161161 let w = ((toBase58String(v) + "_") + toBase58String(d))
162162 let x = {
163163 let j = getInteger(this, g)
164164 if ($isInstanceOf(j, "Int"))
165165 then {
166166 let k = j
167167 k
168168 }
169169 else 0
170170 }
171171 let y = {
172172 let j = getInteger(this, f)
173173 if ($isInstanceOf(j, "Int"))
174174 then {
175175 let k = j
176176 k
177177 }
178178 else 0
179179 }
180180 let z = {
181181 let j = getInteger(this, w)
182182 if ($isInstanceOf(j, "Int"))
183183 then {
184184 let k = j
185185 k
186186 }
187187 else 0
188188 }
189189 let c = "MaxGovernTokenDepositerKey"
190190 let A = getStringValue(this, c)
191191 if ((z == 0))
192192 then throw("No prize to Claim")
193193 else if ((g != A))
194194 then throw("You are not the winner hence cannot claim the reward ")
195195 else if ((1 > y))
196196 then throw(("You have to Stake StakedToken to claim reward
197197 Your Balance of Staked Tokens is: " + toString(y)))
198198 else if ((x > 100))
199- then ScriptResult(WriteSet([DataEntry(A, z), DataEntry(w, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, z, d), ScriptTransfer(a.caller, 100, e)]))
199+ then ScriptResult(WriteSet([DataEntry(A, z), DataEntry(w, 0), DataEntry(c, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, z, d), ScriptTransfer(a.caller, 100, e)]))
200200 else throw(("You have to deposit 100 GovernToken to claim Reward
201201 Your Balance is: " + toString(x)))
202202 }
203203
204204

github/deemru/w8io/026f985 
39.45 ms