tx · BupqyjFuTsyxEeK9gQ3vBM9X64uq1zpYZVdMC5nQaYZu 3NCGjbgqZVk7eaqrLMEnEnqRhozNm1KTG5z: -0.01400000 Waves 2025.01.11 15:28 [3454515] smart account 3NCGjbgqZVk7eaqrLMEnEnqRhozNm1KTG5z > SELF 0.00000000 Waves
{ "type": 13, "id": "BupqyjFuTsyxEeK9gQ3vBM9X64uq1zpYZVdMC5nQaYZu", "fee": 1400000, "feeAssetId": null, "timestamp": 1736598495210, "version": 2, "chainId": 84, "sender": "3NCGjbgqZVk7eaqrLMEnEnqRhozNm1KTG5z", "senderPublicKey": "5CoDbXxoqnvJpx9GrS6M4G5GYJXh9rcoiXJz7RYTPVkL", "proofs": [ "4PFb29kFszF28XSLkqcKpSLRRZyFDTTwyVBLQKwrWG4V8KiawHCAJgPpmzMHjNpd4HBocB3soNbQv2RJ5E4zS9FW" ], "script": "base64:BgIyCAISCgoIAQgEAhEYFBISBAoCCAgSABIDCgEBEgASABIAEgMKAQESABIDCgEIEgMKAQgvAANNMTYAgICE/qbe4READlNUQUtFUlNfQU1PVU5UAICAzvK+j6oFAAtURUFNX0FNT1VOVACAgJqm6q/jAQANTUFSS0VUX0FNT1VOVACAgJzl/Z7UCgALWUVBUl9CTE9DS1MJAGgCAO0CAKALAAxTVEFLRV9QRVJJT0QJAGgCAAUFC1lFQVJfQkxPQ0tTAAtCTEVTU19QUklDRQCA0NvD9AIADUxPVFRFUllfUFJJQ0UAgNDbw/QCABNERUZBVUxUX0ZPTU9fUEVSSU9EADwAD01JTl9GT01PX1BFUklPRAACAAxSQU5ET01fREVMQVkAAgAUQ1VSUkVOVF9KQUNLUE9UX1BFUkMAMgARTkVYVF9KQUNLUE9UX1BFUkMAFAAMU1RBS0VSU19QRVJDABQACVRFQU1fUEVSQwAKAA5nb3JjQXNzZXRJZEtleQILZ29yY0Fzc2V0SWQAC2dvcmNBc3NldElkCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAKEIAQUOZ29yY0Fzc2V0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URPTkxZAQ51c2VyQWRkcmVzc09wdAkAlAoCBQNuaWwJAQ53YWxsZXRJbnRlcm5hbAEFDnVzZXJBZGRyZXNzT3B0AKj9Zwk=", "height": 3454515, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8FKkxFVgbff7We1HYdDk9TsPERUy3bd4DuamRE85kmeT Next: none Diff:
Old | New | Differences | |
---|---|---|---|
356 | 356 | let guessKey = keyGuess(userAddrOpt) | |
357 | 357 | let guess = valueOrElse(getInteger(guessKey), -1) | |
358 | 358 | let finishBlock = valueOrElse(getInteger(finishKey), -1) | |
359 | - | $Tuple2(nil, [("%s%d__gorcAvailToClaim__" + toString(userAmount)), ("%s%d__fomoEpoch__" + toString(fomoEpoch)), ("%s%d__currFomoPeriod__" + toString(currFomoPeriod)), ("%s%d__currFomoJackpotAmount__" + toString(currFomoJackpot)), ("%s%d__nextFomoJackpotAmount__" + toString(nextFomoJackpot)), ("%s%d__currLotteryJackpotAmount__" + toString(currLotteryJackpot)), ("%s%d__nextLotteryJackpotAmount__" + toString(nextLotteryJackpot)), ("%s%d__lastFomoTime__" + toString(lastFomoTime)), ("%s%s__lastFomoPlayer__" + lastFomoPlayer), ("%s%d__amountLeftTotal__" + toString(amountLeftTotal)), ("%s%d__finishBlock__" + toString(finishBlock)), ("%s%d__guess__" + toString(guess))]) | |
359 | + | let lastFomoWinner = valueOrElse(getString(lastFomoWinnerKey), "") | |
360 | + | let lastFomoWinnerAmount = valueOrElse(getInteger(lastFomoWinnerAmountKey), 0) | |
361 | + | let lastFomoWinnerTime = valueOrElse(getInteger(lastFomoWinnerTimeKey), 0) | |
362 | + | let lastLotteryWinner = valueOrElse(getString(lastLotteryWinnerKey), "") | |
363 | + | let lastLotteryWinnerAmount = valueOrElse(getInteger(lastLotteryWinnerAmountKey), 0) | |
364 | + | let lastLotteryWinnerTime = valueOrElse(getInteger(lastLotteryWinnerTimeKey), 0) | |
365 | + | $Tuple2(nil, [("%s%d__gorcAvailToClaim__" + toString(userAmount)), ("%s%d__fomoEpoch__" + toString(fomoEpoch)), ("%s%d__currFomoPeriod__" + toString(currFomoPeriod)), ("%s%d__currFomoJackpotAmount__" + toString(currFomoJackpot)), ("%s%d__nextFomoJackpotAmount__" + toString(nextFomoJackpot)), ("%s%d__currLotteryJackpotAmount__" + toString(currLotteryJackpot)), ("%s%d__nextLotteryJackpotAmount__" + toString(nextLotteryJackpot)), ("%s%d__lastFomoTime__" + toString(lastFomoTime)), ("%s%s__lastFomoPlayer__" + lastFomoPlayer), ("%s%d__amountLeftTotal__" + toString(amountLeftTotal)), ("%s%d__finishBlock__" + toString(finishBlock)), ("%s%d__guess__" + toString(guess)), ("%s%s__lastFomoWinner__" + lastFomoWinner), ("%s%d__lastFomoWinnerAmount__" + toString(lastFomoWinnerAmount)), ("%s%d__lastFomoWinnerTime__" + toString(lastFomoWinnerTime)), ("%s%s__lastLotteryWinner__" + lastLotteryWinner), ("%s%d__lastLotteryWinnerAmount__" + toString(lastLotteryWinnerAmount)), ("%s%d__lastLotteryWinnerTime__" + toString(lastLotteryWinnerTime))]) | |
360 | 366 | } | |
361 | 367 | ||
362 | 368 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let M16 = 10000000000000000 | |
5 | 5 | ||
6 | 6 | let STAKERS_AMOUNT = 3000000000000000 | |
7 | 7 | ||
8 | 8 | let TEAM_AMOUNT = 1000000000000000 | |
9 | 9 | ||
10 | 10 | let MARKET_AMOUNT = 6000000000000000 | |
11 | 11 | ||
12 | 12 | let YEAR_BLOCKS = (365 * 1440) | |
13 | 13 | ||
14 | 14 | let STAKE_PERIOD = (5 * YEAR_BLOCKS) | |
15 | 15 | ||
16 | 16 | let BLESS_PRICE = 100000000000 | |
17 | 17 | ||
18 | 18 | let LOTTERY_PRICE = 100000000000 | |
19 | 19 | ||
20 | 20 | let DEFAULT_FOMO_PERIOD = 60 | |
21 | 21 | ||
22 | 22 | let MIN_FOMO_PERIOD = 2 | |
23 | 23 | ||
24 | 24 | let RANDOM_DELAY = 2 | |
25 | 25 | ||
26 | 26 | let CURRENT_JACKPOT_PERC = 50 | |
27 | 27 | ||
28 | 28 | let NEXT_JACKPOT_PERC = 20 | |
29 | 29 | ||
30 | 30 | let STAKERS_PERC = 20 | |
31 | 31 | ||
32 | 32 | let TEAM_PERC = 10 | |
33 | 33 | ||
34 | 34 | let gorcAssetIdKey = "gorcAssetId" | |
35 | 35 | ||
36 | 36 | let gorcAssetId = valueOrErrorMessage(getBinary(gorcAssetIdKey), "GORC is not issued yet") | |
37 | 37 | ||
38 | 38 | let issueTimeKey = "issueTime" | |
39 | 39 | ||
40 | 40 | let stakersAmountTotalKey = "stakersAmountTotal" | |
41 | 41 | ||
42 | 42 | let stakersAmountLeftKey = "stakersAmountLeft" | |
43 | 43 | ||
44 | 44 | let stakedAmountTotalKey = "stakedTotal" | |
45 | 45 | ||
46 | 46 | func stakedAmountByUserKey (addr) = ("stakedAmount_" + addr) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func lastClaimTimeByUserKey (addr) = ("lastClaimTime_" + addr) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let fomoEpochKey = "fomoEpoch" | |
53 | 53 | ||
54 | 54 | let currFomoPeriodKey = "currFomoPeriod" | |
55 | 55 | ||
56 | 56 | let lastFomoTimeKey = "lastFomoTime" | |
57 | 57 | ||
58 | 58 | let currFomoJackpotKey = "currFomoJackpot" | |
59 | 59 | ||
60 | 60 | let nextFomoJackpotKey = "nextFomoJackpot" | |
61 | 61 | ||
62 | 62 | let lastFomoPlayerKey = "lastFomoPlayer" | |
63 | 63 | ||
64 | 64 | let lastFomoWinnerKey = "lastFomoWinner" | |
65 | 65 | ||
66 | 66 | let lastFomoWinnerAmountKey = "lastFomoWinnerAmount" | |
67 | 67 | ||
68 | 68 | let lastFomoWinnerTimeKey = "lastFomoWinnerTime" | |
69 | 69 | ||
70 | 70 | let teamWalletAddrKey = "teamWalletAddr" | |
71 | 71 | ||
72 | 72 | let brokerAddrKey = "brokerAddr" | |
73 | 73 | ||
74 | 74 | func keyCommit (address) = ("finishBlockFor_" + address) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyGuess (address) = ("guessFor_" + address) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keySalt (address) = ("saltFor_" + address) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let currLotteryJackpotKey = "currLotteryJackpot" | |
84 | 84 | ||
85 | 85 | let nextLotteryJackpotKey = "nextLotteryJackpot" | |
86 | 86 | ||
87 | 87 | let lastLotteryWinnerKey = "lastLotteryWinner" | |
88 | 88 | ||
89 | 89 | let lastLotteryWinnerAmountKey = "lastLotteryWinnerAmount" | |
90 | 90 | ||
91 | 91 | let lastLotteryWinnerTimeKey = "lastLotteryWinnerTime" | |
92 | 92 | ||
93 | 93 | func gorcStats (userAddrOpt) = { | |
94 | 94 | let amountLeftTotal = valueOrElse(getInteger(stakersAmountLeftKey), 0) | |
95 | 95 | let lastUserTime = valueOrElse(getInteger(lastClaimTimeByUserKey(userAddrOpt)), -1) | |
96 | 96 | if ((0 > lastUserTime)) | |
97 | 97 | then $Tuple2(0, amountLeftTotal) | |
98 | 98 | else { | |
99 | 99 | let issueTime = valueOrErrorMessage(getInteger(issueTimeKey), "GORC is not issued yet") | |
100 | 100 | let nowLimited = min([height, (issueTime + STAKE_PERIOD)]) | |
101 | 101 | let userShares = valueOrElse(getInteger(stakedAmountByUserKey(userAddrOpt)), 0) | |
102 | 102 | let totalShares = valueOrElse(getInteger(stakedAmountTotalKey), 0) | |
103 | 103 | let stakersAmountTotal = valueOrElse(getInteger(stakersAmountTotalKey), STAKERS_AMOUNT) | |
104 | 104 | let userTemporal = fraction(stakersAmountTotal, (nowLimited - lastUserTime), STAKE_PERIOD) | |
105 | 105 | let userAmount = if ((totalShares != 0)) | |
106 | 106 | then fraction(userTemporal, userShares, totalShares) | |
107 | 107 | else 0 | |
108 | 108 | $Tuple2(userAmount, (amountLeftTotal - userAmount)) | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func fixedPoint (val,decimals) = { | |
114 | 114 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
115 | 115 | let lowPart = toString((val % tenPow)) | |
116 | 116 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
117 | 117 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func fomoInternal (i) = if ((size(i.payments) != 1)) | |
122 | 122 | then throw("exactly 1 payment must be attached") | |
123 | 123 | else { | |
124 | 124 | let pmt = i.payments[0] | |
125 | 125 | let amt = pmt.amount | |
126 | 126 | if (if (!(isDefined(pmt.assetId))) | |
127 | 127 | then true | |
128 | 128 | else (value(pmt.assetId) != gorcAssetId)) | |
129 | 129 | then throw("GORC payments only!") | |
130 | 130 | else { | |
131 | 131 | let change = (amt - BLESS_PRICE) | |
132 | 132 | if ((0 > change)) | |
133 | 133 | then throw(((("You need to sacrifice " + fixedPoint(BLESS_PRICE, 8)) + " GORC, but I see only ") + fixedPoint(amt, 8))) | |
134 | 134 | else { | |
135 | 135 | let changeActions = if ((change > 0)) | |
136 | 136 | then [ScriptTransfer(i.caller, change, gorcAssetId)] | |
137 | 137 | else nil | |
138 | 138 | let lastFomoTime = valueOrElse(getInteger(lastFomoTimeKey), 0) | |
139 | 139 | let lastFomoPlayer = valueOrElse(getString(lastFomoPlayerKey), "") | |
140 | 140 | let deltaCurrJackpot = fraction(BLESS_PRICE, CURRENT_JACKPOT_PERC, 100) | |
141 | 141 | let deltaNextJackpot = fraction(BLESS_PRICE, NEXT_JACKPOT_PERC, 100) | |
142 | 142 | let deltaTeamAmount = fraction(BLESS_PRICE, TEAM_PERC, 100) | |
143 | 143 | let deltaStakersAmount = (((BLESS_PRICE - deltaCurrJackpot) - deltaNextJackpot) - deltaTeamAmount) | |
144 | 144 | let fomoEpoch = valueOrElse(getInteger(fomoEpochKey), 0) | |
145 | 145 | let currFomoPeriod = valueOrElse(getInteger(currFomoPeriodKey), DEFAULT_FOMO_PERIOD) | |
146 | 146 | let nextFomoPeriod = max([MIN_FOMO_PERIOD, (currFomoPeriod - 1)]) | |
147 | 147 | let fomoCurrJackpot = valueOrElse(getInteger(currFomoJackpotKey), 0) | |
148 | 148 | let fomoNextJackpot = valueOrElse(getInteger(nextFomoJackpotKey), 0) | |
149 | 149 | let fomoActions = if (if (if ((height > (lastFomoTime + currFomoPeriod))) | |
150 | 150 | then (fomoCurrJackpot > 0) | |
151 | 151 | else false) | |
152 | 152 | then (lastFomoPlayer != "") | |
153 | 153 | else false) | |
154 | 154 | then [ScriptTransfer(addressFromStringValue(lastFomoPlayer), fomoCurrJackpot, gorcAssetId), StringEntry(lastFomoWinnerKey, lastFomoPlayer), IntegerEntry(lastFomoWinnerAmountKey, fomoCurrJackpot), IntegerEntry(lastFomoWinnerTimeKey, lastBlock.timestamp), IntegerEntry(currFomoJackpotKey, (fomoNextJackpot + deltaCurrJackpot)), IntegerEntry(nextFomoJackpotKey, deltaNextJackpot), IntegerEntry(fomoEpochKey, (fomoEpoch + 1)), IntegerEntry(currFomoPeriodKey, DEFAULT_FOMO_PERIOD)] | |
155 | 155 | else [IntegerEntry(currFomoJackpotKey, (fomoCurrJackpot + deltaCurrJackpot)), IntegerEntry(nextFomoJackpotKey, (fomoNextJackpot + deltaNextJackpot)), IntegerEntry(currFomoPeriodKey, nextFomoPeriod)] | |
156 | 156 | (([IntegerEntry(lastFomoTimeKey, height), StringEntry(lastFomoPlayerKey, toString(i.caller)), ScriptTransfer(addressFromStringValue(getStringValue(teamWalletAddrKey)), deltaTeamAmount, gorcAssetId), IntegerEntry(stakersAmountLeftKey, (getIntegerValue(stakersAmountLeftKey) + deltaStakersAmount)), IntegerEntry(stakersAmountTotalKey, (getIntegerValue(stakersAmountTotalKey) + deltaStakersAmount))] ++ changeActions) ++ fomoActions) | |
157 | 157 | } | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
163 | 163 | then throw("maxValue should be > 0") | |
164 | 164 | else { | |
165 | 165 | let randomHash = sha256_16Kb((salt + entropy)) | |
166 | 166 | (toInt(randomHash) % maxValue) | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func walletInternal (userAddressOpt) = { | |
171 | 171 | let addr = addressFromString(userAddressOpt) | |
172 | 172 | let balance = if (isDefined(addr)) | |
173 | 173 | then wavesBalance(value(addr)) | |
174 | 174 | else BalanceDetails(0, 0, 0, 0) | |
175 | 175 | let gorcBalance = if (isDefined(addr)) | |
176 | 176 | then assetBalance(value(addr), gorcAssetId) | |
177 | 177 | else 0 | |
178 | 178 | let stakedGorc = valueOrElse(getInteger(stakedAmountByUserKey(userAddressOpt)), 0) | |
179 | 179 | [("%s%d__wavesBalance__" + toString(balance.available)), ("%s%d__gorcBalance__" + toString(gorcBalance)), ("%s%d__stakedGorc__" + toString(stakedGorc))] | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(i) | |
184 | 184 | func testArgs (intVal,strVal,boolVal,binVal,arrInt,arrStr,arrBool,arrBin) = nil | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | ||
188 | 188 | @Callable(i) | |
189 | 189 | func constructorV1 (teamWalletAddr,brokerAddr) = if ((i.caller != this)) | |
190 | 190 | then throw("Permission denied") | |
191 | 191 | else { | |
192 | 192 | let issuedAmount = M16 | |
193 | 193 | let issue = Issue("GORC", "Meme coin by God of Random Chance. Visit https://gorc.meme, sacrifice to the God of Random and you will receive an answer to any question or a blessing. Lucky one gets a Gift of God", issuedAmount, 8, false, unit, 0) | |
194 | 194 | let assetId = calculateAssetId(issue) | |
195 | 195 | [issue, BinaryEntry(gorcAssetIdKey, assetId), IntegerEntry(issueTimeKey, height), IntegerEntry(stakersAmountLeftKey, STAKERS_AMOUNT), IntegerEntry(stakersAmountTotalKey, STAKERS_AMOUNT), StringEntry(teamWalletAddrKey, teamWalletAddr), StringEntry(brokerAddrKey, brokerAddr), ScriptTransfer(addressFromStringValue(teamWalletAddr), TEAM_AMOUNT, assetId), ScriptTransfer(addressFromStringValue(brokerAddr), MARKET_AMOUNT, assetId), IntegerEntry(fomoEpochKey, 0), IntegerEntry(currFomoPeriodKey, DEFAULT_FOMO_PERIOD)] | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(i) | |
201 | 201 | func stakeGorc () = if ((size(i.payments) != 1)) | |
202 | 202 | then throw("exactly 1 payment must be attached") | |
203 | 203 | else { | |
204 | 204 | let pmt = i.payments[0] | |
205 | 205 | let amt = pmt.amount | |
206 | 206 | if (if (!(isDefined(pmt.assetId))) | |
207 | 207 | then true | |
208 | 208 | else (value(pmt.assetId) != gorcAssetId)) | |
209 | 209 | then throw("GORC payments only!") | |
210 | 210 | else { | |
211 | 211 | let addr = toString(i.caller) | |
212 | 212 | let $t080368087 = gorcStats(addr) | |
213 | 213 | let userAmount = $t080368087._1 | |
214 | 214 | let amountLeftTotal = $t080368087._2 | |
215 | 215 | let userAmountKey = stakedAmountByUserKey(addr) | |
216 | 216 | let claimActions = if ((userAmount > 0)) | |
217 | 217 | then [ScriptTransfer(i.caller, userAmount, gorcAssetId)] | |
218 | 218 | else nil | |
219 | 219 | $Tuple2((claimActions ++ [IntegerEntry(stakedAmountTotalKey, (valueOrElse(getInteger(stakedAmountTotalKey), 0) + amt)), IntegerEntry(userAmountKey, (valueOrElse(getInteger(userAmountKey), 0) + amt)), IntegerEntry(lastClaimTimeByUserKey(addr), height), IntegerEntry(stakersAmountLeftKey, amountLeftTotal)]), userAmount) | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func unstakeGorc (amount) = if ((0 >= amount)) | |
227 | 227 | then throw("Amount should be positive") | |
228 | 228 | else { | |
229 | 229 | let addr = toString(i.caller) | |
230 | 230 | if ((size(i.payments) != 0)) | |
231 | 231 | then throw("No payments required") | |
232 | 232 | else { | |
233 | 233 | let userAmountKey = stakedAmountByUserKey(addr) | |
234 | 234 | let oldAmount = valueOrElse(getInteger(userAmountKey), 0) | |
235 | 235 | if ((0 > (oldAmount - amount))) | |
236 | 236 | then throw(((("You have only " + fixedPoint(oldAmount, 8)) + " GORC staked, tried to unstake ") + fixedPoint(amount, 8))) | |
237 | 237 | else { | |
238 | 238 | let $t090489099 = gorcStats(addr) | |
239 | 239 | let userAmount = $t090489099._1 | |
240 | 240 | let amountLeftTotal = $t090489099._2 | |
241 | 241 | let claimActions = if ((userAmount > 0)) | |
242 | 242 | then [ScriptTransfer(i.caller, userAmount, gorcAssetId)] | |
243 | 243 | else nil | |
244 | 244 | $Tuple2((claimActions ++ [IntegerEntry(stakedAmountTotalKey, (valueOrErrorMessage(getInteger(stakedAmountTotalKey), "No GORC staked") - amount)), IntegerEntry(userAmountKey, (oldAmount - amount)), IntegerEntry(lastClaimTimeByUserKey(addr), height), IntegerEntry(stakersAmountLeftKey, amountLeftTotal)]), 0) | |
245 | 245 | } | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | ||
251 | 251 | @Callable(i) | |
252 | 252 | func claimGorc () = if ((size(i.payments) != 0)) | |
253 | 253 | then throw("No payments required") | |
254 | 254 | else { | |
255 | 255 | let addr = toString(i.caller) | |
256 | 256 | let $t096639714 = gorcStats(addr) | |
257 | 257 | let userAmount = $t096639714._1 | |
258 | 258 | let amountLeftTotal = $t096639714._2 | |
259 | 259 | let claimActions = if ((userAmount > 0)) | |
260 | 260 | then [ScriptTransfer(i.caller, userAmount, gorcAssetId)] | |
261 | 261 | else nil | |
262 | 262 | $Tuple2((claimActions ++ [IntegerEntry(lastClaimTimeByUserKey(addr), height), IntegerEntry(stakersAmountLeftKey, amountLeftTotal)]), userAmount) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
267 | 267 | @Callable(i) | |
268 | 268 | func answerMe () = $Tuple2(fomoInternal(i), toInt(i.transactionId)) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(i) | |
273 | 273 | func blessMe () = $Tuple2(fomoInternal(i), 42) | |
274 | 274 | ||
275 | 275 | ||
276 | 276 | ||
277 | 277 | @Callable(i) | |
278 | 278 | func commitGuess (guess) = { | |
279 | 279 | let addr = toString(i.caller) | |
280 | 280 | let finishKey = keyCommit(addr) | |
281 | 281 | let guessKey = keyGuess(addr) | |
282 | 282 | if (isDefined(getInteger(finishKey))) | |
283 | 283 | then throw("You already made a bet, please use it") | |
284 | 284 | else if (if ((0 > guess)) | |
285 | 285 | then true | |
286 | 286 | else (guess > 11)) | |
287 | 287 | then throw("The number should be between 0 and 11") | |
288 | 288 | else if ((size(i.payments) != 1)) | |
289 | 289 | then throw("exactly 1 payment must be attached") | |
290 | 290 | else { | |
291 | 291 | let pmt = i.payments[0] | |
292 | 292 | let amt = pmt.amount | |
293 | 293 | if (if (!(isDefined(pmt.assetId))) | |
294 | 294 | then true | |
295 | 295 | else (value(pmt.assetId) != gorcAssetId)) | |
296 | 296 | then throw("GORC payments only!") | |
297 | 297 | else { | |
298 | 298 | let change = (amt - LOTTERY_PRICE) | |
299 | 299 | if ((0 > change)) | |
300 | 300 | then throw(((("You need to sacrifice " + fixedPoint(LOTTERY_PRICE, 8)) + " GORC, but I see only ") + fixedPoint(amt, 8))) | |
301 | 301 | else { | |
302 | 302 | let changeActions = if ((change > 0)) | |
303 | 303 | then [ScriptTransfer(i.caller, change, gorcAssetId)] | |
304 | 304 | else nil | |
305 | 305 | let finishBlock = (height + RANDOM_DELAY) | |
306 | 306 | let deltaCurrJackpot = fraction(LOTTERY_PRICE, CURRENT_JACKPOT_PERC, 100) | |
307 | 307 | let deltaNextJackpot = fraction(LOTTERY_PRICE, NEXT_JACKPOT_PERC, 100) | |
308 | 308 | let deltaTeamAmount = fraction(LOTTERY_PRICE, TEAM_PERC, 100) | |
309 | 309 | let deltaStakersAmount = (((LOTTERY_PRICE - deltaCurrJackpot) - deltaNextJackpot) - deltaTeamAmount) | |
310 | 310 | $Tuple2(([IntegerEntry(finishKey, finishBlock), IntegerEntry(guessKey, guess), IntegerEntry(currLotteryJackpotKey, (valueOrElse(getInteger(currLotteryJackpotKey), 0) + deltaCurrJackpot)), IntegerEntry(nextLotteryJackpotKey, (valueOrElse(getInteger(nextLotteryJackpotKey), 0) + deltaNextJackpot)), ScriptTransfer(addressFromStringValue(getStringValue(teamWalletAddrKey)), deltaTeamAmount, gorcAssetId), IntegerEntry(stakersAmountLeftKey, (getIntegerValue(stakersAmountLeftKey) + deltaStakersAmount)), IntegerEntry(stakersAmountTotalKey, (getIntegerValue(stakersAmountTotalKey) + deltaStakersAmount)), StringEntry(keySalt(addr), toBase58String(i.transactionId))] ++ changeActions), finishBlock) | |
311 | 311 | } | |
312 | 312 | } | |
313 | 313 | } | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | ||
318 | 318 | @Callable(i) | |
319 | 319 | func guessLottery () = { | |
320 | 320 | let addr = toString(i.caller) | |
321 | 321 | let finishKey = keyCommit(addr) | |
322 | 322 | let guessKey = keyGuess(addr) | |
323 | 323 | let guess = valueOrErrorMessage(getInteger(guessKey), "You have not made a bet") | |
324 | 324 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have not made a bet") | |
325 | 325 | if ((finishBlock > height)) | |
326 | 326 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
327 | 327 | else { | |
328 | 328 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
329 | 329 | let saltKey = keySalt(addr) | |
330 | 330 | let salt = fromBase58String(valueOrElse(getString(saltKey), "DEFAULT")) | |
331 | 331 | let rand = getRandomNumber(12, salt, entropy) | |
332 | 332 | let currJackpot = valueOrElse(getInteger(currLotteryJackpotKey), 0) | |
333 | 333 | let winActions = if ((rand == guess)) | |
334 | 334 | then [ScriptTransfer(i.caller, currJackpot, gorcAssetId), StringEntry(lastLotteryWinnerKey, addr), IntegerEntry(lastLotteryWinnerAmountKey, currJackpot), IntegerEntry(lastLotteryWinnerTimeKey, lastBlock.timestamp), IntegerEntry(currLotteryJackpotKey, valueOrElse(getInteger(nextLotteryJackpotKey), 0)), IntegerEntry(nextLotteryJackpotKey, 0)] | |
335 | 335 | else nil | |
336 | 336 | $Tuple2(([DeleteEntry(finishKey), DeleteEntry(guessKey), DeleteEntry(saltKey)] ++ winActions), rand) | |
337 | 337 | } | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Callable(i) | |
343 | 343 | func statsREADONLY (userAddrOpt) = { | |
344 | 344 | let $t01367713735 = gorcStats(userAddrOpt) | |
345 | 345 | let userAmount = $t01367713735._1 | |
346 | 346 | let amountLeftTotal = $t01367713735._2 | |
347 | 347 | let currFomoJackpot = valueOrElse(getInteger(currFomoJackpotKey), 0) | |
348 | 348 | let nextFomoJackpot = valueOrElse(getInteger(nextFomoJackpotKey), 0) | |
349 | 349 | let lastFomoTime = valueOrElse(getInteger(lastFomoTimeKey), 0) | |
350 | 350 | let lastFomoPlayer = valueOrElse(getString(lastFomoPlayerKey), "") | |
351 | 351 | let fomoEpoch = valueOrElse(getInteger(fomoEpochKey), 0) | |
352 | 352 | let currFomoPeriod = valueOrElse(getInteger(currFomoPeriodKey), DEFAULT_FOMO_PERIOD) | |
353 | 353 | let currLotteryJackpot = valueOrElse(getInteger(currLotteryJackpotKey), 0) | |
354 | 354 | let nextLotteryJackpot = valueOrElse(getInteger(nextLotteryJackpotKey), 0) | |
355 | 355 | let finishKey = keyCommit(userAddrOpt) | |
356 | 356 | let guessKey = keyGuess(userAddrOpt) | |
357 | 357 | let guess = valueOrElse(getInteger(guessKey), -1) | |
358 | 358 | let finishBlock = valueOrElse(getInteger(finishKey), -1) | |
359 | - | $Tuple2(nil, [("%s%d__gorcAvailToClaim__" + toString(userAmount)), ("%s%d__fomoEpoch__" + toString(fomoEpoch)), ("%s%d__currFomoPeriod__" + toString(currFomoPeriod)), ("%s%d__currFomoJackpotAmount__" + toString(currFomoJackpot)), ("%s%d__nextFomoJackpotAmount__" + toString(nextFomoJackpot)), ("%s%d__currLotteryJackpotAmount__" + toString(currLotteryJackpot)), ("%s%d__nextLotteryJackpotAmount__" + toString(nextLotteryJackpot)), ("%s%d__lastFomoTime__" + toString(lastFomoTime)), ("%s%s__lastFomoPlayer__" + lastFomoPlayer), ("%s%d__amountLeftTotal__" + toString(amountLeftTotal)), ("%s%d__finishBlock__" + toString(finishBlock)), ("%s%d__guess__" + toString(guess))]) | |
359 | + | let lastFomoWinner = valueOrElse(getString(lastFomoWinnerKey), "") | |
360 | + | let lastFomoWinnerAmount = valueOrElse(getInteger(lastFomoWinnerAmountKey), 0) | |
361 | + | let lastFomoWinnerTime = valueOrElse(getInteger(lastFomoWinnerTimeKey), 0) | |
362 | + | let lastLotteryWinner = valueOrElse(getString(lastLotteryWinnerKey), "") | |
363 | + | let lastLotteryWinnerAmount = valueOrElse(getInteger(lastLotteryWinnerAmountKey), 0) | |
364 | + | let lastLotteryWinnerTime = valueOrElse(getInteger(lastLotteryWinnerTimeKey), 0) | |
365 | + | $Tuple2(nil, [("%s%d__gorcAvailToClaim__" + toString(userAmount)), ("%s%d__fomoEpoch__" + toString(fomoEpoch)), ("%s%d__currFomoPeriod__" + toString(currFomoPeriod)), ("%s%d__currFomoJackpotAmount__" + toString(currFomoJackpot)), ("%s%d__nextFomoJackpotAmount__" + toString(nextFomoJackpot)), ("%s%d__currLotteryJackpotAmount__" + toString(currLotteryJackpot)), ("%s%d__nextLotteryJackpotAmount__" + toString(nextLotteryJackpot)), ("%s%d__lastFomoTime__" + toString(lastFomoTime)), ("%s%s__lastFomoPlayer__" + lastFomoPlayer), ("%s%d__amountLeftTotal__" + toString(amountLeftTotal)), ("%s%d__finishBlock__" + toString(finishBlock)), ("%s%d__guess__" + toString(guess)), ("%s%s__lastFomoWinner__" + lastFomoWinner), ("%s%d__lastFomoWinnerAmount__" + toString(lastFomoWinnerAmount)), ("%s%d__lastFomoWinnerTime__" + toString(lastFomoWinnerTime)), ("%s%s__lastLotteryWinner__" + lastLotteryWinner), ("%s%d__lastLotteryWinnerAmount__" + toString(lastLotteryWinnerAmount)), ("%s%d__lastLotteryWinnerTime__" + toString(lastLotteryWinnerTime))]) | |
360 | 366 | } | |
361 | 367 | ||
362 | 368 | ||
363 | 369 | ||
364 | 370 | @Callable(i) | |
365 | 371 | func walletInfoREADONLY (userAddressOpt) = $Tuple2(nil, walletInternal(userAddressOpt)) | |
366 | 372 | ||
367 | 373 |
github/deemru/w8io/169f3d6 38.59 ms ◑