tx · HrRyXSmCQ1HmXUqYFCv7oF2P4iMarSBGPptzuQhSaeCv

3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL:  -0.01400000 Waves

2019.08.23 10:44 [643502] smart account 3NAxsbHxS63azdAicVvLGsxjAQ9DsK6L4NL > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
48.76 ms