tx · 3kPjwHSdoq3L1w8q1y1ayWfjiH9StXL3KmK3qo5T21uJ

3MpBKNSG25gK9fufNK3tjRAnpD83mXYZog6:  -0.01400000 Waves

2019.10.05 11:56 [706226] smart account 3MpBKNSG25gK9fufNK3tjRAnpD83mXYZog6 > SELF 0.00000000 Waves

{ "type": 13, "id": "3kPjwHSdoq3L1w8q1y1ayWfjiH9StXL3KmK3qo5T21uJ", "fee": 1400000, "feeAssetId": null, "timestamp": 1570265725388, "version": 1, "sender": "3MpBKNSG25gK9fufNK3tjRAnpD83mXYZog6", "senderPublicKey": "qqthrzfmAnD7FmWuFzzm3FbACout7pi6sYqHmXc2Hyc", "proofs": [ "5nKH9WfQfBATRnhZeX5rV7PapWhH9DrN5upu68uYr8kL3tMtAZKyzEge2AoSBRQ9brrUGeUFMQ7AmMTfcFRGuZ39" ], "script": "base64:AAIDAAAAAAAAADgIARIHCgUICAgBCBIDCgEIEgQKAggIEgQKAggBEgMKAQgSAwoBCBIFCgMIBAQSAwoBCBIECgIIAQAAABwAAAAAC2JldEFzc2V0SWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAZzcG9ydHICAAAALEZ0OFgxdjFMVGExQUJhZnVmcGFDV3lWajhLa2F4VVdFNnhCaFc2c05GSmNrCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAANkZXgCAAAABVdBVkVTBQAAAANuaWwAAAAAEWJldEFzc2V0TW5lbW9uaWNzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAZzcG9ydHICAAAAA1VTRAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAADZGV4AgAAAAVXQVZFUwUAAAADbmlsAAAAAA5hc3NldHNEZWNpbWFscwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAADVVNEAAAAAAAAAAACCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAVXQVZFUwAAAAAAAAAACAkABEwAAAACCQEA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AEsAAAAAgUAAAAFb3duZXICAAAACF9yZWZlcmVyBQAAAAdyZWZlcmVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAHcmVmZXJlcgIAAAAKX3JlZmVycmFsXwUAAAAFb3duZXIFAAAABW93bmVyBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAABaQAAAANmZWUFAAAABHVuaXQFAAAAA25pbAAAAADz66S3", "chainId": 84, "height": 706226, "spentComplexity": 0 } View: original | compacted Prev: ASMBngEuo9NLAjqWth2yJHqAqDq3Tmv6i9uCt6FEA6a7 Next: none Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let betAssetIds = [DataEntry("sportr", "AcTzTgW1QbJK4Qu6hCsUCLjpxUyD3dofv8xq2CAPbzKJ"), DataEntry("dex", "WAVES")]
4+let betAssetIds = [DataEntry("sportr", "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck"), DataEntry("dex", "WAVES")]
55
6-let dexAgent = addressFromStringValue("3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5")
6+let betAssetMnemonics = [DataEntry("sportr", "USD"), DataEntry("dex", "WAVES")]
7+
8+let assetsDecimals = [DataEntry("USD", 2), DataEntry("WAVES", 8), DataEntry("BTC", 8), DataEntry("VST", 8)]
9+
10+let dexAgent = addressFromStringValue("3P69jzek6S2q7kGWScEEZaNxKL5TiSF7wGm")
11+
12+let changeAddress = "3PQexcLjbv9CsYbt6zKF7nfEppf2gKHCEkz"
713
814 let maxFee = 5000000
915
10-let minBet = 5000000
11-
1216 let minCreateEvent = 30000000
13-
14-let minMatchNominal = 5000000
1517
1618 let dexJudgeGraceTs = ((1000 * 60) * 5)
1719
2527
2628 let totalRef = 10
2729
28-let changeAddress = "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL"
30+let minWithdraw = 1000000
2931
30-let minWithdraw = 1000000
32+func getAssetIdByName (name) = {
33+ let assetIdByName = [DataEntry("USD", base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'), DataEntry("BTC", base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'), DataEntry("VST", base58'4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8')]
34+ if ((name == "WAVES"))
35+ then unit
36+ else getBinaryValue(assetIdByName, name)
37+ }
38+
3139
3240 func getCallerByDelegate (i,function) = {
3341 let caller = toBase58String(i.caller.bytes)
7684 func getReferer (user) = getString(this, (user + "_referer"))
7785
7886
79-func balanceIncrement (address,inc) = {
80- let balanceKey = (address + "_balance")
87+func balanceIncrement (address,asset,inc) = {
88+ let balanceKey = (((address + "_") + asset) + "_balance")
8189 DataEntry(balanceKey, (inc + match getInteger(this, balanceKey) {
8290 case b: Int =>
8391 b
8795 }
8896
8997
90-func recordBalanceIncrement (address,owner,inc,level,txId,timestamp) = DataEntry(((("fund_" + address) + "_") + txId), ((((((owner + ":") + toString(inc)) + ":") + level) + ":") + timestamp))
98+func recordBalanceIncrement (address,asset,owner,inc,level,txId,timestamp) = DataEntry(((((((("fund_" + address) + "_") + asset) + "_") + level) + "_") + txId), ((((owner + ":") + toString(inc)) + ":") + timestamp))
9199
92100
93101 func getAssetByAdapter (adapter) = {
96104 then unit
97105 else fromBase58String(assetString)
98106 }
107+
108+
109+func getMinBetByAdapter (adapter) = getIntegerValue([DataEntry("dex", 5000000), DataEntry("sportr", 100)], adapter)
110+
111+
112+func getMinMatchByAdapter (adapter) = getIntegerValue([DataEntry("dex", 1000000), DataEntry("sportr", 1)], adapter)
99113
100114
101115 func getAssetMnemonic (asset) = if ((asset == unit))
107121 func bet (event,subevent,side,odds,adapter) = {
108122 let marketKey = ("market_" + event)
109123 let betAssetId = getAssetByAdapter(adapter)
124+ let betAssetMnemonic = getStringValue(betAssetIds, adapter)
110125 let owner = toBase58String(i.caller.bytes)
111126 let payment = extract(i.payment)
112127 if ((payment.assetId != betAssetId))
113- then throw(((("bet must be in asset " + getAssetMnemonic(betAssetId)) + " for adapter ") + adapter))
114- else if ((minBet > payment.amount))
115- then throw(("minimum allowed bet is " + toString(minBet)))
116- else if (if (if ((adapter == "dex"))
117- then (minCreateEvent > payment.amount)
118- else false)
119- then (getBoolean(this, marketKey) == unit)
120- else false)
121- then throw(("min amount to create first bet is " + toString(minCreateEvent)))
122- else if (if ((side != "for"))
123- then (side != "against")
128+ then throw(((("bet must be in asset " + betAssetMnemonic) + " for adapter ") + adapter))
129+ else {
130+ let minBet = getMinBetByAdapter(adapter)
131+ if ((minBet > payment.amount))
132+ then throw(("minimum allowed bet is " + toString(minBet)))
133+ else if (if (if ((adapter == "dex"))
134+ then (minCreateEvent > payment.amount)
124135 else false)
125- then throw("unexpected side")
126- else {
127- let betid = (((((("bet_" + event) + "_") + toBase58String(i.caller.bytes)) + "_") + take(toBase58String(i.transactionId), 5)) + "_")
128- let sequenceKey = ((("seq_" + event) + "_") + subevent)
129- let sequence = match getInteger(this, sequenceKey) {
130- case prevS: Int =>
131- (prevS + 1)
132- case _ =>
133- 1
134- }
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)
136- }
136+ then (getBoolean(this, marketKey) == unit)
137+ else false)
138+ then throw(("min amount to create first bet is " + toString(minCreateEvent)))
139+ else if (if ((side != "for"))
140+ then (side != "against")
141+ else false)
142+ then throw("unexpected side")
143+ else {
144+ let betid = (((((("bet_" + event) + "_") + owner) + "_") + take(toBase58String(i.transactionId), 5)) + "_")
145+ let sequenceKey = ((("seq_" + event) + "_") + subevent)
146+ let sequence = match getInteger(this, sequenceKey) {
147+ case prevS: Int =>
148+ (prevS + 1)
149+ case _ =>
150+ 1
151+ }
152+ let commonRecords = [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(sequenceKey, sequence)]
153+ let allRecords = if ((adapter == "dex"))
154+ then DataEntry(marketKey, true) :: commonRecords
155+ else commonRecords
156+ repayFee(i, WriteSet(allRecords), 0, unit, unit)
157+ }
158+ }
137159 }
138160
139161
165187 if ((adapter != getStringValue(this, (betAgainst + "_adapter"))))
166188 then throw("bets has different adapters")
167189 else {
190+ let minMatchNominal = getMinMatchByAdapter(adapter)
168191 let betForOwner = getStringValue(this, (betFor + "_owner"))
169192 let betAgainstOwner = getStringValue(this, (betAgainst + "_owner"))
170193 let eventid = extract(getString(this, (betFor + "_event")))
196219
197220
198221 @Callable(i)
199-func approveDefeat (betId,defeat) = if (if (isDefined(getInteger(this, (betId + "_defeat"))))
200- then (defeat == 2)
201- else false)
202- then throw("can't dispute after approve")
203- else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove")))
204- then throw("must be owner or its delegate to approve")
205- else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit)
222+func approveDefeat (betId,defeat) = {
223+ let a = extract(assetInfo(base58''))
224+ if (if (isDefined(getInteger(this, (betId + "_defeat"))))
225+ then (defeat == 2)
226+ else false)
227+ then throw("can't dispute after approve")
228+ else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove")))
229+ then throw("must be owner or its delegate to approve")
230+ else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit)
231+ }
206232
207233
208234
219245 let pair = eventS[1]
220246 let eventRate = parseIntValue(eventS[2])
221247 let eventTs = parseIntValue(eventS[3])
248+ let pairSplit = split(pair, "/")
249+ let pairDecimals1 = getIntegerValue(assetsDecimals, pairSplit[0])
250+ let pairDecimals2 = getIntegerValue(assetsDecimals, pairSplit[1])
251+ let rateCorrectionPower = (pairDecimals1 - pairDecimals2)
252+ let rateCorrection = if ((rateCorrectionPower == 0))
253+ then 1
254+ else if ((rateCorrectionPower == 1))
255+ then 10
256+ else if ((rateCorrectionPower == 2))
257+ then 100
258+ else if ((rateCorrectionPower == 3))
259+ then 1000
260+ else if ((rateCorrectionPower == 4))
261+ then 10000
262+ else if ((rateCorrectionPower == 5))
263+ then 100000
264+ else if ((rateCorrectionPower == 6))
265+ then 1000000
266+ else if ((rateCorrectionPower == 7))
267+ then 10000000
268+ else if ((rateCorrectionPower == 8))
269+ then 100000000
270+ else throw("unsupported")
222271 let judgeTs = ((eventTs * 1000) + dexJudgeGraceTs)
223272 if ((judgeTs > lastBlock.timestamp))
224273 then throw(("please wait for timestamp " + toString(judgeTs)))
227276 if (!(isDefined(rateFromAgent)))
228277 then throw("rate from agent not ready yet")
229278 else {
230- let looserBet = if ((extract(rateFromAgent) >= eventRate))
279+ let looserBet = if (((extract(rateFromAgent) * rateCorrection) > eventRate))
231280 then betAgainst
232281 else betFor
233282 repayFee(i, WriteSet([DataEntry((looserBet + "_defeat"), 1), DataEntry((matchId + "_judged"), true)]), 0, unit, unit)
240289 @Callable(i)
241290 func payWinner (matchId) = if (!(checkFee(i)))
242291 then throw("error")
243- else if (isDefined(getInteger(this, (matchId + "_paid"))))
292+ else if (isDefined(getString(this, (matchId + "_paid"))))
244293 then throw("already paid")
245294 else {
246295 let adapter = getStringValue(this, (matchId + "_adapter"))
247296 let betAssetId = getAssetByAdapter(adapter)
297+ let betAssetMnemonic = getStringValue(betAssetMnemonics, adapter)
248298 let betForId = extract(getString(this, (matchId + "_for")))
249299 let betAgainstId = extract(getString(this, (matchId + "_against")))
250300 let betForDefeated = isDefeated(betForId)
266316 case ref1: String =>
267317 let incLevel1 = ((refAmount * level1) / 1000)
268318 let incCashBack = ((refAmount * cashBack) / 1000)
269-[balanceIncrement(winnerAddress, incCashBack), recordBalanceIncrement(winnerAddress, winnerAddress, incCashBack, "cashback", txid, timestamp), balanceIncrement(ref1, incLevel1), recordBalanceIncrement(ref1, winnerAddress, incLevel1, "l1", txid, timestamp), match getReferer(ref1) {
319+[balanceIncrement(winnerAddress, betAssetMnemonic, incCashBack), recordBalanceIncrement(winnerAddress, betAssetMnemonic, winnerAddress, incCashBack, "cashback", txid, timestamp), balanceIncrement(ref1, betAssetMnemonic, incLevel1), recordBalanceIncrement(ref1, betAssetMnemonic, winnerAddress, incLevel1, "l1", txid, timestamp), match getReferer(ref1) {
270320 case ref2: String =>
271321 let incLevel2 = ((refAmount * level2) / 1000)
272-[balanceIncrement(ref2, incLevel2), recordBalanceIncrement(ref2, winnerAddress, incLevel2, "l2", txid, timestamp), match getReferer(ref2) {
273- case ref3: String =>
274- let incLevel3 = ((refAmount * level3) / 1000)
275-[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)]
322+[balanceIncrement(ref2, betAssetMnemonic, incLevel2), recordBalanceIncrement(ref2, betAssetMnemonic, winnerAddress, incLevel2, "l2", txid, timestamp), match getReferer(ref2) {
276323 case _ =>
277-[balanceIncrement(changeAddress, ((refAmount - incLevel1) - incLevel2)), recordBalanceIncrement(changeAddress, winnerAddress, ((refAmount - incLevel1) - incLevel2), "change", txid, timestamp)]
324+[balanceIncrement(changeAddress, betAssetMnemonic, ((refAmount - incLevel1) - incLevel2)), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, ((refAmount - incLevel1) - incLevel2), "change", txid, timestamp)]
278325 }]
279326 case _ =>
280-[balanceIncrement(changeAddress, (refAmount - incLevel1)), recordBalanceIncrement(changeAddress, winnerAddress, (refAmount - incLevel1), "change", txid, timestamp)]
327+[balanceIncrement(changeAddress, betAssetMnemonic, (refAmount - incLevel1)), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, (refAmount - incLevel1), "change", txid, timestamp)]
281328 }]
282329 case _ =>
283-[balanceIncrement(changeAddress, refAmount), recordBalanceIncrement(changeAddress, winnerAddress, refAmount, "change", txid, timestamp)]
330+[balanceIncrement(changeAddress, betAssetMnemonic, refAmount), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, refAmount, "change", txid, timestamp)]
284331 }]), TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(addressFromStringValue(winnerAddress), (amount - refAmount), betAssetId)]))
285332 }
286333 }
293340
294341
295342 @Callable(i)
296-func withdraw () = if (!(checkFee(i)))
343+func withdraw (assetName) = if (!(checkFee(i)))
297344 then throw("error")
298345 else {
299346 let owner = toBase58String(i.caller.bytes)
300347 let txid = toBase58String(i.transactionId)
301- let balanceKey = (owner + "_balance")
348+ let balanceKey = (((owner + "_") + assetName) + "_balance")
349+ let assetId = getAssetIdByName(assetName)
302350 let amount = match getInteger(this, balanceKey) {
303351 case b: Int =>
304352 b
307355 }
308356 if ((minWithdraw > amount))
309357 then throw(("Min withdraw amount is" + toString(minWithdraw)))
310- else ScriptResult(WriteSet([DataEntry(balanceKey, 0), DataEntry(((("withdraw_" + owner) + "_") + txid), ((toString(amount) + ":") + toString(lastBlock.timestamp)))]), TransferSet([ScriptTransfer(i.caller, (amount + i.fee), unit)]))
358+ else ScriptResult(WriteSet([DataEntry(balanceKey, 0), DataEntry(((("withdraw_" + owner) + "_") + txid), ((((toString(amount) + ":") + toString(lastBlock.timestamp)) + ":") + assetName))]), TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(i.caller, amount, assetId)]))
311359 }
312360
313361
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let betAssetIds = [DataEntry("sportr", "AcTzTgW1QbJK4Qu6hCsUCLjpxUyD3dofv8xq2CAPbzKJ"), DataEntry("dex", "WAVES")]
4+let betAssetIds = [DataEntry("sportr", "Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck"), DataEntry("dex", "WAVES")]
55
6-let dexAgent = addressFromStringValue("3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5")
6+let betAssetMnemonics = [DataEntry("sportr", "USD"), DataEntry("dex", "WAVES")]
7+
8+let assetsDecimals = [DataEntry("USD", 2), DataEntry("WAVES", 8), DataEntry("BTC", 8), DataEntry("VST", 8)]
9+
10+let dexAgent = addressFromStringValue("3P69jzek6S2q7kGWScEEZaNxKL5TiSF7wGm")
11+
12+let changeAddress = "3PQexcLjbv9CsYbt6zKF7nfEppf2gKHCEkz"
713
814 let maxFee = 5000000
915
10-let minBet = 5000000
11-
1216 let minCreateEvent = 30000000
13-
14-let minMatchNominal = 5000000
1517
1618 let dexJudgeGraceTs = ((1000 * 60) * 5)
1719
1820 let level1 = 250
1921
2022 let level2 = 150
2123
2224 let level3 = 100
2325
2426 let cashBack = 500
2527
2628 let totalRef = 10
2729
28-let changeAddress = "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL"
30+let minWithdraw = 1000000
2931
30-let minWithdraw = 1000000
32+func getAssetIdByName (name) = {
33+ let assetIdByName = [DataEntry("USD", base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'), DataEntry("BTC", base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'), DataEntry("VST", base58'4LHHvYGNKJUg5hj65aGD5vgScvCBmLpdRFtjokvCjSL8')]
34+ if ((name == "WAVES"))
35+ then unit
36+ else getBinaryValue(assetIdByName, name)
37+ }
38+
3139
3240 func getCallerByDelegate (i,function) = {
3341 let caller = toBase58String(i.caller.bytes)
3442 let callerPrefix = ("delegate_" + caller)
3543 if ((getBoolean(this, ((callerPrefix + "_") + function)) == true))
3644 then match getString(this, (callerPrefix + "_address")) {
3745 case s: String =>
3846 s
3947 case _ =>
4048 caller
4149 }
4250 else caller
4351 }
4452
4553
4654 func checkFee (i) = if ((i.fee > maxFee))
4755 then throw("unreasonable large fee")
4856 else if ((i.feeAssetId != unit))
4957 then throw("fee must be in WAVES")
5058 else true
5159
5260
5361 func repayFee (i,ws,amount,recipient,betAssetId) = if (checkFee(i))
5462 then if (if ((amount > 0))
5563 then isDefined(recipient)
5664 else false)
5765 then ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(extract(recipient), amount, betAssetId)]))
5866 else ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
5967 else throw("error")
6068
6169
6270 func checkOwner (i,betid) = (getString(this, (betid + "_owner")) == toBase58String(i.caller.bytes))
6371
6472
6573 func getUnspent (betid) = (extract(getInteger(this, (betid + "_amount"))) - extract(getInteger(this, (betid + "_spent"))))
6674
6775
6876 func isDefeated (betid) = {
6977 let defeatStatus = getInteger(this, (betid + "_defeat"))
7078 if ((defeatStatus == 1))
7179 then true
7280 else (defeatStatus == 3)
7381 }
7482
7583
7684 func getReferer (user) = getString(this, (user + "_referer"))
7785
7886
79-func balanceIncrement (address,inc) = {
80- let balanceKey = (address + "_balance")
87+func balanceIncrement (address,asset,inc) = {
88+ let balanceKey = (((address + "_") + asset) + "_balance")
8189 DataEntry(balanceKey, (inc + match getInteger(this, balanceKey) {
8290 case b: Int =>
8391 b
8492 case _ =>
8593 0
8694 }))
8795 }
8896
8997
90-func recordBalanceIncrement (address,owner,inc,level,txId,timestamp) = DataEntry(((("fund_" + address) + "_") + txId), ((((((owner + ":") + toString(inc)) + ":") + level) + ":") + timestamp))
98+func recordBalanceIncrement (address,asset,owner,inc,level,txId,timestamp) = DataEntry(((((((("fund_" + address) + "_") + asset) + "_") + level) + "_") + txId), ((((owner + ":") + toString(inc)) + ":") + timestamp))
9199
92100
93101 func getAssetByAdapter (adapter) = {
94102 let assetString = getStringValue(betAssetIds, adapter)
95103 if ((assetString == "WAVES"))
96104 then unit
97105 else fromBase58String(assetString)
98106 }
107+
108+
109+func getMinBetByAdapter (adapter) = getIntegerValue([DataEntry("dex", 5000000), DataEntry("sportr", 100)], adapter)
110+
111+
112+func getMinMatchByAdapter (adapter) = getIntegerValue([DataEntry("dex", 1000000), DataEntry("sportr", 1)], adapter)
99113
100114
101115 func getAssetMnemonic (asset) = if ((asset == unit))
102116 then "WAVES"
103117 else toBase58String(extract(asset))
104118
105119
106120 @Callable(i)
107121 func bet (event,subevent,side,odds,adapter) = {
108122 let marketKey = ("market_" + event)
109123 let betAssetId = getAssetByAdapter(adapter)
124+ let betAssetMnemonic = getStringValue(betAssetIds, adapter)
110125 let owner = toBase58String(i.caller.bytes)
111126 let payment = extract(i.payment)
112127 if ((payment.assetId != betAssetId))
113- then throw(((("bet must be in asset " + getAssetMnemonic(betAssetId)) + " for adapter ") + adapter))
114- else if ((minBet > payment.amount))
115- then throw(("minimum allowed bet is " + toString(minBet)))
116- else if (if (if ((adapter == "dex"))
117- then (minCreateEvent > payment.amount)
118- else false)
119- then (getBoolean(this, marketKey) == unit)
120- else false)
121- then throw(("min amount to create first bet is " + toString(minCreateEvent)))
122- else if (if ((side != "for"))
123- then (side != "against")
128+ then throw(((("bet must be in asset " + betAssetMnemonic) + " for adapter ") + adapter))
129+ else {
130+ let minBet = getMinBetByAdapter(adapter)
131+ if ((minBet > payment.amount))
132+ then throw(("minimum allowed bet is " + toString(minBet)))
133+ else if (if (if ((adapter == "dex"))
134+ then (minCreateEvent > payment.amount)
124135 else false)
125- then throw("unexpected side")
126- else {
127- let betid = (((((("bet_" + event) + "_") + toBase58String(i.caller.bytes)) + "_") + take(toBase58String(i.transactionId), 5)) + "_")
128- let sequenceKey = ((("seq_" + event) + "_") + subevent)
129- let sequence = match getInteger(this, sequenceKey) {
130- case prevS: Int =>
131- (prevS + 1)
132- case _ =>
133- 1
134- }
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)
136- }
136+ then (getBoolean(this, marketKey) == unit)
137+ else false)
138+ then throw(("min amount to create first bet is " + toString(minCreateEvent)))
139+ else if (if ((side != "for"))
140+ then (side != "against")
141+ else false)
142+ then throw("unexpected side")
143+ else {
144+ let betid = (((((("bet_" + event) + "_") + owner) + "_") + take(toBase58String(i.transactionId), 5)) + "_")
145+ let sequenceKey = ((("seq_" + event) + "_") + subevent)
146+ let sequence = match getInteger(this, sequenceKey) {
147+ case prevS: Int =>
148+ (prevS + 1)
149+ case _ =>
150+ 1
151+ }
152+ let commonRecords = [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(sequenceKey, sequence)]
153+ let allRecords = if ((adapter == "dex"))
154+ then DataEntry(marketKey, true) :: commonRecords
155+ else commonRecords
156+ repayFee(i, WriteSet(allRecords), 0, unit, unit)
157+ }
158+ }
137159 }
138160
139161
140162
141163 @Callable(i)
142164 func cancel (betid) = if ((getString(this, (betid + "_owner")) != getCallerByDelegate(i, "autocancel")))
143165 then throw("must be owner or its delegate to cancel")
144166 else {
145167 let adapter = getStringValue(this, (betid + "_adapter"))
146168 let amount = getIntegerValue(this, (betid + "_amount"))
147169 let spent = getIntegerValue(this, (betid + "_spent"))
148170 let cancelAmount = (amount - spent)
149171 repayFee(i, WriteSet([DataEntry((betid + "_spent"), amount), DataEntry((betid + "_cancel_amount"), cancelAmount), DataEntry((betid + "_cancel_tx"), toBase58String(i.transactionId))]), cancelAmount, i.caller, getAssetByAdapter(adapter))
150172 }
151173
152174
153175
154176 @Callable(i)
155177 func betMatch (betFor,betAgainst) = if ((getString(this, (betFor + "_event")) != getString(this, (betAgainst + "_event"))))
156178 then throw("event id must match")
157179 else if ((getString(this, (betFor + "_subevent")) != getString(this, (betAgainst + "_subevent"))))
158180 then throw("subevent id must match")
159181 else if ((getString(this, (betFor + "_side")) != "for"))
160182 then throw("invalid *for* bet")
161183 else if ((getString(this, (betAgainst + "_side")) != "against"))
162184 then throw("invalid *against* bet")
163185 else {
164186 let adapter = getStringValue(this, (betFor + "_adapter"))
165187 if ((adapter != getStringValue(this, (betAgainst + "_adapter"))))
166188 then throw("bets has different adapters")
167189 else {
190+ let minMatchNominal = getMinMatchByAdapter(adapter)
168191 let betForOwner = getStringValue(this, (betFor + "_owner"))
169192 let betAgainstOwner = getStringValue(this, (betAgainst + "_owner"))
170193 let eventid = extract(getString(this, (betFor + "_event")))
171194 let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + takeRight(toBase58String(i.transactionId), 10)) + "_")
172195 let odds = extract(getInteger(this, (betFor + "_odds")))
173196 let unspentFor = getUnspent(betFor)
174197 let unspentAgainst = getUnspent(betAgainst)
175198 let maxForNominal = unspentFor
176199 let maxAgainstNominal = ((unspentAgainst * 100) / (odds - 100))
177200 let matchNominal = if ((maxForNominal > maxAgainstNominal))
178201 then maxAgainstNominal
179202 else maxForNominal
180203 if ((minMatchNominal > matchNominal))
181204 then throw("match nominal too low")
182205 else {
183206 let spendFor = matchNominal
184207 let spendAgainst = ((matchNominal * (odds - 100)) / 100)
185208 let newSpentFor = (spendFor + extract(getInteger(this, (betFor + "_spent"))))
186209 let newSpentAgainst = (spendAgainst + extract(getInteger(this, (betAgainst + "_spent"))))
187210 if ((newSpentFor > extract(getInteger(this, (betFor + "_amount")))))
188211 then throw("invalid match")
189212 else if ((newSpentAgainst > extract(getInteger(this, (betAgainst + "_amount")))))
190213 then throw("invalid match")
191214 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)
192215 }
193216 }
194217 }
195218
196219
197220
198221 @Callable(i)
199-func approveDefeat (betId,defeat) = if (if (isDefined(getInteger(this, (betId + "_defeat"))))
200- then (defeat == 2)
201- else false)
202- then throw("can't dispute after approve")
203- else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove")))
204- then throw("must be owner or its delegate to approve")
205- else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit)
222+func approveDefeat (betId,defeat) = {
223+ let a = extract(assetInfo(base58''))
224+ if (if (isDefined(getInteger(this, (betId + "_defeat"))))
225+ then (defeat == 2)
226+ else false)
227+ then throw("can't dispute after approve")
228+ else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i, "autoapprove")))
229+ then throw("must be owner or its delegate to approve")
230+ else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit, unit)
231+ }
206232
207233
208234
209235 @Callable(i)
210236 func judgeDexMatch (matchId) = if ((getStringValue(this, (matchId + "_adapter")) != "dex"))
211237 then throw("method is only for dex matches")
212238 else if ((getBoolean(this, (matchId + "_judged")) == true))
213239 then throw("already judged")
214240 else {
215241 let betFor = getStringValue(this, (matchId + "_for"))
216242 let betAgainst = getStringValue(this, (matchId + "_against"))
217243 let event = getStringValue(this, (betFor + "_event"))
218244 let eventS = split(event, ":")
219245 let pair = eventS[1]
220246 let eventRate = parseIntValue(eventS[2])
221247 let eventTs = parseIntValue(eventS[3])
248+ let pairSplit = split(pair, "/")
249+ let pairDecimals1 = getIntegerValue(assetsDecimals, pairSplit[0])
250+ let pairDecimals2 = getIntegerValue(assetsDecimals, pairSplit[1])
251+ let rateCorrectionPower = (pairDecimals1 - pairDecimals2)
252+ let rateCorrection = if ((rateCorrectionPower == 0))
253+ then 1
254+ else if ((rateCorrectionPower == 1))
255+ then 10
256+ else if ((rateCorrectionPower == 2))
257+ then 100
258+ else if ((rateCorrectionPower == 3))
259+ then 1000
260+ else if ((rateCorrectionPower == 4))
261+ then 10000
262+ else if ((rateCorrectionPower == 5))
263+ then 100000
264+ else if ((rateCorrectionPower == 6))
265+ then 1000000
266+ else if ((rateCorrectionPower == 7))
267+ then 10000000
268+ else if ((rateCorrectionPower == 8))
269+ then 100000000
270+ else throw("unsupported")
222271 let judgeTs = ((eventTs * 1000) + dexJudgeGraceTs)
223272 if ((judgeTs > lastBlock.timestamp))
224273 then throw(("please wait for timestamp " + toString(judgeTs)))
225274 else {
226275 let rateFromAgent = getInteger(dexAgent, (event + "_rate"))
227276 if (!(isDefined(rateFromAgent)))
228277 then throw("rate from agent not ready yet")
229278 else {
230- let looserBet = if ((extract(rateFromAgent) >= eventRate))
279+ let looserBet = if (((extract(rateFromAgent) * rateCorrection) > eventRate))
231280 then betAgainst
232281 else betFor
233282 repayFee(i, WriteSet([DataEntry((looserBet + "_defeat"), 1), DataEntry((matchId + "_judged"), true)]), 0, unit, unit)
234283 }
235284 }
236285 }
237286
238287
239288
240289 @Callable(i)
241290 func payWinner (matchId) = if (!(checkFee(i)))
242291 then throw("error")
243- else if (isDefined(getInteger(this, (matchId + "_paid"))))
292+ else if (isDefined(getString(this, (matchId + "_paid"))))
244293 then throw("already paid")
245294 else {
246295 let adapter = getStringValue(this, (matchId + "_adapter"))
247296 let betAssetId = getAssetByAdapter(adapter)
297+ let betAssetMnemonic = getStringValue(betAssetMnemonics, adapter)
248298 let betForId = extract(getString(this, (matchId + "_for")))
249299 let betAgainstId = extract(getString(this, (matchId + "_against")))
250300 let betForDefeated = isDefeated(betForId)
251301 let betAgainstDefeated = isDefeated(betAgainstId)
252302 if (if (!(betForDefeated))
253303 then !(betAgainstDefeated)
254304 else false)
255305 then throw("no side approved defeat")
256306 else {
257307 let winnerId = if (betForDefeated)
258308 then betAgainstId
259309 else betForId
260310 let winnerAddress = getStringValue(this, (winnerId + "_owner"))
261311 let amount = extract(getInteger(this, (matchId + "_amount")))
262312 let txid = toBase58String(i.transactionId)
263313 let timestamp = toString(lastBlock.timestamp)
264314 let refAmount = ((amount * totalRef) / 1000)
265315 ScriptResult(WriteSet([DataEntry((matchId + "_paid"), toBase58String(i.transactionId)), match getReferer(winnerAddress) {
266316 case ref1: String =>
267317 let incLevel1 = ((refAmount * level1) / 1000)
268318 let incCashBack = ((refAmount * cashBack) / 1000)
269-[balanceIncrement(winnerAddress, incCashBack), recordBalanceIncrement(winnerAddress, winnerAddress, incCashBack, "cashback", txid, timestamp), balanceIncrement(ref1, incLevel1), recordBalanceIncrement(ref1, winnerAddress, incLevel1, "l1", txid, timestamp), match getReferer(ref1) {
319+[balanceIncrement(winnerAddress, betAssetMnemonic, incCashBack), recordBalanceIncrement(winnerAddress, betAssetMnemonic, winnerAddress, incCashBack, "cashback", txid, timestamp), balanceIncrement(ref1, betAssetMnemonic, incLevel1), recordBalanceIncrement(ref1, betAssetMnemonic, winnerAddress, incLevel1, "l1", txid, timestamp), match getReferer(ref1) {
270320 case ref2: String =>
271321 let incLevel2 = ((refAmount * level2) / 1000)
272-[balanceIncrement(ref2, incLevel2), recordBalanceIncrement(ref2, winnerAddress, incLevel2, "l2", txid, timestamp), match getReferer(ref2) {
273- case ref3: String =>
274- let incLevel3 = ((refAmount * level3) / 1000)
275-[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)]
322+[balanceIncrement(ref2, betAssetMnemonic, incLevel2), recordBalanceIncrement(ref2, betAssetMnemonic, winnerAddress, incLevel2, "l2", txid, timestamp), match getReferer(ref2) {
276323 case _ =>
277-[balanceIncrement(changeAddress, ((refAmount - incLevel1) - incLevel2)), recordBalanceIncrement(changeAddress, winnerAddress, ((refAmount - incLevel1) - incLevel2), "change", txid, timestamp)]
324+[balanceIncrement(changeAddress, betAssetMnemonic, ((refAmount - incLevel1) - incLevel2)), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, ((refAmount - incLevel1) - incLevel2), "change", txid, timestamp)]
278325 }]
279326 case _ =>
280-[balanceIncrement(changeAddress, (refAmount - incLevel1)), recordBalanceIncrement(changeAddress, winnerAddress, (refAmount - incLevel1), "change", txid, timestamp)]
327+[balanceIncrement(changeAddress, betAssetMnemonic, (refAmount - incLevel1)), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, (refAmount - incLevel1), "change", txid, timestamp)]
281328 }]
282329 case _ =>
283-[balanceIncrement(changeAddress, refAmount), recordBalanceIncrement(changeAddress, winnerAddress, refAmount, "change", txid, timestamp)]
330+[balanceIncrement(changeAddress, betAssetMnemonic, refAmount), recordBalanceIncrement(changeAddress, betAssetMnemonic, winnerAddress, refAmount, "change", txid, timestamp)]
284331 }]), TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(addressFromStringValue(winnerAddress), (amount - refAmount), betAssetId)]))
285332 }
286333 }
287334
288335
289336
290337 @Callable(i)
291338 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)
292339
293340
294341
295342 @Callable(i)
296-func withdraw () = if (!(checkFee(i)))
343+func withdraw (assetName) = if (!(checkFee(i)))
297344 then throw("error")
298345 else {
299346 let owner = toBase58String(i.caller.bytes)
300347 let txid = toBase58String(i.transactionId)
301- let balanceKey = (owner + "_balance")
348+ let balanceKey = (((owner + "_") + assetName) + "_balance")
349+ let assetId = getAssetIdByName(assetName)
302350 let amount = match getInteger(this, balanceKey) {
303351 case b: Int =>
304352 b
305353 case _ =>
306354 0
307355 }
308356 if ((minWithdraw > amount))
309357 then throw(("Min withdraw amount is" + toString(minWithdraw)))
310- else ScriptResult(WriteSet([DataEntry(balanceKey, 0), DataEntry(((("withdraw_" + owner) + "_") + txid), ((toString(amount) + ":") + toString(lastBlock.timestamp)))]), TransferSet([ScriptTransfer(i.caller, (amount + i.fee), unit)]))
358+ else ScriptResult(WriteSet([DataEntry(balanceKey, 0), DataEntry(((("withdraw_" + owner) + "_") + txid), ((((toString(amount) + ":") + toString(lastBlock.timestamp)) + ":") + assetName))]), TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(i.caller, amount, assetId)]))
311359 }
312360
313361
314362
315363 @Callable(i)
316364 func register (referer,salt) = if (!(checkFee(i)))
317365 then throw("error")
318366 else if ((take(toBase58String(i.transactionId), 3) != "123"))
319367 then throw("proof of work failed")
320368 else {
321369 let owner = toBase58String(i.caller.bytes)
322370 if (isDefined(getReferer(owner)))
323371 then throw("Already registered")
324372 else ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(((referer + "_referral_") + owner), owner)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
325373 }
326374
327375

github/deemru/w8io/026f985 
95.66 ms