tx · Fc47opQhGKMNtdkPgaiSfUwcDwr49wEhaBVPL2wCcU5g 3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ: -0.01660000 Waves 2020.10.20 20:39 [1229195] smart account 3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ > SELF 0.00000000 Waves
{ "type": 13, "id": "Fc47opQhGKMNtdkPgaiSfUwcDwr49wEhaBVPL2wCcU5g", "fee": 1660000, "feeAssetId": null, "timestamp": 1603215547490, "version": 2, "chainId": 84, "sender": "3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ", "senderPublicKey": "EPmZCX2H4AC1hUmAFRUfWrhzXrNjf3wPaybY6jHZQphj", "proofs": [ "3iwCRghawVVUYEZqd6GYdFQLGkor8kcpGxBYXQLf5roJLAVwoXucFWs4HHJxxkZNknKx3onFfzV1VesiGC4y4hyc" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxs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AAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAC1ByaXplV2lubmVyBQAAAAtQcml6ZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASRnVuZEJveFN0YWtlZFRva2VuAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAjdoSVw==", "height": 1229195, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5Hu9uMpCoYqC53Xyjtf8xdw5VNMo6SF6sxe2eNCGcxw3 Next: 4kxm32M7kBYp2WTNjY2v9EhdGs3Y3wEusCvsWSHXRnnS Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let n = getStringValue(this, f) | |
35 | - | throw(((("Winner is.....: " + h) + " | |
36 | - | Total GovernToken: ") + toString(i))) | |
35 | + | throw(((((("Winner is.....: " + h) + " | |
36 | + | Total GovernToken: ") + toString(i)) + " | |
37 | + | Your Balance of GovernToken is: ") + toString(m))) | |
37 | 38 | } | |
38 | 39 | ||
39 | 40 |
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 ReadMaxGovernDeposit () = { | |
8 | 8 | let b = "GovernTokenMaxDeposit" | |
9 | 9 | let c = "MaxGovernTokenDepositerKey" | |
10 | 10 | let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
11 | 11 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
12 | 12 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
13 | 13 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
14 | 14 | let h = getStringValue(this, c) | |
15 | 15 | let i = { | |
16 | 16 | let j = getInteger(this, b) | |
17 | 17 | if ($isInstanceOf(j, "Int")) | |
18 | 18 | then { | |
19 | 19 | let k = j | |
20 | 20 | k | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | let l = getStringValue(this, g) | |
25 | 25 | let m = { | |
26 | 26 | let j = getInteger(this, l) | |
27 | 27 | if ($isInstanceOf(j, "Int")) | |
28 | 28 | then { | |
29 | 29 | let k = j | |
30 | 30 | k | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let n = getStringValue(this, f) | |
35 | - | throw(((("Winner is.....: " + h) + " | |
36 | - | Total GovernToken: ") + toString(i))) | |
35 | + | throw(((((("Winner is.....: " + h) + " | |
36 | + | Total GovernToken: ") + toString(i)) + " | |
37 | + | Your Balance of GovernToken is: ") + toString(m))) | |
37 | 38 | } | |
38 | 39 | ||
39 | 40 | ||
40 | 41 | ||
41 | 42 | @Callable(a) | |
42 | 43 | func payYield () = { | |
43 | 44 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
44 | 45 | let o = toBase58String(a.caller.bytes) | |
45 | 46 | let p = { | |
46 | 47 | let j = getInteger(this, o) | |
47 | 48 | if ($isInstanceOf(j, "Int")) | |
48 | 49 | then { | |
49 | 50 | let k = j | |
50 | 51 | k | |
51 | 52 | } | |
52 | 53 | else 0 | |
53 | 54 | } | |
54 | 55 | if ((p > 0)) | |
55 | 56 | then { | |
56 | 57 | let q = assetBalance(this, e) | |
57 | 58 | if ((1 > q)) | |
58 | 59 | then throw("No enough GovernToken In Contract") | |
59 | 60 | else ScriptResult(WriteSet([DataEntry(o, 10)]), TransferSet([ScriptTransfer(a.caller, 1, e)])) | |
60 | 61 | } | |
61 | 62 | else throw("You need to deposit Collateral Token to receive Govern Token") | |
62 | 63 | } | |
63 | 64 | ||
64 | 65 | ||
65 | 66 | ||
66 | 67 | @Callable(a) | |
67 | 68 | func Stake () = { | |
68 | 69 | let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
69 | 70 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
70 | 71 | let r = extract(a.payment) | |
71 | 72 | if (if (isDefined(r.assetId)) | |
72 | 73 | then (extract(r.assetId) == d) | |
73 | 74 | else false) | |
74 | 75 | then { | |
75 | 76 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
76 | 77 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
77 | 78 | let p = { | |
78 | 79 | let j = getInteger(this, f) | |
79 | 80 | if ($isInstanceOf(j, "Int")) | |
80 | 81 | then { | |
81 | 82 | let k = j | |
82 | 83 | k | |
83 | 84 | } | |
84 | 85 | else 0 | |
85 | 86 | } | |
86 | 87 | let s = (p + r.amount) | |
87 | 88 | let t = assetBalance(this, e) | |
88 | 89 | if ((1 > t)) | |
89 | 90 | then throw("No enough GovernToken In Contract") | |
90 | 91 | else ScriptResult(WriteSet([DataEntry(g, 10), DataEntry(f, s)]), TransferSet([ScriptTransfer(a.caller, 10, e)])) | |
91 | 92 | } | |
92 | 93 | else throw("Can deposit only StakeToken") | |
93 | 94 | } | |
94 | 95 | ||
95 | 96 | ||
96 | 97 | ||
97 | 98 | @Callable(a) | |
98 | 99 | func DepositGovernToken () = { | |
99 | 100 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
100 | 101 | let u = toBase58String(e) | |
101 | 102 | let r = extract(a.payment) | |
102 | 103 | if (if (isDefined(r.assetId)) | |
103 | 104 | then (extract(r.assetId) == e) | |
104 | 105 | else false) | |
105 | 106 | then { | |
106 | 107 | let o = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
107 | 108 | let p = { | |
108 | 109 | let j = getInteger(this, o) | |
109 | 110 | if ($isInstanceOf(j, "Int")) | |
110 | 111 | then { | |
111 | 112 | let k = j | |
112 | 113 | k | |
113 | 114 | } | |
114 | 115 | else 0 | |
115 | 116 | } | |
116 | 117 | let v = (p + r.amount) | |
117 | 118 | let b = "GovernTokenMaxDeposit" | |
118 | 119 | let c = "MaxGovernTokenDepositerKey" | |
119 | 120 | let i = { | |
120 | 121 | let j = getInteger(this, b) | |
121 | 122 | if ($isInstanceOf(j, "Int")) | |
122 | 123 | then { | |
123 | 124 | let k = j | |
124 | 125 | k | |
125 | 126 | } | |
126 | 127 | else 0 | |
127 | 128 | } | |
128 | 129 | if (if ((v > i)) | |
129 | 130 | then true | |
130 | 131 | else (i == 0)) | |
131 | 132 | then WriteSet([DataEntry(o, v), DataEntry(b, v), DataEntry(c, o)]) | |
132 | 133 | else WriteSet([DataEntry(o, v)]) | |
133 | 134 | } | |
134 | 135 | else throw("Can deposit only Govern Token") | |
135 | 136 | } | |
136 | 137 | ||
137 | 138 | ||
138 | 139 | ||
139 | 140 | @Callable(a) | |
140 | 141 | func WithdrawStakedFunds (w) = { | |
141 | 142 | let x = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
142 | 143 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
143 | 144 | let o = toBase58String(a.caller.bytes) | |
144 | 145 | let p = { | |
145 | 146 | let j = getInteger(this, o) | |
146 | 147 | if ($isInstanceOf(j, "Int")) | |
147 | 148 | then { | |
148 | 149 | let k = j | |
149 | 150 | k | |
150 | 151 | } | |
151 | 152 | else 0 | |
152 | 153 | } | |
153 | 154 | let s = (p - w) | |
154 | 155 | if ((0 > w)) | |
155 | 156 | then throw("Can't withdraw negative amount") | |
156 | 157 | else if ((0 > s)) | |
157 | 158 | then throw("User cannot withdraw more than deposited funds") | |
158 | 159 | else { | |
159 | 160 | let q = assetBalance(this, e) | |
160 | 161 | if ((1 > q)) | |
161 | 162 | then throw("No enough GovernToken In Contract") | |
162 | 163 | else ScriptResult(WriteSet([DataEntry(o, 1), DataEntry(o, s)]), TransferSet([ScriptTransfer(a.caller, 1, e), ScriptTransfer(a.caller, w, x)])) | |
163 | 164 | } | |
164 | 165 | } | |
165 | 166 | ||
166 | 167 | ||
167 | 168 | ||
168 | 169 | @Callable(a) | |
169 | 170 | func ClaimPrize () = { | |
170 | 171 | let d = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN' | |
171 | 172 | let e = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ' | |
172 | 173 | let y = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD' | |
173 | 174 | let f = ((toBase58String(a.caller.bytes) + "_") + toBase58String(d)) | |
174 | 175 | let g = ((toBase58String(a.caller.bytes) + "_") + toBase58String(e)) | |
175 | 176 | let z = ((toBase58String(y) + "_") + toBase58String(d)) | |
176 | 177 | let A = { | |
177 | 178 | let j = getInteger(this, g) | |
178 | 179 | if ($isInstanceOf(j, "Int")) | |
179 | 180 | then { | |
180 | 181 | let k = j | |
181 | 182 | k | |
182 | 183 | } | |
183 | 184 | else 0 | |
184 | 185 | } | |
185 | 186 | let B = { | |
186 | 187 | let j = getInteger(this, f) | |
187 | 188 | if ($isInstanceOf(j, "Int")) | |
188 | 189 | then { | |
189 | 190 | let k = j | |
190 | 191 | k | |
191 | 192 | } | |
192 | 193 | else 0 | |
193 | 194 | } | |
194 | 195 | let C = { | |
195 | 196 | let j = getInteger(this, z) | |
196 | 197 | if ($isInstanceOf(j, "Int")) | |
197 | 198 | then { | |
198 | 199 | let k = j | |
199 | 200 | k | |
200 | 201 | } | |
201 | 202 | else 0 | |
202 | 203 | } | |
203 | 204 | let c = "MaxGovernTokenDepositerKey" | |
204 | 205 | let D = getStringValue(this, c) | |
205 | 206 | if ((C == 0)) | |
206 | 207 | then throw("No prize to Claim") | |
207 | 208 | else if ((g != D)) | |
208 | 209 | then throw("You are not the winner hence cannot claim the reward ") | |
209 | 210 | else if ((1 > B)) | |
210 | 211 | then throw(("You have to Stake StakedToken to claim reward | |
211 | 212 | Your Balance of Staked Tokens is: " + toString(B))) | |
212 | 213 | else if ((A > 100)) | |
213 | 214 | then ScriptResult(WriteSet([DataEntry(D, C), DataEntry(z, 0), DataEntry(g, 0)]), TransferSet([ScriptTransfer(a.caller, C, d), ScriptTransfer(a.caller, 100, e)])) | |
214 | 215 | else throw(("You have to deposit 100 GovernToken to claim Reward | |
215 | 216 | Your Balance is: " + toString(A))) | |
216 | 217 | } | |
217 | 218 | ||
218 | 219 |
github/deemru/w8io/026f985 38.52 ms ◑