tx · EypVfG5a4fkj65ahrhJeJV9nzyj5DePoGtqwgi8pTVgy

3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL:  -0.01400000 Waves

2019.08.22 20:15 [642618] smart account 3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL > SELF 0.00000000 Waves

{ "type": 13, "id": "EypVfG5a4fkj65ahrhJeJV9nzyj5DePoGtqwgi8pTVgy", "fee": 1400000, "feeAssetId": null, "timestamp": 1566494129548, "version": 1, "sender": "3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL", "senderPublicKey": "FbEMepLNcZb6VBpsH5JJg4j43UEV27dMRqv1Pq6JFLgy", "proofs": [ "5jKBDQjNDr3BaVCNZt8gkdEajmaNKhNHH8X4kRfGbTLj8BATTVThRUxFUyB3JsHSuxwduUEUT9UCEmLeDDvztSuD" ], "script": "base64:AAIDAAAAAAAAAAAAAAAKAAAAAApiZXRBc3NldElkAQAAACAea7QCZF/XAXMBPEnDQ5kqHUHyOfWmXu9KHDHL6zcNNwAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAAZtaW5CZXQAAAAAAABMS0AAAAAAD21pbk1hdGNoTm9taW5hbAAAAAAAAExLQAEAAAATZ2V0Q2FsbGVyQnlEZWxlZ2F0ZQAAAAEAAAABaQQAAAAGY2FsbGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAlkZWxlZ2F0ZV8FAAAABmNhbGxlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzBQAAAAZjYWxsZXIBAAAACGNoZWNrRmVlAAAAAQAAAAFpAwkAAGYAAAACCAUAAAABaQAAAANmZWUFAAAABm1heEZlZQkAAAIAAAABAgAAABZ1bnJlYXNvbmFibGUgbGFyZ2UgZmVlAwkBAAAAAiE9AAAAAggFA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kABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAlkZWxlZ2F0ZV8FAAAACmRlbGVnYXRlVG8JAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwUAAAADbmlsAAAAAAAAAAAABQAAAAR1bml0AAAAACwlUn0=", "chainId": 84, "height": 642618, "spentComplexity": 0 } View: original | compacted Prev: BpujDnGS7CTNiSLNgfjRaEkfGKkgqxD7fVYH9mHc5L1S Next: BQpAhfyfq95r7CJ2PAwKvpHFfjKLq4kyRKKvCZ8oR6Sw Diff:
OldNewDifferences
164164
165165
166166 @Callable(i)
167-func delegate (delegateTo) = repayFee(i, WriteSet([DataEntry(("delegate_" + toBase58String(i.caller.bytes)), delegateTo)]), 0, unit)
167+func delegate (delegateTo) = repayFee(i, WriteSet([DataEntry(("delegate_" + delegateTo), toBase58String(i.caller.bytes))]), 0, unit)
168168
169169
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let betAssetId = base58'33kV5hRVtgEGpYqhp9wQn2g9hP1fNWSYGCzzYk1T9Hyg'
55
66 let maxFee = 5000000
77
88 let minBet = 5000000
99
1010 let minMatchNominal = 5000000
1111
1212 func getCallerByDelegate (i) = {
1313 let caller = toBase58String(i.caller.bytes)
1414 match getString(this, ("delegate_" + caller)) {
1515 case s: String =>
1616 s
1717 case _ =>
1818 caller
1919 }
2020 }
2121
2222
2323 func checkFee (i) = if ((i.fee > maxFee))
2424 then throw("unreasonable large fee")
2525 else if ((i.feeAssetId != unit))
2626 then throw("fee must be in WAVES")
2727 else true
2828
2929
3030 func repayFee (i,ws,amount,recipient) = if (checkFee(i))
3131 then if (if ((amount > 0))
3232 then isDefined(recipient)
3333 else false)
3434 then ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit), ScriptTransfer(extract(recipient), amount, betAssetId)]))
3535 else ScriptResult(ws, TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
3636 else throw("error")
3737
3838
3939 func checkOwner (i,betid) = (getString(this, (betid + "_owner")) == toBase58String(i.caller.bytes))
4040
4141
4242 func getUnspent (betid) = (extract(getInteger(this, (betid + "_amount"))) - extract(getInteger(this, (betid + "_spent"))))
4343
4444
4545 func isDefeated (betid) = {
4646 let defeatStatus = getInteger(this, (betid + "_defeat"))
4747 if ((defeatStatus == 1))
4848 then true
4949 else (defeatStatus == 3)
5050 }
5151
5252
5353 @Callable(i)
5454 func bet (event,subevent,side,odds) = {
5555 let owner = toBase58String(i.caller.bytes)
5656 let payment = extract(i.payment)
5757 if ((payment.assetId != betAssetId))
5858 then throw(("bet must be in asset " + toBase58String(betAssetId)))
5959 else if ((minBet > payment.amount))
6060 then throw(("minimum allowed bet is " + toString(minBet)))
6161 else if (if ((side != "for"))
6262 then (side != "against")
6363 else false)
6464 then throw("unexpected side")
6565 else {
6666 let betid = (((((("bet_" + event) + "_") + toBase58String(i.caller.bytes)) + "_") + take(toBase58String(i.transactionId), 15)) + "_")
6767 let sequenceKey = ((("seq_" + event) + "_") + subevent)
6868 let sequence = match getInteger(this, sequenceKey) {
6969 case prevS: Int =>
7070 (prevS + 1)
7171 case _ =>
7272 1
7373 }
7474 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 + "timestamp"), lastBlock.timestamp), DataEntry((betid + "sequence"), sequence), DataEntry(sequenceKey, sequence)]), 0, unit)
7575 }
7676 }
7777
7878
7979
8080 @Callable(i)
8181 func cancel (betid) = if (!(checkOwner(i, betid)))
8282 then throw("permission denied")
8383 else {
8484 let amount = extract(getInteger(this, (betid + "_amount")))
8585 let spent = extract(getInteger(this, (betid + "_spent")))
8686 let cancelAmount = (amount - spent)
8787 repayFee(i, WriteSet([DataEntry((betid + "_spent"), amount), DataEntry((betid + "_cancel_amount"), cancelAmount), DataEntry((betid + "_cancel_tx"), toBase58String(i.transactionId))]), cancelAmount, i.caller)
8888 }
8989
9090
9191
9292 @Callable(i)
9393 func betMatch (betFor,betAgainst) = if ((getString(this, (betFor + "_event")) != getString(this, (betAgainst + "_event"))))
9494 then throw("event id must match")
9595 else if ((getString(this, (betFor + "_subevent")) != getString(this, (betAgainst + "_subevent"))))
9696 then throw("subevent id must match")
9797 else if ((getString(this, (betFor + "_side")) != "for"))
9898 then throw("invalid *for* bet")
9999 else if ((getString(this, (betAgainst + "_side")) != "against"))
100100 then throw("invalid *against* bet")
101101 else {
102102 let betForOwner = getStringValue(this, (betFor + "_owner"))
103103 let betAgainstOwner = getStringValue(this, (betAgainst + "_owner"))
104104 let eventid = extract(getString(this, (betFor + "_event")))
105105 let matchid = (((((((("match_" + eventid) + "_") + takeRight(betForOwner, 10)) + "_") + takeRight(betAgainstOwner, 10)) + "_") + toBase58String(i.transactionId)) + "_")
106106 let odds = extract(getInteger(this, (betFor + "_odds")))
107107 let unspentFor = getUnspent(betFor)
108108 let unspentAgainst = getUnspent(betAgainst)
109109 let maxForNominal = unspentFor
110110 let maxAgainstNominal = ((unspentAgainst * 100) / (odds - 100))
111111 let matchNominal = if ((maxForNominal > maxAgainstNominal))
112112 then maxAgainstNominal
113113 else maxForNominal
114114 if ((minMatchNominal > matchNominal))
115115 then throw("match nominal too low")
116116 else {
117117 let spendFor = matchNominal
118118 let spendAgainst = ((matchNominal * (odds - 100)) / 100)
119119 let newSpentFor = (spendFor + extract(getInteger(this, (betFor + "_spent"))))
120120 let newSpentAgainst = (spendAgainst + extract(getInteger(this, (betAgainst + "_spent"))))
121121 if ((newSpentFor > extract(getInteger(this, (betFor + "_amount")))))
122122 then throw("invalid match")
123123 else if ((newSpentAgainst > extract(getInteger(this, (betAgainst + "_amount")))))
124124 then throw("invalid match")
125125 else repayFee(i, WriteSet([DataEntry((matchid + "amount"), (spendFor + spendAgainst)), DataEntry((matchid + "for"), betFor), DataEntry((matchid + "against"), betAgainst), DataEntry((betFor + "_spent"), newSpentFor), DataEntry((betAgainst + "_spent"), newSpentAgainst)]), 0, unit)
126126 }
127127 }
128128
129129
130130
131131 @Callable(i)
132132 func approveDefeat (betId,defeat) = if (if (isDefined(getInteger(this, (betId + "_defeat"))))
133133 then (defeat == 2)
134134 else false)
135135 then throw("can't dispute after approve")
136136 else if ((getString(this, (betId + "_owner")) != getCallerByDelegate(i)))
137137 then throw("must be owner or its delegate to approve")
138138 else repayFee(i, WriteSet([DataEntry((betId + "_defeat"), defeat)]), 0, unit)
139139
140140
141141
142142 @Callable(i)
143143 func payWinner (matchId) = if (isDefined(getInteger(this, (matchId + "_paid"))))
144144 then throw("already paid")
145145 else {
146146 let betForId = extract(getString(this, (matchId + "_for")))
147147 let betAgainstId = extract(getString(this, (matchId + "_against")))
148148 let betForDefeated = isDefeated(betForId)
149149 let betAgainstDefeated = isDefeated(betAgainstId)
150150 if (if (!(betForDefeated))
151151 then !(betAgainstDefeated)
152152 else false)
153153 then throw("no side approved defeat")
154154 else {
155155 let winnerId = if (betForDefeated)
156156 then betAgainstId
157157 else betForId
158158 let winnerAddress = getStringValue(this, (winnerId + "_owner"))
159159 let amount = extract(getInteger(this, (matchId + "_amount")))
160160 repayFee(i, WriteSet([DataEntry((matchId + "_paid"), toBase58String(i.transactionId))]), amount, addressFromString(winnerAddress))
161161 }
162162 }
163163
164164
165165
166166 @Callable(i)
167-func delegate (delegateTo) = repayFee(i, WriteSet([DataEntry(("delegate_" + toBase58String(i.caller.bytes)), delegateTo)]), 0, unit)
167+func delegate (delegateTo) = repayFee(i, WriteSet([DataEntry(("delegate_" + delegateTo), toBase58String(i.caller.bytes))]), 0, unit)
168168
169169

github/deemru/w8io/026f985 
46.01 ms