tx · GU81paK1cdD7p1YW2CXbEWYjbM8jo3Bnkbovh3MYtJst

3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F:  -0.01100000 Waves

2023.02.15 14:59 [2450700] smart account 3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F > SELF 0.00000000 Waves

{ "type": 13, "id": "GU81paK1cdD7p1YW2CXbEWYjbM8jo3Bnkbovh3MYtJst", "fee": 1100000, "feeAssetId": null, "timestamp": 1676462463427, "version": 2, "chainId": 84, "sender": "3N9cKCHp6ZLMgz7rRgF8Q8DEt8zbtd1Ht7F", "senderPublicKey": "3V22YUj3GF4AeBxdWx8rgGdG4groE4W6P2s4sAkshe7R", "proofs": [ "5hJmVeSM5j53goZ2GjFgMJ3Makfd1YEHMFvM61kwJ7pmj4vCu6fNReNbosPkZ51hjEZeFYrE1DXUMbV1WXWPiJb1" ], "script": "base64:BgJHCAISCwoJCAgICAgBCAgIEgQKAggIEgQKAggIEgMKAQgSBgoECAgIARIGCgQICAgIEgQKAggIEgQKAggCEgQKAggIEgMKAQgLAAlzZXBhcmF0b3ICAV8ABGtCdXkCA2J1eQAGa1ByaWNlAgVwcmljZQAFa1NlbGwCBHNlbGwAEm1heEF1Y3Rpb25EdXJhdGlvbgAeAAV0ZWFtcwEghWOVo/OIjrDeDBeOCE6/mj+SuybbOuh2jhbcFCIqSH4ABVdBVkVTAQAABGtCaWQCA2JpZAAMc3RhdHVzRm9yTkZUCQCWCgQCBE9QRU4CBkNMT1NFRAIIUkVXQVJERUQCCENBTkNFTEVEAAtkQXBwQWRkcmVzcwEaAVRKuE9s3sLak+30julKNvjVT3+V1VVbXaABBWlzTmZ0AQdhc3NldElkBAckbWF0Y2gwCQDsBwEFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIFQXNzZXQEBXRva2VuBQckbWF0Y2gwAwMJAAACCAUFdG9rZW4IZGVjaW1hbHMAAAkAAAIIBQV0b2tlbghxdWFudGl0eQABBwkAAAIIBQV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2hpZ2hlc3RfYmlkAgEwBQNuaWwAbmN4zQ==", "height": 2450700, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4PYxBVFwY6EBA8e9MjKZ7TmTdout3P7iyL4wFKeJ58Wh Next: D8FXfyig7hiEvSuauDy2dZv7nfPi8QDNezQNcWbzyfBV Diff:
OldNewDifferences
9797
9898
9999 @Callable(o)
100-func addAuction (P,Q,R,S,C) = {
100+func addAuction (P,Q,R,S) = {
101101 let A = toBase58String(o.transactionId)
102102 let O = value(o.payments[0].assetId)
103103 let B = value(R)
126126
127127
128128 @Callable(o)
129-func placeBid (W,O,q,X,Y) = {
129+func placeBid (W,O,q,X) = {
130130 let A = toBase58String(o.transactionId)
131131 let U = o.caller.bytes
132132 let l = fromBase58String(O)
133- let Z = o.payments[0].assetId
134- let aa = o.payments[0].amount
135- let ab = getStringValue(this, (W + "_highest_bid"))
136- let ac = getString(this, (W + "_previous_bidder"))
137- let ad = getStringValue(this, (W + "_bidder_count"))
138- let ae = getStringValue(this, (W + "_winner_of_nft"))
133+ let Y = o.payments[0].assetId
134+ let Z = o.payments[0].amount
135+ let aa = getStringValue(this, (W + "_highest_bid"))
136+ let ab = getString(this, (W + "_previous_bidder"))
137+ let ac = getStringValue(this, (W + "_bidder_count"))
138+ let ad = getStringValue(this, (W + "_winner_of_nft"))
139139 let V = getStringValue(this, (W + "_nft_status"))
140140 if ((V != "OPEN"))
141141 then throw("Not open for auction")
142- else if ((parseIntValue(ab) >= aa))
142+ else if ((parseIntValue(aa) >= Z))
143143 then throw("Bid is less then starting/highest Bid")
144- else if ((ab == "0"))
145- then [StringEntry((W + "_highest_bid"), toString(aa)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(aa)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ab)]
146- else if ((ab != "0"))
147- then [ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ab), Z), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ab), StringEntry((W + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((W + "_highest_bid"), toString(aa)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(aa)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X)]
144+ else if ((aa == "0"))
145+ then [StringEntry((W + "_highest_bid"), toString(Z)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(Z)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X), StringEntry((A + "_previous_bid_amount_refund_to_address"), ad), StringEntry((A + "_prevoius_bid_amount_refund"), aa)]
146+ else if ((aa != "0"))
147+ then [ScriptTransfer(Address(fromBase58String(ad)), parseIntValue(aa), Y), StringEntry((A + "_previous_bid_amount_refund_to_address"), ad), StringEntry((A + "_prevoius_bid_amount_refund"), aa), StringEntry((W + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((W + "_highest_bid"), toString(Z)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(Z)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X)]
148148 else nil
149149 }
150150
154154 func acceptBidOffer (W,O) = {
155155 let A = toBase58String(o.transactionId)
156156 let U = o.caller.bytes
157- let Z = o.payments[0].assetId
158- let af = fromBase58String(O)
159- let ag = getStringValue(this, (W + "_highest_bid"))
160- let ah = ((parseIntValue(ag) / 1000) * 975)
161- let N = ((parseIntValue(ag) / 1000) * 25)
162- let ai = getStringValue(this, (W + "_winner_of_nft"))
163-[ScriptTransfer(Address(U), ah, Z), ScriptTransfer(Address(fromBase58String(ai)), 1, af), StringEntry("platform_fee", toString(N)), StringEntry((A + "_amount_paid_to_owner"), ag), StringEntry((A + "_nft_transfer_to"), ai), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((W + "_amount_paid_to_owner"), ag), StringEntry((W + "_nft_transfer_to"), ai), StringEntry((W + "_nft_status"), "REWARDED")]
157+ let Y = o.payments[0].assetId
158+ let ae = fromBase58String(O)
159+ let af = getStringValue(this, (W + "_highest_bid"))
160+ let ag = ((parseIntValue(af) / 1000) * 975)
161+ let N = ((parseIntValue(af) / 1000) * 25)
162+ let ah = getStringValue(this, (W + "_winner_of_nft"))
163+[ScriptTransfer(Address(U), ag, Y), ScriptTransfer(Address(fromBase58String(ah)), 1, ae), StringEntry("platform_fee", toString(N)), StringEntry((A + "_amount_paid_to_owner"), af), StringEntry((A + "_nft_transfer_to"), ah), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((W + "_amount_paid_to_owner"), af), StringEntry((W + "_nft_transfer_to"), ah), StringEntry((W + "_nft_status"), "REWARDED")]
164164 }
165165
166166
167167
168168 @Callable(o)
169-func cancelAuction (W,Y) = {
169+func cancelAuction (W,ai) = {
170170 let A = toBase58String(o.transactionId)
171171 let U = o.caller.bytes
172172 let aj = getStringValue(this, (W + "_nft_status"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "_"
55
66 let b = "buy"
77
88 let c = "price"
99
1010 let d = "sell"
1111
1212 let e = 30
1313
1414 let f = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
1515
1616 let g = base58''
1717
1818 let h = "bid"
1919
2020 let i = $Tuple4("OPEN", "CLOSED", "REWARDED", "CANCELED")
2121
2222 let j = base58'3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq'
2323
2424 func k (l) = {
2525 let m = assetInfo(l)
2626 if ($isInstanceOf(m, "Asset"))
2727 then {
2828 let n = m
2929 if (if ((n.decimals == 0))
3030 then (n.quantity == 1)
3131 else false)
3232 then (n.reissuable == false)
3333 else false
3434 }
3535 else false
3636 }
3737
3838
3939 @Callable(o)
4040 func createNft (p,q,r,s,t,u,v,w,x) = {
4141 let y = Issue(p, v, 1, 0, false)
4242 let z = calculateAssetId(y)
4343 let A = o.transactionId
4444 [y, ScriptTransfer(o.caller, 1, z), StringEntry(((toBase58String(z) + a) + "Owner"), toString(o.caller)), StringEntry(((toBase58String(z) + a) + "nft_type"), s), StringEntry(((toBase58String(z) + a) + "nft_tags"), t), StringEntry(((toBase58String(z) + a) + "nft_dAppAddress"), r), IntegerEntry(((toBase58String(z) + a) + "nft_selling_price"), u), StringEntry(((toBase58String(z) + a) + "nft_onSell"), w), StringEntry(((toBase58String(z) + a) + "nft_data"), x), StringEntry(((toBase58String(A) + a) + "issue_nft"), toBase58String(z))]
4545 }
4646
4747
4848
4949 @Callable(o)
5050 func sellNFT (B,C) = {
5151 let A = o.transactionId
5252 let D = o.caller.bytes
5353 let E = $Tuple2(value(o.payments[0].assetId), value(o.payments[0].amount))
5454 let F = E._1
5555 let G = E._2
5656 if (!(k(F)))
5757 then throw("Token is not NFT")
5858 else [StringEntry(((c + a) + toBase58String(value(o.payments[0].assetId))), B), StringEntry(((toString(o.caller) + a) + d), (((toBase58String(F) + a) + toString(G)) + C))]
5959 }
6060
6161
6262
6363 @Callable(o)
6464 func buyNFT (H,I) = {
6565 let l = fromBase58String(H)
6666 let J = value(o.payments[0].amount)
6767 let K = {
6868 let m = getString(this, (("nft_" + I) + "_owner"))
6969 if ($isInstanceOf(m, "String"))
7070 then {
7171 let L = m
7272 L
7373 }
7474 else false
7575 }
7676 let B = getStringValue(((((c + a) + H) + "_") + I))
7777 let M = ((J / 1000) * 975)
7878 let N = ((J / 1000) * 25)
7979 if ((I == toString(o.caller)))
8080 then throw("current Owner of NFT not able to purchase")
8181 else if ((o.payments[0].assetId == f))
8282 then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), M, f), StringEntry((("nft_" + H) + "platform_fee"), toString(N)), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8383 else if ((o.payments[0].assetId == unit))
8484 then [ScriptTransfer(o.caller, 1, l), ScriptTransfer(Address(fromBase58String(I)), M, unit), StringEntry((("nft_" + H) + "platform_fee"), toString(N)), StringEntry(((toString(o.caller) + a) + b), ((H + a) + toString(J))), DeleteEntry((("nft_" + I) + "_owner")), StringEntry((("nft_" + I) + "_owner"), toString(o.caller)), StringEntry(((H + a) + "_owner"), toString(o.caller))]
8585 else nil
8686 }
8787
8888
8989
9090 @Callable(o)
9191 func cancelSell (O) = {
9292 let A = toBase58String(o.transactionId)
9393 let D = o.caller.bytes
9494 [StringEntry(((A + O) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(D), 1, fromBase58String(O))]
9595 }
9696
9797
9898
9999 @Callable(o)
100-func addAuction (P,Q,R,S,C) = {
100+func addAuction (P,Q,R,S) = {
101101 let A = toBase58String(o.transactionId)
102102 let O = value(o.payments[0].assetId)
103103 let B = value(R)
104104 let T = (lastBlock.height + S)
105105 let U = o.caller.bytes
106106 let V = {
107107 let m = getString(this, (((toBase58String(O) + a) + "nft_status_") + toBase58String(U)))
108108 if ($isInstanceOf(m, "String"))
109109 then {
110110 let L = m
111111 true
112112 }
113113 else false
114114 }
115115 if ((V == true))
116116 then throw("Already in auction list")
117117 else if ((S > e))
118118 then throw(("Duration is too long. Must be less than or equal to 7 " + toString(e)))
119119 else if ((o.payments[0].assetId == unit))
120120 then throw("NFT not attached")
121121 else if ((o.payments[0].assetId == f))
122122 then throw("NFT not attached")
123123 else [StringEntry(((A + "nft_start_auction_date") + toBase58String(U)), P), StringEntry(((A + "nft_end_auction_date") + toBase58String(U)), Q), StringEntry((A + "_nft_start_price"), R), StringEntry((A + "_nft_owner"), toString(o.caller)), StringEntry((A + "_nft_on_auction"), toBase58String(O)), StringEntry((A + "_previous_bidder"), "none"), StringEntry((A + "_highest_bid"), "0"), StringEntry((A + "_winner_of_nft"), "0"), StringEntry((A + "_bidder_count"), "0"), StringEntry((A + "_nft_status"), "OPEN")]
124124 }
125125
126126
127127
128128 @Callable(o)
129-func placeBid (W,O,q,X,Y) = {
129+func placeBid (W,O,q,X) = {
130130 let A = toBase58String(o.transactionId)
131131 let U = o.caller.bytes
132132 let l = fromBase58String(O)
133- let Z = o.payments[0].assetId
134- let aa = o.payments[0].amount
135- let ab = getStringValue(this, (W + "_highest_bid"))
136- let ac = getString(this, (W + "_previous_bidder"))
137- let ad = getStringValue(this, (W + "_bidder_count"))
138- let ae = getStringValue(this, (W + "_winner_of_nft"))
133+ let Y = o.payments[0].assetId
134+ let Z = o.payments[0].amount
135+ let aa = getStringValue(this, (W + "_highest_bid"))
136+ let ab = getString(this, (W + "_previous_bidder"))
137+ let ac = getStringValue(this, (W + "_bidder_count"))
138+ let ad = getStringValue(this, (W + "_winner_of_nft"))
139139 let V = getStringValue(this, (W + "_nft_status"))
140140 if ((V != "OPEN"))
141141 then throw("Not open for auction")
142- else if ((parseIntValue(ab) >= aa))
142+ else if ((parseIntValue(aa) >= Z))
143143 then throw("Bid is less then starting/highest Bid")
144- else if ((ab == "0"))
145- then [StringEntry((W + "_highest_bid"), toString(aa)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(aa)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ab)]
146- else if ((ab != "0"))
147- then [ScriptTransfer(Address(fromBase58String(ae)), parseIntValue(ab), Z), StringEntry((A + "_previous_bid_amount_refund_to_address"), ae), StringEntry((A + "_prevoius_bid_amount_refund"), ab), StringEntry((W + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((W + "_highest_bid"), toString(aa)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(aa)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ad) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X)]
144+ else if ((aa == "0"))
145+ then [StringEntry((W + "_highest_bid"), toString(Z)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(Z)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X), StringEntry((A + "_previous_bid_amount_refund_to_address"), ad), StringEntry((A + "_prevoius_bid_amount_refund"), aa)]
146+ else if ((aa != "0"))
147+ then [ScriptTransfer(Address(fromBase58String(ad)), parseIntValue(aa), Y), StringEntry((A + "_previous_bid_amount_refund_to_address"), ad), StringEntry((A + "_prevoius_bid_amount_refund"), aa), StringEntry((W + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((W + "_highest_bid"), toString(Z)), StringEntry((W + "_winner_of_nft"), toBase58String(o.caller.bytes)), StringEntry((W + "_nft_id"), toBase58String(l)), StringEntry((W + "_nft_owner"), q), StringEntry((((A + "_") + W) + "_highest_bid"), toString(Z)), StringEntry((((A + "_") + W) + "_winner"), toBase58String(o.caller.bytes)), StringEntry((((A + "_") + W) + "_bidder_count"), toString((parseIntValue(ac) + 1))), StringEntry((((A + "_") + W) + "_nft_id"), toBase58String(l)), StringEntry((((A + "_") + W) + "_nft_owner"), q), StringEntry((A + "_bid_for_nft_by"), toBase58String(U)), StringEntry((A + "_bid_price_place"), X)]
148148 else nil
149149 }
150150
151151
152152
153153 @Callable(o)
154154 func acceptBidOffer (W,O) = {
155155 let A = toBase58String(o.transactionId)
156156 let U = o.caller.bytes
157- let Z = o.payments[0].assetId
158- let af = fromBase58String(O)
159- let ag = getStringValue(this, (W + "_highest_bid"))
160- let ah = ((parseIntValue(ag) / 1000) * 975)
161- let N = ((parseIntValue(ag) / 1000) * 25)
162- let ai = getStringValue(this, (W + "_winner_of_nft"))
163-[ScriptTransfer(Address(U), ah, Z), ScriptTransfer(Address(fromBase58String(ai)), 1, af), StringEntry("platform_fee", toString(N)), StringEntry((A + "_amount_paid_to_owner"), ag), StringEntry((A + "_nft_transfer_to"), ai), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((W + "_amount_paid_to_owner"), ag), StringEntry((W + "_nft_transfer_to"), ai), StringEntry((W + "_nft_status"), "REWARDED")]
157+ let Y = o.payments[0].assetId
158+ let ae = fromBase58String(O)
159+ let af = getStringValue(this, (W + "_highest_bid"))
160+ let ag = ((parseIntValue(af) / 1000) * 975)
161+ let N = ((parseIntValue(af) / 1000) * 25)
162+ let ah = getStringValue(this, (W + "_winner_of_nft"))
163+[ScriptTransfer(Address(U), ag, Y), ScriptTransfer(Address(fromBase58String(ah)), 1, ae), StringEntry("platform_fee", toString(N)), StringEntry((A + "_amount_paid_to_owner"), af), StringEntry((A + "_nft_transfer_to"), ah), StringEntry((A + "_nft_status"), "REWARDED"), StringEntry((W + "_amount_paid_to_owner"), af), StringEntry((W + "_nft_transfer_to"), ah), StringEntry((W + "_nft_status"), "REWARDED")]
164164 }
165165
166166
167167
168168 @Callable(o)
169-func cancelAuction (W,Y) = {
169+func cancelAuction (W,ai) = {
170170 let A = toBase58String(o.transactionId)
171171 let U = o.caller.bytes
172172 let aj = getStringValue(this, (W + "_nft_status"))
173173 let ak = getStringValue(this, (W + "_winner_of_nft"))
174174 let al = getStringValue(this, (W + "_nft_owner"))
175175 let O = getStringValue(this, (W + "_nft_on_auction"))
176176 let am = getStringValue(this, (W + "_highest_bid"))
177177 if ((ak == "0"))
178178 then [StringEntry(((A + W) + "_nft_status"), "CANCELED"), ScriptTransfer(Address(fromBase58String(al)), 1, fromBase58String(O))]
179179 else if ((ak != "0"))
180180 then throw("soory you can't cancel it because already auction placed by someone")
181181 else nil
182182 }
183183
184184
185185
186186 @Callable(o)
187187 func manualFundTransfer (an,ao) = {
188188 let U = o.caller.bytes
189189 let ap = fromBase58String(an)
190190 let J = o.payments[0].amount
191191 let aq = ((J / 1000) * 975)
192192 let N = ((J / 1000) * 25)
193193 if ((o.payments[0].assetId == unit))
194194 then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), an), ScriptTransfer(Address(ap), aq, unit)]
195195 else if ((o.payments[0].assetId == f))
196196 then [IntegerEntry((toBase58String(U) + "_transfer"), J), StringEntry("platform_fee", toString(N)), StringEntry((toBase58String(U) + "_transfer_to"), an), ScriptTransfer(Address(ap), aq, f)]
197197 else nil
198198 }
199199
200200
201201
202202 @Callable(o)
203203 func testBid (ar) = [StringEntry("E8kkFBYCy44JJaq6pAZ6KizsuResi5UKNhbD1WNZwhhY_highest_bid", "0")]
204204
205205

github/deemru/w8io/026f985 
69.41 ms