tx · Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo

3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2:  -0.05000000 Waves

2021.09.01 23:18 [1684437] smart account 3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2 > SELF 0.00000000 Waves

{ "type": 13, "id": "Dt5FWBqNqxLccb1KU7zLKENfod9QnPrCxv6EvYp2zRQo", "fee": 5000000, "feeAssetId": null, "timestamp": 1630527512505, "version": 2, "chainId": 84, "sender": "3MrfHoPDiF2nJb6T6Z6J7MdhpX3LeVaLaW2", "senderPublicKey": "ANm32Ptz6YTMKvYUJBEYd4CYiTVn6XEvYjZhewQMphSJ", "proofs": [ "57LEB3SgYa1FPYEkPPXAdcCmprDJLYY4hvE7bCj1FFhEYNo1L3vsRi6YnkmDWqyubbLPn7CVgJUJeRREQ1QdmoVz" ], "script": "base64:AAIFAAAAAAAAAoMIAhIDCgEBEgMKAQgSAwoBCBIECgIICBIECgIICBoWCgJhMRIQTkZUSXNzdWVyQWRkcmVzcxoaCgJhMhIUTkZUSXNzdWVyZmVlUmVjZWl2ZXIaGQoCYTMSE05GVElzc3VlcmZlZVBlcmNlbnQaFgoCYTQSEEFydGlzdGZlZVBlcmNlbnQaEwoCYTUSDXNjb25leEFzc2V0SWQaEwoCYTYSDXRyeUdldEludGVnZXIaCQoCYTcSA2tleRoJCgJhOBIDdmFsGg0KAmE5EgckbWF0Y2gwGgcKAmIxEgFiGhIKAmIyEgx0cnlHZXRTdHJpbmcaEgoCYjMSDGdldE5GVElzc3VlchoNCgJiNBIHYXNzZXRJZBoRCgJiNRILbXlhc3NldGluZm8aEgoCYjYSDGdldE5GVEFydGlzdBoTCgJiNxINQXJ0aXN0QWRkcmVzcxoWCgJiOBIQYWNjZXB0ZWRBc3NldElkcxoHCgJiORIBaRoQCgJjMRIKc3RhcnRQcmljZRoPCgJjMhIJYXVjdGlvbklkGgcKAmMzEgF4GggKAmM0EgJ4MRoJC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AAAZAUAAAACYTUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABBQAAAAJhMgkAAGsAAAADBQAAAAJkNAUAAAACYTMAAAAAAAAAAGQFAAAAAmE1CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAAmQzAAAAAAAAAAABCQACWQAAAAEFAAAAAmI0BQAAAANuaWwAAAABAAAAAmQ4AQAAAAJkOQAAAAAJAAH0AAAAAwgFAAAAAmQ4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACZDgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACZDgAAAAPc2VuZGVyUHVibGljS2V53O1JRg==", "height": 1684437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8G8BGrUyjndxQhEgXCQzFFTF4ze7GFm8ALWsyxsbtHY1 Next: 5MuQSjKxfgBqaUEVGqdjar2drsH2P7cGYJEJpurd267w Diff:
OldNewDifferences
6969 @Callable(r)
7070 func initAuction (s) = {
7171 let t = toBase58String(r.transactionId)
72- let u = if (isDefined(r.payments[0]))
73- then value(r.payments[0])
72+ let u = if ((size(r.payments) == 0))
73+ then value(r.payments)
7474 else throw("No payment attached")
75- let v = value(r.payments[0])
76- let m = value(v.assetId)
77- let w = l(m)
78- if ((w == ""))
75+ let v = if ((size(r.payments) > 1))
76+ then value(r.payments)
77+ else throw("Too many payments attached")
78+ let w = value(r.payments[0])
79+ let m = value(w.assetId)
80+ let x = l(m)
81+ if ((x == ""))
7982 then throw("You can only sell an NFT created on SCONE Marketplace")
80- else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), w), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))]
83+ else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), x), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))]
8184 }
8285
8386
8487
8588 @Callable(r)
8689 func cancelAuction (t) = {
87- let x = k((("auction_" + t) + "_owner"))
88- if ((toString(r.caller) != x))
90+ let y = k((("auction_" + t) + "_owner"))
91+ if ((toString(r.caller) != y))
8992 then throw("Only allowed to auction owner")
9093 else if ((k((("auction_" + t) + "_status")) != "open"))
9194 then throw("auction is close")
92- else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))]
95+ else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))]
9396 }
9497
9598
9699
97100 @Callable(r)
98101 func placeBid (t) = {
99- let v = value(r.payments[0])
100- let y = v.amount
101- let z = toBase58String(r.transactionId)
102+ let w = value(r.payments[0])
103+ let z = w.amount
104+ let A = toBase58String(r.transactionId)
102105 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
103- let A = if (!(isDefined(v.assetId)))
106+ let B = if (!(isDefined(w.assetId)))
104107 then throw("Only sconex is accepted!")
105- else toBase58String(value(v.assetId))
106- if (!(q(A)))
108+ else toBase58String(value(w.assetId))
109+ if (!(q(B)))
107110 then throw("Auction does only support sconex payments")
108111 else {
109- let B = f((("auction_" + t) + "_startPrice"))
110- if ((B > y))
111- then throw(("The minimal initial price is set as " + toString(B)))
112- else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(y)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + z) + "_amount"), y), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + z), m), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "open")]
112+ let C = f((("auction_" + t) + "_startPrice"))
113+ if ((C > z))
114+ then throw(("The minimal initial price is set as " + toString(C)))
115+ else [StringEntry((((("auction_" + t) + "_bid_") + A) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(z)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + A) + "_amount"), z), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + A), m), StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "open")]
113116 }
114117 }
115118
116119
117120
118121 @Callable(r)
119-func cancelBid (t,z) = {
122+func cancelBid (t,A) = {
120123 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
121- let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
122- let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
123- if (if ((toString(r.caller) != C))
124+ let D = k((((("auction_" + t) + "_bid_") + A) + "_author"))
125+ let E = f((((("auction_" + t) + "_bid_") + A) + "_amount"))
126+ if (if ((toString(r.caller) != D))
124127 then (r.caller != this)
125128 else false)
126129 then throw("Only allowed to the bid author or admin")
127- else if ((k((((("auction_" + t) + "_bid_") + z) + "_status")) != "open"))
130+ else if ((k((((("auction_" + t) + "_bid_") + A) + "_status")) != "open"))
128131 then throw("bid is not open")
129- else [StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "cancelled"), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), ScriptTransfer(Address(fromBase58String(C)), D, e)]
132+ else [StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "cancelled"), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), ScriptTransfer(Address(fromBase58String(D)), E, e)]
130133 }
131134
132135
133136
134137 @Callable(r)
135-func acceptBid (t,z) = {
136- let x = k((("auction_" + t) + "_owner"))
137- let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
138- let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
139- let E = k((((("auction_" + t) + "_bid_") + z) + "_status"))
138+func acceptBid (t,A) = {
139+ let y = k((("auction_" + t) + "_owner"))
140+ let D = k((((("auction_" + t) + "_bid_") + A) + "_author"))
141+ let E = f((((("auction_" + t) + "_bid_") + A) + "_amount"))
142+ let F = k((((("auction_" + t) + "_bid_") + A) + "_status"))
140143 let m = k((("auction_" + t) + "_assetId"))
141- if ((toString(r.caller) != x))
144+ if ((toString(r.caller) != y))
142145 then throw("Only allowed to auction owner")
143- else if ((E != "open"))
146+ else if ((F != "open"))
144147 then throw("Bid was cancelled and cannot be accepted")
145148 else {
146- let F = f((m + "_recordPrice"))
147- let G = max([F, D])
149+ let G = f((m + "_recordPrice"))
150+ let H = max([G, E])
148151 let p = o(m)
149152 if ((p == ""))
150- then [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
151- else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
153+ then [StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), E), IntegerEntry((m + "_recordPrice"), H), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(E, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(E, d, 100), e), ScriptTransfer(Address(b), fraction(E, c, 100), e), ScriptTransfer(addressFromStringValue(D), 1, fromBase58String(m))]
154+ else [StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), E), IntegerEntry((m + "_recordPrice"), H), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(E, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(E, d, 100), e), ScriptTransfer(Address(b), fraction(E, c, 100), e), ScriptTransfer(addressFromStringValue(D), 1, fromBase58String(m))]
152155 }
153156 }
154157
155158
156-@Verifier(H)
157-func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
159+@Verifier(I)
160+func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey)
158161
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'3MrWNTqFcHBqb58Za1A5crQrMV5KJ5DYhtA'
55
66 let b = base58'3N65xLq8JcCeaEiR1TJQ7dBqXBvEy6E48Wz'
77
88 let c = 3
99
1010 let d = 7
1111
1212 let e = base58'DZ8ALmuLeSZ2ocsYLAcL9MiXBFDbMNQG9LtitREyU5ZC'
1313
1414 func f (g) = {
1515 let h = {
1616 let i = getInteger(this, g)
1717 if ($isInstanceOf(i, "Int"))
1818 then {
1919 let j = i
2020 j
2121 }
2222 else 0
2323 }
2424 h
2525 }
2626
2727
2828 func k (g) = {
2929 let h = {
3030 let i = getString(this, g)
3131 if ($isInstanceOf(i, "String"))
3232 then {
3333 let j = i
3434 j
3535 }
3636 else ""
3737 }
3838 h
3939 }
4040
4141
4242 func l (m) = {
4343 let n = value(assetInfo(m))
4444 if ((n.issuer == Address(a)))
4545 then "true"
4646 else ""
4747 }
4848
4949
5050 func o (m) = {
5151 let p = {
5252 let i = getString(Address(a), ("nft_issued_" + m))
5353 if ($isInstanceOf(i, "String"))
5454 then {
5555 let j = i
5656 j
5757 }
5858 else ""
5959 }
6060 p
6161 }
6262
6363
6464 func q (m) = if ((m != toBase58String(e)))
6565 then throw("Only Sconex accepted")
6666 else true
6767
6868
6969 @Callable(r)
7070 func initAuction (s) = {
7171 let t = toBase58String(r.transactionId)
72- let u = if (isDefined(r.payments[0]))
73- then value(r.payments[0])
72+ let u = if ((size(r.payments) == 0))
73+ then value(r.payments)
7474 else throw("No payment attached")
75- let v = value(r.payments[0])
76- let m = value(v.assetId)
77- let w = l(m)
78- if ((w == ""))
75+ let v = if ((size(r.payments) > 1))
76+ then value(r.payments)
77+ else throw("Too many payments attached")
78+ let w = value(r.payments[0])
79+ let m = value(w.assetId)
80+ let x = l(m)
81+ if ((x == ""))
7982 then throw("You can only sell an NFT created on SCONE Marketplace")
80- else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), w), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))]
83+ else [StringEntry((("auction_" + t) + "_status"), "open"), StringEntry((("auction_" + toBase58String(m)) + "_last"), t), StringEntry((("auction_" + t) + "_assetName"), x), StringEntry((("auction_" + t) + "_assetId"), toBase58String(m)), IntegerEntry((("auction_" + t) + "_startedAt"), lastBlock.timestamp), StringEntry((("auction_" + t) + "_owner"), toString(r.caller)), IntegerEntry((("auction_" + t) + "_startPrice"), s), StringEntry((((("address_" + toString(r.caller)) + "_auction_") + t) + "_lockedNFT"), toBase58String(m))]
8184 }
8285
8386
8487
8588 @Callable(r)
8689 func cancelAuction (t) = {
87- let x = k((("auction_" + t) + "_owner"))
88- if ((toString(r.caller) != x))
90+ let y = k((("auction_" + t) + "_owner"))
91+ if ((toString(r.caller) != y))
8992 then throw("Only allowed to auction owner")
9093 else if ((k((("auction_" + t) + "_status")) != "open"))
9194 then throw("auction is close")
92- else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))]
95+ else [StringEntry((("auction_" + t) + "_status"), "cancelled"), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, 1, fromBase58String(getStringValue(this, (("auction_" + t) + "_assetId"))))]
9396 }
9497
9598
9699
97100 @Callable(r)
98101 func placeBid (t) = {
99- let v = value(r.payments[0])
100- let y = v.amount
101- let z = toBase58String(r.transactionId)
102+ let w = value(r.payments[0])
103+ let z = w.amount
104+ let A = toBase58String(r.transactionId)
102105 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
103- let A = if (!(isDefined(v.assetId)))
106+ let B = if (!(isDefined(w.assetId)))
104107 then throw("Only sconex is accepted!")
105- else toBase58String(value(v.assetId))
106- if (!(q(A)))
108+ else toBase58String(value(w.assetId))
109+ if (!(q(B)))
107110 then throw("Auction does only support sconex payments")
108111 else {
109- let B = f((("auction_" + t) + "_startPrice"))
110- if ((B > y))
111- then throw(("The minimal initial price is set as " + toString(B)))
112- else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(y)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + z) + "_amount"), y), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + z), m), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "open")]
112+ let C = f((("auction_" + t) + "_startPrice"))
113+ if ((C > z))
114+ then throw(("The minimal initial price is set as " + toString(C)))
115+ else [StringEntry((((("auction_" + t) + "_bid_") + A) + "_author"), toString(r.caller)), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(z)) + "\", \"status\": \"open\"}")), IntegerEntry((((("auction_" + t) + "_bid_") + A) + "_amount"), z), StringEntry(((((("address_" + toString(r.caller)) + "_auction_") + t) + "_bid_") + A), m), StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "open")]
113116 }
114117 }
115118
116119
117120
118121 @Callable(r)
119-func cancelBid (t,z) = {
122+func cancelBid (t,A) = {
120123 let m = getStringValue(this, (("auction_" + t) + "_assetId"))
121- let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
122- let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
123- if (if ((toString(r.caller) != C))
124+ let D = k((((("auction_" + t) + "_bid_") + A) + "_author"))
125+ let E = f((((("auction_" + t) + "_bid_") + A) + "_amount"))
126+ if (if ((toString(r.caller) != D))
124127 then (r.caller != this)
125128 else false)
126129 then throw("Only allowed to the bid author or admin")
127- else if ((k((((("auction_" + t) + "_bid_") + z) + "_status")) != "open"))
130+ else if ((k((((("auction_" + t) + "_bid_") + A) + "_status")) != "open"))
128131 then throw("bid is not open")
129- else [StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "cancelled"), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), ScriptTransfer(Address(fromBase58String(C)), D, e)]
132+ else [StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"cancelled\"}")), StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "cancelled"), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), ScriptTransfer(Address(fromBase58String(D)), E, e)]
130133 }
131134
132135
133136
134137 @Callable(r)
135-func acceptBid (t,z) = {
136- let x = k((("auction_" + t) + "_owner"))
137- let C = k((((("auction_" + t) + "_bid_") + z) + "_author"))
138- let D = f((((("auction_" + t) + "_bid_") + z) + "_amount"))
139- let E = k((((("auction_" + t) + "_bid_") + z) + "_status"))
138+func acceptBid (t,A) = {
139+ let y = k((("auction_" + t) + "_owner"))
140+ let D = k((((("auction_" + t) + "_bid_") + A) + "_author"))
141+ let E = f((((("auction_" + t) + "_bid_") + A) + "_amount"))
142+ let F = k((((("auction_" + t) + "_bid_") + A) + "_status"))
140143 let m = k((("auction_" + t) + "_assetId"))
141- if ((toString(r.caller) != x))
144+ if ((toString(r.caller) != y))
142145 then throw("Only allowed to auction owner")
143- else if ((E != "open"))
146+ else if ((F != "open"))
144147 then throw("Bid was cancelled and cannot be accepted")
145148 else {
146- let F = f((m + "_recordPrice"))
147- let G = max([F, D])
149+ let G = f((m + "_recordPrice"))
150+ let H = max([G, E])
148151 let p = o(m)
149152 if ((p == ""))
150- then [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
151- else [StringEntry((((("auction_" + t) + "_bid_") + z) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + z) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(D)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), D), IntegerEntry((m + "_recordPrice"), G), DeleteEntry(((((("address_" + C) + "_auction_") + t) + "_bid_") + z)), DeleteEntry((((("address_" + x) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(D, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(D, d, 100), e), ScriptTransfer(Address(b), fraction(D, c, 100), e), ScriptTransfer(addressFromStringValue(C), 1, fromBase58String(m))]
153+ then [StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), E), IntegerEntry((m + "_recordPrice"), H), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(E, ((100 - c) - d), 100), e), ScriptTransfer(Address(b), fraction(E, d, 100), e), ScriptTransfer(Address(b), fraction(E, c, 100), e), ScriptTransfer(addressFromStringValue(D), 1, fromBase58String(m))]
154+ else [StringEntry((((("auction_" + t) + "_bid_") + A) + "_status"), "finished"), StringEntry((("auction_" + t) + "_status"), "finished"), StringEntry((((("assetId_" + m) + "_bid_") + A) + "_data"), (((((("{\"auctionId\": \"" + t) + "\", \"author\": \"") + toString(r.caller)) + "\", \"amount\": \"") + toString(E)) + "\", \"status\": \"finished\"}")), IntegerEntry((("auction_" + t) + "_finalPrice"), E), IntegerEntry((m + "_recordPrice"), H), DeleteEntry(((((("address_" + D) + "_auction_") + t) + "_bid_") + A)), DeleteEntry((((("address_" + y) + "_auction_") + t) + "_lockedNFT")), ScriptTransfer(r.caller, fraction(E, ((100 - c) - d), 100), e), ScriptTransfer(Address(fromBase58String(p)), fraction(E, d, 100), e), ScriptTransfer(Address(b), fraction(E, c, 100), e), ScriptTransfer(addressFromStringValue(D), 1, fromBase58String(m))]
152155 }
153156 }
154157
155158
156-@Verifier(H)
157-func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey)
159+@Verifier(I)
160+func J () = sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey)
158161

github/deemru/w8io/026f985 
90.05 ms