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