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