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