tx · 892FCaFEbYweFVcuHaNksyVMvLvMDyYudvGV23buzEPm 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u: -0.01440000 Waves 2021.01.11 21:34 [1349157] smart account 3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u > SELF 0.00000000 Waves
{ "type": 13, "id": "892FCaFEbYweFVcuHaNksyVMvLvMDyYudvGV23buzEPm", "fee": 1440000, "feeAssetId": null, "timestamp": 1610390058021, "version": 2, "chainId": 84, "sender": "3N9eE86dXUm7rfc2WWCMLHkaEM4Y8yoNj7u", "senderPublicKey": "FFDorDp8bC9dyUK2w8hYPWPVEcbbk9zYkpHn3gcq9svn", "proofs": [ "2hyPUxoXUoFaDt7U2YvFArTtS4RcKrjtvbcMe3XAxUQtW47uLTKLjW1EMLW2kBKvWoWTg9DVtmJzswF4qvYY5mxw" ], "script": "base64:AAIDAAAAAAAAABgIARIAEgASABIAEgMKAQESAwoBARIAEgAAAAAAAAAACAAAAAFpAQAAAAxSZWFkUG9vbERhdGEAAAAABAAAAA5Hb3Zlcm5Ub2tlbktleQIAAAAVR292ZXJuVG9rZW5NYXhEZXBvc2l0BAAAABpNYXhHb3Zlcm5Ub2tlbkRlcG9zaXRlcktleQIAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkEAAAAC1N0YWtlZFRva2VuAQAAACC10ShhvOYEpzzeNL8op3J7Xvf8OAiWZygYbjjsBCwhsgQAAAALR292ZXJuVG9rZW4BAAAAIBCA+Di6G71u5eBGn7OO/XvXyTq77GEaAEk/DSjFvl25BAAAABJVc2VyU3Rha2VkVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMCAAAAAV8JAAJYAAAAAQUAAAALU3Rha2VkVG9rZW4EAAAAElVzZXJHb3Zlcm5Ub2tlbktleQkAASwAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcg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uc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAALUHJpemVBbW91bnQFAAAAC1N0YWtlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAO5rKAAUAAAALR292ZXJuVG9rZW4FAAAAA25pbAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAcWW91IHNob3VsZCBkZXBvc2l0IGF0IGxlYXN0IAkAAaQAAAABBQAAABVNYXhHb3Zlcm5Ub2tlbkRlcG9zaXQCAAAAGyB0byBiZSBhYmxlIHRvIGNsYWltIHJld2FyZAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAR1lvdSBoYXZlIHRvIGRlcG9zaXQgMTAwIEdvdmVyblRva2VuIHRvIGNsYWltIFJld2FyZCAKIFlvdXIgQmFsYW5jZSBpczogCQABpAAAAAEFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAIAAAATCiBEZXBvc2l0IGRvbmUgYXQ6IAkAAaQAAAABBQAAAAtQcml6ZUhlaWdodAIAAAALICBBbmQgd2FpdDoJAAGkAAAAAQkAAGQAAAACBQAAAAtQcml6ZUhlaWdodAUAAAALQWN0dWFsRGVsYXkCAAAADkFuZCBIZWlnaHQgaXM6CQABpAAAAAEFAAAABmhlaWdodAAAAAD0VPJn", "height": 1349157, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9fCdYWbj3MJra5ShPTmG59LAEcq9WRYnaXW7mYdxZueN Next: 9GjpcZY5t2AvqdCUWinDhyczvvLdkGobQRRAipncseNq Diff:
Old | New | Differences | |
---|---|---|---|
98 | 98 | case _ => | |
99 | 99 | 0 | |
100 | 100 | } | |
101 | + | let ActualDelay = match getInteger(this, "Delay") { | |
102 | + | case a: Int => | |
103 | + | a | |
104 | + | case _ => | |
105 | + | 0 | |
106 | + | } | |
101 | 107 | let CurrrentGovernTokenDeposit = pmt.amount | |
102 | - | if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
103 | - | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
104 | - | else throw((("You have to deposit more than " + toString((MaxGovernTokenDeposit / 100000000))) + " Troika")) | |
108 | + | if (if (if ((MaxGovernTokenDepositerKey != "")) | |
109 | + | then (height >= (HeightTransactFundBox + ActualDelay)) | |
110 | + | else false) | |
111 | + | then (height > 0) | |
112 | + | else false) | |
113 | + | then if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
114 | + | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height), DataEntry("Delay", 5)]) | |
115 | + | else throw((("You have to deposit more than " + toString((MaxGovernTokenDeposit / 100000000))) + " Troika")) | |
116 | + | else throw("You cannot claim reward, a winner has already been designated") | |
105 | 117 | } | |
106 | 118 | else throw("Can deposit only StakeToken") | |
107 | 119 | } | |
416 | 428 | else throw((("You should deposit at least " + toString(MaxGovernTokenDeposit)) + " to be able to claim reward")) | |
417 | 429 | else throw(((((((("You have to deposit 100 GovernToken to claim Reward | |
418 | 430 | Your Balance is: " + toString(UserGovernTokenAmount)) + " | |
419 | - | Deposit done at: ") + toString(PrizeHeight)) + " And wait:") + toString((PrizeHeight + | |
431 | + | Deposit done at: ") + toString(PrizeHeight)) + " And wait:") + toString((PrizeHeight + ActualDelay))) + "And Height is:") + toString(height))) | |
420 | 432 | } | |
421 | 433 | ||
422 | 434 |
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(i) | |
7 | 7 | func ReadPoolData () = { | |
8 | 8 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
9 | 9 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
10 | 10 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
11 | 11 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
12 | 12 | let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken)) | |
13 | 13 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
14 | 14 | let Winner = getStringValue(this, MaxGovernTokenDepositerKey) | |
15 | 15 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey) | |
22 | 22 | let UserGovernTokenBalance = match getInteger(this, UserGovernTokenKey) { | |
23 | 23 | case a: Int => | |
24 | 24 | a | |
25 | 25 | case _ => | |
26 | 26 | 0 | |
27 | 27 | } | |
28 | 28 | let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey) | |
29 | 29 | let UserStakedTokenBalance = match getInteger(this, UserStakedTokenKey) { | |
30 | 30 | case a: Int => | |
31 | 31 | a | |
32 | 32 | case _ => | |
33 | 33 | 0 | |
34 | 34 | } | |
35 | 35 | throw(((((((("Winner is.....: " + Winner) + " Balance is: ") + toString(MaxGovernTokenDeposit)) + " | |
36 | 36 | Staked Token in your Balance is.....: ") + toString(UserStakedTokenBalance)) + " | |
37 | 37 | Govern Token in your Balance is.....: ") + toString(UserGovernTokenBalance))) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Callable(i) | |
43 | 43 | func ResetAccount () = { | |
44 | 44 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
45 | 45 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
46 | 46 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
47 | 47 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
48 | 48 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
49 | 49 | WriteSet([DataEntry(UserGovernTokenKey, 0), DataEntry(UserStakedTokenKey, 0), DataEntry(UserStakeTransactionsKey, 0), DataEntry("DelayCost", 0), DataEntry("Delay", 0), DataEntry("StakeBalance", 0), DataEntry("PrizeHeight", 0), DataEntry("FundBox", 0)]) | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(i) | |
55 | 55 | func PushReward () = { | |
56 | 56 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
57 | 57 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
58 | 58 | let pmt = extract(i.payment) | |
59 | 59 | let currentKey = (toBase58String(i.caller.bytes) + "_Push") | |
60 | 60 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
61 | 61 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
62 | 62 | case a: Int => | |
63 | 63 | a | |
64 | 64 | case _ => | |
65 | 65 | 0 | |
66 | 66 | } | |
67 | 67 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
68 | 68 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
69 | 69 | case a: Int => | |
70 | 70 | a | |
71 | 71 | case _ => | |
72 | 72 | 0 | |
73 | 73 | } | |
74 | 74 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
75 | 75 | then (PrizeAmount != 0) | |
76 | 76 | else false) | |
77 | 77 | then height | |
78 | 78 | else if (if ((HeightTransactFundBox != 0)) | |
79 | 79 | then (PrizeAmount == 0) | |
80 | 80 | else false) | |
81 | 81 | then 0 | |
82 | 82 | else HeightTransactFundBox | |
83 | 83 | if (if ((pmt.amount > 0)) | |
84 | 84 | then (pmt.assetId == GovernToken) | |
85 | 85 | else false) | |
86 | 86 | then { | |
87 | 87 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
88 | 88 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
89 | 89 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
90 | 90 | case a: Int => | |
91 | 91 | a | |
92 | 92 | case _ => | |
93 | 93 | 0 | |
94 | 94 | } | |
95 | 95 | let currentAmount = match getInteger(this, currentKey) { | |
96 | 96 | case a: Int => | |
97 | 97 | a | |
98 | 98 | case _ => | |
99 | 99 | 0 | |
100 | 100 | } | |
101 | + | let ActualDelay = match getInteger(this, "Delay") { | |
102 | + | case a: Int => | |
103 | + | a | |
104 | + | case _ => | |
105 | + | 0 | |
106 | + | } | |
101 | 107 | let CurrrentGovernTokenDeposit = pmt.amount | |
102 | - | if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
103 | - | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
104 | - | else throw((("You have to deposit more than " + toString((MaxGovernTokenDeposit / 100000000))) + " Troika")) | |
108 | + | if (if (if ((MaxGovernTokenDepositerKey != "")) | |
109 | + | then (height >= (HeightTransactFundBox + ActualDelay)) | |
110 | + | else false) | |
111 | + | then (height > 0) | |
112 | + | else false) | |
113 | + | then if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit)) | |
114 | + | then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height), DataEntry("Delay", 5)]) | |
115 | + | else throw((("You have to deposit more than " + toString((MaxGovernTokenDeposit / 100000000))) + " Troika")) | |
116 | + | else throw("You cannot claim reward, a winner has already been designated") | |
105 | 117 | } | |
106 | 118 | else throw("Can deposit only StakeToken") | |
107 | 119 | } | |
108 | 120 | ||
109 | 121 | ||
110 | 122 | ||
111 | 123 | @Callable(i) | |
112 | 124 | func Stake () = { | |
113 | 125 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
114 | 126 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
115 | 127 | let GovernTokenSmartContractBalance = assetBalance(this, GovernToken) | |
116 | 128 | let UserAPY = (toBase58String(i.caller.bytes) + "_APY") | |
117 | 129 | let pmt = extract(i.payment) | |
118 | 130 | if (if ((pmt.amount > 0)) | |
119 | 131 | then (pmt.assetId == StakedToken) | |
120 | 132 | else false) | |
121 | 133 | then { | |
122 | 134 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
123 | 135 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
124 | 136 | let UserStakeTransactionsKey = (toBase58String(i.caller.bytes) + "_StakedTransactions") | |
125 | 137 | let AddressHeight = (toBase58String(i.caller.bytes) + "_PrizeHeight") | |
126 | 138 | let UserStakeTransactions = match getInteger(this, UserStakeTransactionsKey) { | |
127 | 139 | case a: Int => | |
128 | 140 | a | |
129 | 141 | case _ => | |
130 | 142 | 0 | |
131 | 143 | } | |
132 | 144 | let NewUserStakeTransactions = (UserStakeTransactions + 1) | |
133 | 145 | let currentAmountStakedToken = match getInteger(this, UserStakedTokenKey) { | |
134 | 146 | case a: Int => | |
135 | 147 | a | |
136 | 148 | case _ => | |
137 | 149 | 0 | |
138 | 150 | } | |
139 | 151 | let newAmountStakedToken = (currentAmountStakedToken + pmt.amount) | |
140 | 152 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
141 | 153 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
142 | 154 | case a: Int => | |
143 | 155 | a | |
144 | 156 | case _ => | |
145 | 157 | 0 | |
146 | 158 | } | |
147 | 159 | let StakeBalanceAmount = (StakeBalance + pmt.amount) | |
148 | 160 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
149 | 161 | let currentAmountGovernToken = match getInteger(this, UserGovernTokenKey) { | |
150 | 162 | case a: Int => | |
151 | 163 | a | |
152 | 164 | case _ => | |
153 | 165 | 0 | |
154 | 166 | } | |
155 | 167 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
156 | 168 | case a: Int => | |
157 | 169 | a | |
158 | 170 | case _ => | |
159 | 171 | 0 | |
160 | 172 | } | |
161 | 173 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
162 | 174 | then (PrizeAmount != 0) | |
163 | 175 | else false) | |
164 | 176 | then height | |
165 | 177 | else if (if ((HeightTransactFundBox != 0)) | |
166 | 178 | then (PrizeAmount == 0) | |
167 | 179 | else false) | |
168 | 180 | then 0 | |
169 | 181 | else HeightTransactFundBox | |
170 | 182 | if ((100000000 > GovernTokenSmartContractBalance)) | |
171 | 183 | then throw("No enough GovernToken In Contract, Please deposit GovernTokens") | |
172 | 184 | else { | |
173 | 185 | let Reward = if ((StakeBalance == 0)) | |
174 | 186 | then 10000 | |
175 | 187 | else if ((NewUserStakeTransactions > 10)) | |
176 | 188 | then ((10000 * NewUserStakeTransactions) * (1 + (newAmountStakedToken / StakeBalance))) | |
177 | 189 | else (10000 * (1 + (newAmountStakedToken / StakeBalance))) | |
178 | 190 | let UserAPYValue = if ((currentAmountGovernToken > 0)) | |
179 | 191 | then ((100 * Reward) / currentAmountGovernToken) | |
180 | 192 | else 0 | |
181 | 193 | let newAmountGovernToken = (currentAmountGovernToken + Reward) | |
182 | 194 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmountGovernToken), DataEntry(UserStakedTokenKey, newAmountStakedToken), DataEntry(UserStakeTransactionsKey, NewUserStakeTransactions), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue), DataEntry(UserAPY, UserAPYValue)]), TransferSet([ScriptTransfer(i.caller, Reward, GovernToken)])) | |
183 | 195 | } | |
184 | 196 | } | |
185 | 197 | else throw("Can deposit only StakeToken") | |
186 | 198 | } | |
187 | 199 | ||
188 | 200 | ||
189 | 201 | ||
190 | 202 | @Callable(i) | |
191 | 203 | func WithdrawStakedFunds (amount) = { | |
192 | 204 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
193 | 205 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
194 | 206 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
195 | 207 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
196 | 208 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
197 | 209 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
198 | 210 | case a: Int => | |
199 | 211 | a | |
200 | 212 | case _ => | |
201 | 213 | 0 | |
202 | 214 | } | |
203 | 215 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
204 | 216 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
205 | 217 | case a: Int => | |
206 | 218 | a | |
207 | 219 | case _ => | |
208 | 220 | 0 | |
209 | 221 | } | |
210 | 222 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
211 | 223 | then (PrizeAmount != 0) | |
212 | 224 | else false) | |
213 | 225 | then height | |
214 | 226 | else if (if ((HeightTransactFundBox != 0)) | |
215 | 227 | then (PrizeAmount == 0) | |
216 | 228 | else false) | |
217 | 229 | then 0 | |
218 | 230 | else HeightTransactFundBox | |
219 | 231 | let currentKey = toBase58String(i.caller.bytes) | |
220 | 232 | let currentAmount = match getInteger(this, UserStakedTokenKey) { | |
221 | 233 | case a: Int => | |
222 | 234 | a | |
223 | 235 | case _ => | |
224 | 236 | 0 | |
225 | 237 | } | |
226 | 238 | let newAmount = (currentAmount - amount) | |
227 | 239 | let StakeBalanceAmount = (StakeBalance - amount) | |
228 | 240 | if ((0 > amount)) | |
229 | 241 | then throw("Can't withdraw negative amount") | |
230 | 242 | else if ((0 > newAmount)) | |
231 | 243 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
232 | 244 | else { | |
233 | 245 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
234 | 246 | if ((1 > GovernTokenAmount)) | |
235 | 247 | then throw("No enough GovernToken In Contract") | |
236 | 248 | else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 100000000), DataEntry(UserStakedTokenKey, newAmount), DataEntry("StakeBalance", StakeBalanceAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, 100000000, GovernToken), ScriptTransfer(i.caller, amount, StakedToken)])) | |
237 | 249 | } | |
238 | 250 | } | |
239 | 251 | ||
240 | 252 | ||
241 | 253 | ||
242 | 254 | @Callable(i) | |
243 | 255 | func HarvestGovernToiken (amount) = { | |
244 | 256 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
245 | 257 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
246 | 258 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Earnings") | |
247 | 259 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
248 | 260 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
249 | 261 | case a: Int => | |
250 | 262 | a | |
251 | 263 | case _ => | |
252 | 264 | 0 | |
253 | 265 | } | |
254 | 266 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
255 | 267 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
256 | 268 | case a: Int => | |
257 | 269 | a | |
258 | 270 | case _ => | |
259 | 271 | 0 | |
260 | 272 | } | |
261 | 273 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
262 | 274 | then (PrizeAmount != 0) | |
263 | 275 | else false) | |
264 | 276 | then height | |
265 | 277 | else if (if ((HeightTransactFundBox != 0)) | |
266 | 278 | then (PrizeAmount == 0) | |
267 | 279 | else false) | |
268 | 280 | then 0 | |
269 | 281 | else HeightTransactFundBox | |
270 | 282 | let currentKey = toBase58String(i.caller.bytes) | |
271 | 283 | let currentAmount = match getInteger(this, UserGovernTokenKey) { | |
272 | 284 | case a: Int => | |
273 | 285 | a | |
274 | 286 | case _ => | |
275 | 287 | 0 | |
276 | 288 | } | |
277 | 289 | let newAmount = (currentAmount - amount) | |
278 | 290 | if ((0 > amount)) | |
279 | 291 | then throw("Can't withdraw negative amount") | |
280 | 292 | else if ((0 > newAmount)) | |
281 | 293 | then throw(("User cannot withdraw more than deposited funds, Your deposit is: " + toString((currentAmount / 100000000)))) | |
282 | 294 | else { | |
283 | 295 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
284 | 296 | ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, newAmount), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", PrizeHeightValue)]), TransferSet([ScriptTransfer(i.caller, amount, GovernToken)])) | |
285 | 297 | } | |
286 | 298 | } | |
287 | 299 | ||
288 | 300 | ||
289 | 301 | ||
290 | 302 | @Callable(i) | |
291 | 303 | func delayprize () = { | |
292 | 304 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
293 | 305 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
294 | 306 | let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken)) | |
295 | 307 | let UserWalletSGovernBalance = assetBalance(Address(i.caller.bytes), GovernToken) | |
296 | 308 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
297 | 309 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
298 | 310 | case a: Int => | |
299 | 311 | a | |
300 | 312 | case _ => | |
301 | 313 | 0 | |
302 | 314 | } | |
303 | 315 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
304 | 316 | let HeightTransactFundBox = match getInteger(this, "PrizeHeight") { | |
305 | 317 | case a: Int => | |
306 | 318 | a | |
307 | 319 | case _ => | |
308 | 320 | 0 | |
309 | 321 | } | |
310 | 322 | let PrizeHeightValue = if (if ((HeightTransactFundBox == 0)) | |
311 | 323 | then (PrizeAmount != 0) | |
312 | 324 | else false) | |
313 | 325 | then height | |
314 | 326 | else if (if ((HeightTransactFundBox != 0)) | |
315 | 327 | then (PrizeAmount == 0) | |
316 | 328 | else false) | |
317 | 329 | then 0 | |
318 | 330 | else HeightTransactFundBox | |
319 | 331 | let ActualDelay = match getInteger(this, "Delay") { | |
320 | 332 | case a: Int => | |
321 | 333 | a | |
322 | 334 | case _ => | |
323 | 335 | 0 | |
324 | 336 | } | |
325 | 337 | let ActualDelayCost = match getInteger(this, "DelayCost") { | |
326 | 338 | case a: Int => | |
327 | 339 | a | |
328 | 340 | case _ => | |
329 | 341 | 10 | |
330 | 342 | } | |
331 | 343 | let pmt = extract(i.payment) | |
332 | 344 | if (if (isDefined(pmt.assetId)) | |
333 | 345 | then (extract(pmt.assetId) == GovernToken) | |
334 | 346 | else false) | |
335 | 347 | then { | |
336 | 348 | let UserGovernTokenAmount = pmt.amount | |
337 | 349 | let NewDelayCost = if ((ActualDelayCost == 0)) | |
338 | 350 | then 1000000000 | |
339 | 351 | else (2 * ActualDelayCost) | |
340 | 352 | if ((UserGovernTokenAmount >= NewDelayCost)) | |
341 | 353 | then { | |
342 | 354 | let NewDelay = (ActualDelay + 10) | |
343 | 355 | WriteSet([DataEntry("Delay", NewDelay), DataEntry("DelayCost", NewDelayCost), DataEntry("FundBox", PrizeAmount), DataEntry("PrizeHeight", height)]) | |
344 | 356 | } | |
345 | 357 | else throw((("To delay the release of the reward ONE DAY later than expected, you need " + toString(NewDelayCost)) + "TROIKAs")) | |
346 | 358 | } | |
347 | 359 | else throw("Can Use only Govern Token to Delay Reward") | |
348 | 360 | } | |
349 | 361 | ||
350 | 362 | ||
351 | 363 | ||
352 | 364 | @Callable(i) | |
353 | 365 | func ClaimPrize () = { | |
354 | 366 | let StakedToken = base58'DEjmrvdViZH7trtuAqaKQFjNjfbK6D7yMHm18UQ8Hj21' | |
355 | 367 | let GovernToken = base58'27RauQwTvdbcPqeFkzoTf5WPt3HtEAmRDVxprWUNp6bA' | |
356 | 368 | let UserStakedTokenKey = (toBase58String(i.caller.bytes) + "_Staking") | |
357 | 369 | let UserGovernTokenKey = (toBase58String(i.caller.bytes) + "_Push") | |
358 | 370 | let GovernTokenAmount = assetBalance(this, GovernToken) | |
359 | 371 | let ContractWalletStakeBalance = assetBalance(this, StakedToken) | |
360 | 372 | let StakeBalance = match getInteger(this, "StakeBalance") { | |
361 | 373 | case a: Int => | |
362 | 374 | a | |
363 | 375 | case _ => | |
364 | 376 | 0 | |
365 | 377 | } | |
366 | 378 | let PrizeAmount = (ContractWalletStakeBalance - StakeBalance) | |
367 | 379 | let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) { | |
368 | 380 | case a: Int => | |
369 | 381 | a | |
370 | 382 | case _ => | |
371 | 383 | 0 | |
372 | 384 | } | |
373 | 385 | let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) { | |
374 | 386 | case a: Int => | |
375 | 387 | a | |
376 | 388 | case _ => | |
377 | 389 | 0 | |
378 | 390 | } | |
379 | 391 | let ActualDelay = match getInteger(this, "Delay") { | |
380 | 392 | case a: Int => | |
381 | 393 | a | |
382 | 394 | case _ => | |
383 | 395 | 0 | |
384 | 396 | } | |
385 | 397 | let GovernTokenKey = "GovernTokenMaxDeposit" | |
386 | 398 | let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey" | |
387 | 399 | let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey) | |
388 | 400 | let PrizeHeight = match getInteger(this, "PrizeHeight") { | |
389 | 401 | case a: Int => | |
390 | 402 | a | |
391 | 403 | case _ => | |
392 | 404 | 0 | |
393 | 405 | } | |
394 | 406 | let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) { | |
395 | 407 | case a: Int => | |
396 | 408 | a | |
397 | 409 | case _ => | |
398 | 410 | 0 | |
399 | 411 | } | |
400 | 412 | if (if ((PrizeAmount == 0)) | |
401 | 413 | then true | |
402 | 414 | else (10000000000 > GovernTokenAmount)) | |
403 | 415 | then throw("No prize to Claim or No enough Govern Token en Contract (Min 100 Troika)") | |
404 | 416 | else if ((UserGovernTokenKey != PrizeWinner)) | |
405 | 417 | then throw("You are not the winner hence cannot claim the reward ") | |
406 | 418 | else if ((1 > UserStakedTokenAmount)) | |
407 | 419 | then throw(("You have to Stake StakedToken to claim reward | |
408 | 420 | Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount))) | |
409 | 421 | else if (if (if ((UserGovernTokenAmount >= 10000000000)) | |
410 | 422 | then (height >= (PrizeHeight + ActualDelay)) | |
411 | 423 | else false) | |
412 | 424 | then (height > 0) | |
413 | 425 | else false) | |
414 | 426 | then if ((UserGovernTokenAmount >= MaxGovernTokenDeposit)) | |
415 | 427 | then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry("FundBox", 0), DataEntry(GovernTokenKey, 0), DataEntry(UserGovernTokenKey, 0), DataEntry(MaxGovernTokenDepositerKey, ""), DataEntry("PrizeHeight", 0), DataEntry("Delay", 0), DataEntry("DelayCost", 0), DataEntry("LastWinner", PrizeWinner), DataEntry("LastPrize", PrizeAmount)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 1000000000, GovernToken)])) | |
416 | 428 | else throw((("You should deposit at least " + toString(MaxGovernTokenDeposit)) + " to be able to claim reward")) | |
417 | 429 | else throw(((((((("You have to deposit 100 GovernToken to claim Reward | |
418 | 430 | Your Balance is: " + toString(UserGovernTokenAmount)) + " | |
419 | - | Deposit done at: ") + toString(PrizeHeight)) + " And wait:") + toString((PrizeHeight + | |
431 | + | Deposit done at: ") + toString(PrizeHeight)) + " And wait:") + toString((PrizeHeight + ActualDelay))) + "And Height is:") + toString(height))) | |
420 | 432 | } | |
421 | 433 | ||
422 | 434 |
github/deemru/w8io/169f3d6 50.21 ms ◑