tx · FZU3x2ej42T7QXdfRqysebUgF2r5VGBVpLpPLzyXRUCv 3NApQZND35BcskVdo5Ukk7gSyP1148wtktt: -0.01400000 Waves 2019.09.16 21:43 [679161] smart account 3NApQZND35BcskVdo5Ukk7gSyP1148wtktt > SELF 0.00000000 Waves
{ "type": 13, "id": "FZU3x2ej42T7QXdfRqysebUgF2r5VGBVpLpPLzyXRUCv", "fee": 1400000, "feeAssetId": null, "timestamp": 1568659370737, "version": 1, "sender": "3NApQZND35BcskVdo5Ukk7gSyP1148wtktt", "senderPublicKey": "Hf6mTifVmE4QjnGG5MrTpZxwegLPYVUkrUnGYGE1hrVh", "proofs": [ "21cpi2JLikX8UduJp2fzD6sK5TFMXJNkecNinB2YNAemXzfv9acQZjmsTLVAhLbhnjYP9KoRtgtSczKHeUJdU88R" ], "script": "base64:AAIDAAAAAAAAAAAAAAAZAAAAAAtiZXRBc3NldElkcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGc3BvcnRyAgAAACxBY1R6VGdXMVFiSks0UXU2aENzVUNManB4VXlEM2RvZnY4eHEyQ0FQYnpLSgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAADZGV4AgAAAAVXQVZFUwUAAAADbmlsAAAAAAhkZXhBZ2VudAkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAAAAAAAAABm1heEZlZQAAAAAAAExLQAAAAAAGbWluQmV0AAAAAAAATEtAAAAAAA5taW5DcmVhdGVFdmVudAAAAAAAAcnDgAAAAAAPbWluTWF0Y2hOb21pbmFsAAAAAAAATEtAAAAAAA9kZXhKdWRnZUdyYWNlVHMJAABoAAAAAgkAAGgAAAACAAAAAAAAAAPoAAAAAAAAAAA8AAAAAAAAAAAFAAAAAAZsZXZlbDEAAAAAAAAAAPoAAAAABmxldmVsMgAAAAAAAAAAlgAAAAAGbGV2ZWwzAAAAAAAAAABkAAAAAAhjYXNoQmFjawAAAAAAAAAB9AAA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AIJAAEsAAAAAgUAAAAFb3duZXICAAAACF9yZWZlcmVyBQAAAAdyZWZlcmVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHcmVmZXJlcgIAAAAKX3JlZmVycmFsXwUAAAAFb3duZXIFAAAABW93bmVyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAABaQAAAANmZWUFAAAABHVuaXQFAAAAA25pbAAAAAAhXBM5", "chainId": 84, "height": 679161, "spentComplexity": 0 } View: original | compacted Prev: 9EduTHtEjczMrDzN1FyDBGVk7JUNR3VVbw7xYQ7oA9hE Next: C6ewsMT7WfdUNprYC6VAsc3zEig2n4r8vr1W9ygnU3SH Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let betAssetIds = [DataEntry("sportr", "AcTzTgW1QbJK4Qu6hCsUCLjpxUyD3dofv8xq2CAPbzKJ"), DataEntry("dex", "WAVES")] | |
5 | + | ||
6 | + | let dexAgent = addressFromStringValue("") | |
5 | 7 | ||
6 | 8 | let maxFee = 5000000 | |
7 | 9 | ||
10 | 12 | let minCreateEvent = 30000000 | |
11 | 13 | ||
12 | 14 | let minMatchNominal = 5000000 | |
15 | + | ||
16 | + | let dexJudgeGraceTs = ((1000 * 60) * 5) | |
13 | 17 | ||
14 | 18 | let level1 = 250 | |
15 | 19 | ||
164 | 168 | let betForOwner = getStringValue(this, (betFor + "_owner")) | |
165 | 169 | let betAgainstOwner = getStringValue(this, (betAgainst + "_owner")) | |
166 | 170 | let eventid = extract(getString(this, (betFor + "_event"))) | |
167 | - | let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + toBase58String(i.transactionId)) + "_") | |
171 | + | let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + takeRight(toBase58String(i.transactionId), 10)) + "_") | |
168 | 172 | let odds = extract(getInteger(this, (betFor + "_odds"))) | |
169 | 173 | let unspentFor = getUnspent(betFor) | |
170 | 174 | let unspentAgainst = getUnspent(betAgainst) | |
199 | 203 | else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove"))) | |
200 | 204 | then throw("must be owner or its delegate to approve") | |
201 | 205 | else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit) | |
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | @Callable(i) | |
210 | + | func judgeDexMatch (matchId,txId) = if ((getStringValue(this, (matchId + "_adapter")) != "dex")) | |
211 | + | then throw("method is only for dex matches") | |
212 | + | else { | |
213 | + | let betFor = getStringValue(this, (matchId + "_for")) | |
214 | + | let betAgainst = getStringValue(this, (matchId + "_for")) | |
215 | + | let event = getStringValue(this, (betFor + "_event")) | |
216 | + | let eventS = split(event, ":") | |
217 | + | let pair = eventS[1] | |
218 | + | let eventRate = parseIntValue(eventS[2]) | |
219 | + | let eventTs = parseIntValue(eventS[3]) | |
220 | + | let judgeTs = ((eventTs * 1000) + dexJudgeGraceTs) | |
221 | + | if ((judgeTs > lastBlock.timestamp)) | |
222 | + | then throw(("please wait for timestamp " + toString(judgeTs))) | |
223 | + | else { | |
224 | + | let rateFromAgent = getIntegerValue(dexAgent, (event + "_rate")) | |
225 | + | let looserBet = if ((rateFromAgent >= eventRate)) | |
226 | + | then betAgainst | |
227 | + | else betFor | |
228 | + | repayFee(i, WriteSet([DataEntry((looserBet + "_defeat"), 1)]), 0, unit, unit) | |
229 | + | } | |
230 | + | } | |
202 | 231 | ||
203 | 232 | ||
204 | 233 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let betAssetIds = [DataEntry("sportr", "AcTzTgW1QbJK4Qu6hCsUCLjpxUyD3dofv8xq2CAPbzKJ"), DataEntry("dex", "WAVES")] | |
5 | + | ||
6 | + | let dexAgent = addressFromStringValue("") | |
5 | 7 | ||
6 | 8 | let maxFee = 5000000 | |
7 | 9 | ||
8 | 10 | let minBet = 5000000 | |
9 | 11 | ||
10 | 12 | let minCreateEvent = 30000000 | |
11 | 13 | ||
12 | 14 | let minMatchNominal = 5000000 | |
15 | + | ||
16 | + | let dexJudgeGraceTs = ((1000 * 60) * 5) | |
13 | 17 | ||
14 | 18 | let level1 = 250 | |
15 | 19 | ||
16 | 20 | let level2 = 150 | |
17 | 21 | ||
18 | 22 | let level3 = 100 | |
19 | 23 | ||
20 | 24 | let cashBack = 500 | |
21 | 25 | ||
22 | 26 | let totalRef = 10 | |
23 | 27 | ||
24 | 28 | let changeAddress = "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL" | |
25 | 29 | ||
26 | 30 | let minWithdraw = 1000000 | |
27 | 31 | ||
28 | 32 | func getCallerByDelegate (i,function) = { | |
29 | 33 | let caller = toBase58String(i.caller.bytes) | |
30 | 34 | let callerPrefix = ("delegate_" + caller) | |
31 | 35 | if ((getBoolean(this, ((callerPrefix + "_") + function)) == true)) | |
32 | 36 | then match getString(this, (callerPrefix + "_address")) { | |
33 | 37 | case s: String => | |
34 | 38 | s | |
35 | 39 | case _ => | |
36 | 40 | caller | |
37 | 41 | } | |
38 | 42 | else caller | |
39 | 43 | } | |
40 | 44 | ||
41 | 45 | ||
42 | 46 | func checkFee (i) = if ((i.fee > maxFee)) | |
43 | 47 | then throw("unreasonable large fee") | |
44 | 48 | else if ((i.feeAssetId != unit)) | |
45 | 49 | then throw("fee must be in WAVES") | |
46 | 50 | else true | |
47 | 51 | ||
48 | 52 | ||
49 | 53 | func repayFee (i,ws,amount,recipient,betAssetId) = if (checkFee(i)) | |
50 | 54 | then if (if ((amount > 0)) | |
51 | 55 | then isDefined(recipient) | |
52 | 56 | else false) | |
53 | 57 | then ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(extract(recipient), amount, betAssetId)])) | |
54 | 58 | else ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit)])) | |
55 | 59 | else throw("error") | |
56 | 60 | ||
57 | 61 | ||
58 | 62 | func checkOwner (i,betid) = (getString(this, (betid + "_owner")) == toBase58String(i.caller.bytes)) | |
59 | 63 | ||
60 | 64 | ||
61 | 65 | func getUnspent (betid) = (extract(getInteger(this, (betid + "_amount"))) - extract(getInteger(this, (betid + "_spent")))) | |
62 | 66 | ||
63 | 67 | ||
64 | 68 | func isDefeated (betid) = { | |
65 | 69 | let defeatStatus = getInteger(this, (betid + "_defeat")) | |
66 | 70 | if ((defeatStatus == 1)) | |
67 | 71 | then true | |
68 | 72 | else (defeatStatus == 3) | |
69 | 73 | } | |
70 | 74 | ||
71 | 75 | ||
72 | 76 | func getReferer (user) = getString(this, (user + "_referer")) | |
73 | 77 | ||
74 | 78 | ||
75 | 79 | func balanceIncrement (address,inc) = { | |
76 | 80 | let balanceKey = (address + "_balance") | |
77 | 81 | DataEntry(balanceKey, (inc + match getInteger(this, balanceKey) { | |
78 | 82 | case b: Int => | |
79 | 83 | b | |
80 | 84 | case _ => | |
81 | 85 | 0 | |
82 | 86 | })) | |
83 | 87 | } | |
84 | 88 | ||
85 | 89 | ||
86 | 90 | func recordBalanceIncrement (address,owner,inc,level,txId,timestamp) = DataEntry(((("fund_" + address) + "_") + txId), ((((((owner + ":") + toString(inc)) + ":") + level) + ":") + timestamp)) | |
87 | 91 | ||
88 | 92 | ||
89 | 93 | func getAssetByAdapter (adapter) = { | |
90 | 94 | let assetString = getStringValue(betAssetIds, adapter) | |
91 | 95 | if ((assetString == "WAVES")) | |
92 | 96 | then unit | |
93 | 97 | else fromBase58String(assetString) | |
94 | 98 | } | |
95 | 99 | ||
96 | 100 | ||
97 | 101 | func getAssetMnemonic (asset) = if ((asset == unit)) | |
98 | 102 | then "WAVES" | |
99 | 103 | else toBase58String(extract(asset)) | |
100 | 104 | ||
101 | 105 | ||
102 | 106 | @Callable(i) | |
103 | 107 | func bet (event,subevent,side,odds,adapter) = { | |
104 | 108 | let marketKey = ("market_" + event) | |
105 | 109 | let betAssetId = getAssetByAdapter(adapter) | |
106 | 110 | let owner = toBase58String(i.caller.bytes) | |
107 | 111 | let payment = extract(i.payment) | |
108 | 112 | if ((payment.assetId != betAssetId)) | |
109 | 113 | then throw(((("bet must be in asset " + getAssetMnemonic(betAssetId)) + " for adapter ") + adapter)) | |
110 | 114 | else if ((minBet > payment.amount)) | |
111 | 115 | then throw(("minimum allowed bet is " + toString(minBet))) | |
112 | 116 | else if (if (if ((adapter == "dex")) | |
113 | 117 | then (minCreateEvent > payment.amount) | |
114 | 118 | else false) | |
115 | 119 | then (getBoolean(this, marketKey) == unit) | |
116 | 120 | else false) | |
117 | 121 | then throw(("min amount to create first bet is " + toString(minCreateEvent))) | |
118 | 122 | else if (if ((side != "for")) | |
119 | 123 | then (side != "against") | |
120 | 124 | else false) | |
121 | 125 | then throw("unexpected side") | |
122 | 126 | else { | |
123 | 127 | let betid = (((((("bet_" + event) + "_") + toBase58String(i.caller.bytes)) + "_") + take(toBase58String(i.transactionId), 15)) + "_") | |
124 | 128 | let sequenceKey = ((("seq_" + event) + "_") + subevent) | |
125 | 129 | let sequence = match getInteger(this, sequenceKey) { | |
126 | 130 | case prevS: Int => | |
127 | 131 | (prevS + 1) | |
128 | 132 | case _ => | |
129 | 133 | 1 | |
130 | 134 | } | |
131 | 135 | repayFee(i, WriteSet([DataEntry((betid + "owner"), owner), DataEntry((betid + "event"), event), DataEntry((betid + "subevent"), subevent), DataEntry((betid + "side"), side), DataEntry((betid + "odds"), odds), DataEntry((betid + "amount"), payment.amount), DataEntry((betid + "spent"), 0), DataEntry((betid + "adapter"), adapter), DataEntry((betid + "timestamp"), lastBlock.timestamp), DataEntry((betid + "sequence"), sequence), DataEntry(marketKey, true), DataEntry(sequenceKey, sequence)]), 0, unit, unit) | |
132 | 136 | } | |
133 | 137 | } | |
134 | 138 | ||
135 | 139 | ||
136 | 140 | ||
137 | 141 | @Callable(i) | |
138 | 142 | func cancel (betid) = if ((getString(this, (betid + "_owner")) != getCallerByDelegate(i, "autocancel"))) | |
139 | 143 | then throw("must be owner or its delegate to cancel") | |
140 | 144 | else { | |
141 | 145 | let adapter = getStringValue(this, (betid + "_adapter")) | |
142 | 146 | let amount = getIntegerValue(this, (betid + "_amount")) | |
143 | 147 | let spent = getIntegerValue(this, (betid + "_spent")) | |
144 | 148 | let cancelAmount = (amount - spent) | |
145 | 149 | repayFee(i, WriteSet([DataEntry((betid + "_spent"), amount), DataEntry((betid + "_cancel_amount"), cancelAmount), DataEntry((betid + "_cancel_tx"), toBase58String(i.transactionId))]), cancelAmount, i.caller, getAssetByAdapter(adapter)) | |
146 | 150 | } | |
147 | 151 | ||
148 | 152 | ||
149 | 153 | ||
150 | 154 | @Callable(i) | |
151 | 155 | func betMatch (betFor,betAgainst) = if ((getString(this, (betFor + "_event")) != getString(this, (betAgainst + "_event")))) | |
152 | 156 | then throw("event id must match") | |
153 | 157 | else if ((getString(this, (betFor + "_subevent")) != getString(this, (betAgainst + "_subevent")))) | |
154 | 158 | then throw("subevent id must match") | |
155 | 159 | else if ((getString(this, (betFor + "_side")) != "for")) | |
156 | 160 | then throw("invalid *for* bet") | |
157 | 161 | else if ((getString(this, (betAgainst + "_side")) != "against")) | |
158 | 162 | then throw("invalid *against* bet") | |
159 | 163 | else { | |
160 | 164 | let adapter = getStringValue(this, (betFor + "_adapter")) | |
161 | 165 | if ((adapter != getStringValue(this, (betAgainst + "_adapter")))) | |
162 | 166 | then throw("bets has different adapters") | |
163 | 167 | else { | |
164 | 168 | let betForOwner = getStringValue(this, (betFor + "_owner")) | |
165 | 169 | let betAgainstOwner = getStringValue(this, (betAgainst + "_owner")) | |
166 | 170 | let eventid = extract(getString(this, (betFor + "_event"))) | |
167 | - | let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + toBase58String(i.transactionId)) + "_") | |
171 | + | let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + takeRight(toBase58String(i.transactionId), 10)) + "_") | |
168 | 172 | let odds = extract(getInteger(this, (betFor + "_odds"))) | |
169 | 173 | let unspentFor = getUnspent(betFor) | |
170 | 174 | let unspentAgainst = getUnspent(betAgainst) | |
171 | 175 | let maxForNominal = unspentFor | |
172 | 176 | let maxAgainstNominal = ((unspentAgainst * 100) / (odds - 100)) | |
173 | 177 | let matchNominal = if ((maxForNominal > maxAgainstNominal)) | |
174 | 178 | then maxAgainstNominal | |
175 | 179 | else maxForNominal | |
176 | 180 | if ((minMatchNominal > matchNominal)) | |
177 | 181 | then throw("match nominal too low") | |
178 | 182 | else { | |
179 | 183 | let spendFor = matchNominal | |
180 | 184 | let spendAgainst = ((matchNominal * (odds - 100)) / 100) | |
181 | 185 | let newSpentFor = (spendFor + extract(getInteger(this, (betFor + "_spent")))) | |
182 | 186 | let newSpentAgainst = (spendAgainst + extract(getInteger(this, (betAgainst + "_spent")))) | |
183 | 187 | if ((newSpentFor > extract(getInteger(this, (betFor + "_amount"))))) | |
184 | 188 | then throw("invalid match") | |
185 | 189 | else if ((newSpentAgainst > extract(getInteger(this, (betAgainst + "_amount"))))) | |
186 | 190 | then throw("invalid match") | |
187 | 191 | else repayFee(i, WriteSet([DataEntry((matchid + "amount"), (spendFor + spendAgainst)), DataEntry((matchid + "adapter"), adapter), DataEntry((matchid + "for"), betFor), DataEntry((matchid + "against"), betAgainst), DataEntry((betFor + "_spent"), newSpentFor), DataEntry((betAgainst + "_spent"), newSpentAgainst)]), 0, unit, unit) | |
188 | 192 | } | |
189 | 193 | } | |
190 | 194 | } | |
191 | 195 | ||
192 | 196 | ||
193 | 197 | ||
194 | 198 | @Callable(i) | |
195 | 199 | func approveDefeat (betId,defeat) = if (if (isDefined(getInteger(this, (betId + "_defeat")))) | |
196 | 200 | then (defeat == 2) | |
197 | 201 | else false) | |
198 | 202 | then throw("can't dispute after approve") | |
199 | 203 | else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove"))) | |
200 | 204 | then throw("must be owner or its delegate to approve") | |
201 | 205 | else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit) | |
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | @Callable(i) | |
210 | + | func judgeDexMatch (matchId,txId) = if ((getStringValue(this, (matchId + "_adapter")) != "dex")) | |
211 | + | then throw("method is only for dex matches") | |
212 | + | else { | |
213 | + | let betFor = getStringValue(this, (matchId + "_for")) | |
214 | + | let betAgainst = getStringValue(this, (matchId + "_for")) | |
215 | + | let event = getStringValue(this, (betFor + "_event")) | |
216 | + | let eventS = split(event, ":") | |
217 | + | let pair = eventS[1] | |
218 | + | let eventRate = parseIntValue(eventS[2]) | |
219 | + | let eventTs = parseIntValue(eventS[3]) | |
220 | + | let judgeTs = ((eventTs * 1000) + dexJudgeGraceTs) | |
221 | + | if ((judgeTs > lastBlock.timestamp)) | |
222 | + | then throw(("please wait for timestamp " + toString(judgeTs))) | |
223 | + | else { | |
224 | + | let rateFromAgent = getIntegerValue(dexAgent, (event + "_rate")) | |
225 | + | let looserBet = if ((rateFromAgent >= eventRate)) | |
226 | + | then betAgainst | |
227 | + | else betFor | |
228 | + | repayFee(i, WriteSet([DataEntry((looserBet + "_defeat"), 1)]), 0, unit, unit) | |
229 | + | } | |
230 | + | } | |
202 | 231 | ||
203 | 232 | ||
204 | 233 | ||
205 | 234 | @Callable(i) | |
206 | 235 | func payWinner (matchId) = if (!(checkFee(i))) | |
207 | 236 | then throw("error") | |
208 | 237 | else if (isDefined(getInteger(this, (matchId + "_paid")))) | |
209 | 238 | then throw("already paid") | |
210 | 239 | else { | |
211 | 240 | let adapter = getStringValue(this, (matchId + "_adapter")) | |
212 | 241 | let betAssetId = getAssetByAdapter(adapter) | |
213 | 242 | let betForId = extract(getString(this, (matchId + "_for"))) | |
214 | 243 | let betAgainstId = extract(getString(this, (matchId + "_against"))) | |
215 | 244 | let betForDefeated = isDefeated(betForId) | |
216 | 245 | let betAgainstDefeated = isDefeated(betAgainstId) | |
217 | 246 | if (if (!(betForDefeated)) | |
218 | 247 | then !(betAgainstDefeated) | |
219 | 248 | else false) | |
220 | 249 | then throw("no side approved defeat") | |
221 | 250 | else { | |
222 | 251 | let winnerId = if (betForDefeated) | |
223 | 252 | then betAgainstId | |
224 | 253 | else betForId | |
225 | 254 | let winnerAddress = getStringValue(this, (winnerId + "_owner")) | |
226 | 255 | let amount = extract(getInteger(this, (matchId + "_amount"))) | |
227 | 256 | let txid = toBase58String(i.transactionId) | |
228 | 257 | let timestamp = toString(lastBlock.timestamp) | |
229 | 258 | let refAmount = ((amount * totalRef) / 1000) | |
230 | 259 | ScriptResult(WriteSet([DataEntry((matchId + "_paid"), toBase58String(i.transactionId)), match getReferer(winnerAddress) { | |
231 | 260 | case ref1: String => | |
232 | 261 | let incLevel1 = ((refAmount * level1) / 1000) | |
233 | 262 | let incCashBack = ((refAmount * cashBack) / 1000) | |
234 | 263 | [balanceIncrement(winnerAddress, incCashBack), recordBalanceIncrement(winnerAddress, winnerAddress, incCashBack, "cashback", txid, timestamp), balanceIncrement(ref1, incLevel1), recordBalanceIncrement(ref1, winnerAddress, incLevel1, "l1", txid, timestamp), match getReferer(ref1) { | |
235 | 264 | case ref2: String => | |
236 | 265 | let incLevel2 = ((refAmount * level2) / 1000) | |
237 | 266 | [balanceIncrement(ref2, incLevel2), recordBalanceIncrement(ref2, winnerAddress, incLevel2, "l2", txid, timestamp), match getReferer(ref2) { | |
238 | 267 | case ref3: String => | |
239 | 268 | let incLevel3 = ((refAmount * level3) / 1000) | |
240 | 269 | [balanceIncrement(ref3, incLevel3), recordBalanceIncrement(ref3, winnerAddress, incLevel3, "l3", txid, timestamp), balanceIncrement(changeAddress, (((refAmount - incLevel1) - incLevel2) - incLevel3)), recordBalanceIncrement(changeAddress, winnerAddress, (((refAmount - incLevel1) - incLevel2) - incLevel3), "change", txid, timestamp)] | |
241 | 270 | case _ => | |
242 | 271 | [balanceIncrement(changeAddress, ((refAmount - incLevel1) - incLevel2)), recordBalanceIncrement(changeAddress, winnerAddress, ((refAmount - incLevel1) - incLevel2), "change", txid, timestamp)] | |
243 | 272 | }] | |
244 | 273 | case _ => | |
245 | 274 | [balanceIncrement(changeAddress, (refAmount - incLevel1)), recordBalanceIncrement(changeAddress, winnerAddress, (refAmount - incLevel1), "change", txid, timestamp)] | |
246 | 275 | }] | |
247 | 276 | case _ => | |
248 | 277 | [balanceIncrement(changeAddress, refAmount), recordBalanceIncrement(changeAddress, winnerAddress, refAmount, "change", txid, timestamp)] | |
249 | 278 | }]), TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(addressFromStringValue(winnerAddress), (amount - refAmount), betAssetId)])) | |
250 | 279 | } | |
251 | 280 | } | |
252 | 281 | ||
253 | 282 | ||
254 | 283 | ||
255 | 284 | @Callable(i) | |
256 | 285 | func delegate (delegateTo,enableAutoApprove,enableAutoCancel) = repayFee(i, WriteSet([DataEntry((("delegate_" + delegateTo) + "_address"), toBase58String(i.caller.bytes)), DataEntry((("delegate_" + delegateTo) + "_autoapprove"), enableAutoApprove), DataEntry((("delegate_" + delegateTo) + "_autocancel"), enableAutoCancel)]), 0, unit, unit) | |
257 | 286 | ||
258 | 287 | ||
259 | 288 | ||
260 | 289 | @Callable(i) | |
261 | 290 | func withdraw () = if (!(checkFee(i))) | |
262 | 291 | then throw("error") | |
263 | 292 | else { | |
264 | 293 | let owner = toBase58String(i.caller.bytes) | |
265 | 294 | let txid = toBase58String(i.transactionId) | |
266 | 295 | let balanceKey = (owner + "_balance") | |
267 | 296 | let amount = match getInteger(this, balanceKey) { | |
268 | 297 | case b: Int => | |
269 | 298 | b | |
270 | 299 | case _ => | |
271 | 300 | 0 | |
272 | 301 | } | |
273 | 302 | if ((minWithdraw > amount)) | |
274 | 303 | then throw(("Min withdraw amount is" + toString(minWithdraw))) | |
275 | 304 | else ScriptResult(WriteSet([DataEntry(balanceKey, 0), DataEntry(((("withdraw_" + owner) + "_") + txid), ((toString(amount) + ":") + toString(lastBlock.timestamp)))]), TransferSet([ScriptTransfer(i.caller, (amount + i.fee), unit)])) | |
276 | 305 | } | |
277 | 306 | ||
278 | 307 | ||
279 | 308 | ||
280 | 309 | @Callable(i) | |
281 | 310 | func register (referer,salt) = if (!(checkFee(i))) | |
282 | 311 | then throw("error") | |
283 | 312 | else if ((take(toBase58String(i.transactionId), 3) != "123")) | |
284 | 313 | then throw("proof of work failed") | |
285 | 314 | else { | |
286 | 315 | let owner = toBase58String(i.caller.bytes) | |
287 | 316 | if (isDefined(getReferer(owner))) | |
288 | 317 | then throw("Already registered") | |
289 | 318 | else ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(((referer + "_referral_") + owner), owner)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)])) | |
290 | 319 | } | |
291 | 320 | ||
292 | 321 |
github/deemru/w8io/169f3d6 60.06 ms ◑