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