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