tx · 2VvWq9Fr9nbGmRq7yLDfw6RW5DnCGJzFj68XiLqsJvbX 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id: -0.01000000 Waves 2022.01.28 20:27 [1899090] smart account 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id > SELF 0.00000000 Waves
{ "type": 13, "id": "2VvWq9Fr9nbGmRq7yLDfw6RW5DnCGJzFj68XiLqsJvbX", "fee": 1000000, "feeAssetId": null, "timestamp": 1643390848777, "version": 2, "chainId": 84, "sender": "3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id", "senderPublicKey": "8agr5kfwDL7NLuMetvciXCcd9TcDKZhRwYZPPTAShaCC", "proofs": [ "Pg7NXd6JBxhrvHRBb4xyEzswaZSivPQwVziENCPeEkd4xJZDCjhX9jAm7c6hGKVT8iL2bdZpzQAEg4aske39YLa" ], "script": "base64:AAIFAAAAAAAAACcIAhIFCgMICAgSBQoDCAgIEgUKAwgICBIAEgASABIAEgYKBAgICAgAAAAOAAAAAANTRVACAAAAAl9fAAAAAAljdXJyZW50VHMIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAA5rZXlCdXlVTFVTUmF0ZQIAAAANYnV5X1VMVVNfcmF0ZQAAAAAca2V5QnV5VUxVU1JhdGVTY2FsZURlbGltaXRlcgIAAAAdYnV5X1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAAD2tleVNlbGxVTFVTUmF0ZQIAAAAOc2VsbF9VTFVTX3JhdGUAAAAAHWtleVNlbGxVTFVTUmF0ZVNjYWxlRGVsaW1pdGVyAgAAAB5zZWxsX1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAADWtleU1ha2VORlRGZWUCAAAAEGtleV9tYWtlX05GVF9mZWUAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1pc3Npb24AAAAAG2tleUNvbW1pc3Npb25TY2FsZURlbGltaXRlcgIAAAAaY29tbWlzc2lvbl9zY2FsZ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UAAAAKTkZUYXNzZXRJZAUAAAADbmlsCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEHJlY2lwaWVudEFkZHJlc3MFAAAAF2Ftb3VudFdpdGhvdXRDb21taXNzaW9uBQAAAApwbXRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEWNvbW1pc3Npb25BZGRyZXNzBQAAABBhbW91bnRDb21taXNzaW9uBQAAAApwbXRBc3NldElkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAOYW1vdW50Q2FzaGJhY2sFAAAABFVMVVMFAAAAA25pbAAAAADTShEd", "height": 1899090, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE Next: none Diff:
Old | New | Differences | |
---|---|---|---|
54 | 54 | func getNFT (productId,backendSignature,backendTimestamp) = { | |
55 | 55 | let backendProof = (makeString([toString(this), "getNFT", productId, backendTimestamp], ";") + ";") | |
56 | 56 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
57 | - | then throw("Invalid signature from backend.") | |
57 | + | then throw(("Invalid signature from backend." + backendProof)) | |
58 | 58 | else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15))) | |
59 | 59 | then throw("The signature is expired. Repeat the operation again.") | |
60 | 60 | else if (!(isDefined(getString(this, productId)))) | |
73 | 73 | @Callable(i) | |
74 | 74 | func putNFT (productId,backendSignature,backendTimestamp) = { | |
75 | 75 | let backendProof = (makeString([toString(this), "putNFT", productId, backendTimestamp], ";") + ";") | |
76 | - | let $ | |
77 | - | let pmtAmount = $ | |
78 | - | let pmtAssetId = $ | |
76 | + | let $t032803355 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
77 | + | let pmtAmount = $t032803355._1 | |
78 | + | let pmtAssetId = $t032803355._2 | |
79 | 79 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
80 | 80 | then throw("Invalid signature from backend.") | |
81 | 81 | else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15))) | |
116 | 116 | ||
117 | 117 | @Callable(i) | |
118 | 118 | func buyULUS () = { | |
119 | - | let $ | |
120 | - | let pmtAmount = $ | |
121 | - | let pmtAssetId = $ | |
119 | + | let $t055745649 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
120 | + | let pmtAmount = $t055745649._1 | |
121 | + | let pmtAssetId = $t055745649._2 | |
122 | 122 | if ((pmtAssetId != assetId)) | |
123 | 123 | then throw("Asset must be USDN only") | |
124 | 124 | else { | |
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | func sellULUS () = { | |
137 | - | let $ | |
138 | - | let pmtAmount = $ | |
139 | - | let pmtAssetId = $ | |
137 | + | let $t063036378 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
138 | + | let pmtAmount = $t063036378._1 | |
139 | + | let pmtAssetId = $t063036378._2 | |
140 | 140 | if ((pmtAssetId != ULUS)) | |
141 | 141 | then throw("Asset must be ULUS only") | |
142 | 142 | else { | |
153 | 153 | @Callable(i) | |
154 | 154 | func makePayment (recipient,productId,backendSignature,backendTimestamp) = { | |
155 | 155 | let recipientAddress = addressFromStringValue(recipient) | |
156 | - | let $ | |
157 | - | let pmtAmount = $ | |
158 | - | let pmtAssetId = $ | |
156 | + | let $t071847259 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
157 | + | let pmtAmount = $t071847259._1 | |
158 | + | let pmtAssetId = $t071847259._2 | |
159 | 159 | let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";") | |
160 | 160 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
161 | 161 | then throw("Invalid signature from backend.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let currentTs = lastBlock.timestamp | |
7 | 7 | ||
8 | 8 | let keyBuyULUSRate = "buy_ULUS_rate" | |
9 | 9 | ||
10 | 10 | let keyBuyULUSRateScaleDelimiter = "buy_ULUS_rate_scale_delimiter" | |
11 | 11 | ||
12 | 12 | let keySellULUSRate = "sell_ULUS_rate" | |
13 | 13 | ||
14 | 14 | let keySellULUSRateScaleDelimiter = "sell_ULUS_rate_scale_delimiter" | |
15 | 15 | ||
16 | 16 | let keyMakeNFTFee = "key_make_NFT_fee" | |
17 | 17 | ||
18 | 18 | let keyCommission = "commission" | |
19 | 19 | ||
20 | 20 | let keyCommissionScaleDelimiter = "commission_scale_delimiter" | |
21 | 21 | ||
22 | 22 | let USDN = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg' | |
23 | 23 | ||
24 | 24 | let ULUS = base58'J74E8AHdZobVSkA3YboiRrxFUs4odMVxK8tGMg6QXA1n' | |
25 | 25 | ||
26 | 26 | let assetId = USDN | |
27 | 27 | ||
28 | 28 | let commissionAddress = Address(base58'3N1yGG2mA3gTLxReAh84njeRvCBzvUbCccg') | |
29 | 29 | ||
30 | 30 | let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg' | |
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func makeNFT (name,description,productId) = { | |
34 | 34 | let $t013001375 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
35 | 35 | let pmtAmount = $t013001375._1 | |
36 | 36 | let pmtAssetId = $t013001375._2 | |
37 | 37 | let makeNFTfee = getIntegerValue(this, keyMakeNFTFee) | |
38 | 38 | if ((pmtAssetId != assetId)) | |
39 | 39 | then throw("Asset must be USDN only") | |
40 | 40 | else if ((makeNFTfee > pmtAmount)) | |
41 | 41 | then throw(("Fee for make NFT token is " + toString(makeNFTfee))) | |
42 | 42 | else if (isDefined(getString(this, productId))) | |
43 | 43 | then throw("NFT for this productId is already issued.") | |
44 | 44 | else { | |
45 | 45 | let newAsset = Issue(name, makeString([description, productId, toString(i.caller)], SEP), 1, 0, false, unit, 0) | |
46 | 46 | let newAssetId = calculateAssetId(newAsset) | |
47 | 47 | [newAsset, StringEntry(productId, toBase58String(newAssetId)), ScriptTransfer(commissionAddress, pmtAmount, pmtAssetId)] | |
48 | 48 | } | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(i) | |
54 | 54 | func getNFT (productId,backendSignature,backendTimestamp) = { | |
55 | 55 | let backendProof = (makeString([toString(this), "getNFT", productId, backendTimestamp], ";") + ";") | |
56 | 56 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
57 | - | then throw("Invalid signature from backend.") | |
57 | + | then throw(("Invalid signature from backend." + backendProof)) | |
58 | 58 | else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15))) | |
59 | 59 | then throw("The signature is expired. Repeat the operation again.") | |
60 | 60 | else if (!(isDefined(getString(this, productId)))) | |
61 | 61 | then throw("Invalid productId.") | |
62 | 62 | else { | |
63 | 63 | let NFTassetId = fromBase58String(getStringValue(this, productId)) | |
64 | 64 | let NFTbalance = assetBalance(this, NFTassetId) | |
65 | 65 | if ((NFTbalance == 0)) | |
66 | 66 | then throw("NFTasset doesn't exist.") | |
67 | 67 | else [ScriptTransfer(i.caller, 1, NFTassetId)] | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | ||
73 | 73 | @Callable(i) | |
74 | 74 | func putNFT (productId,backendSignature,backendTimestamp) = { | |
75 | 75 | let backendProof = (makeString([toString(this), "putNFT", productId, backendTimestamp], ";") + ";") | |
76 | - | let $ | |
77 | - | let pmtAmount = $ | |
78 | - | let pmtAssetId = $ | |
76 | + | let $t032803355 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
77 | + | let pmtAmount = $t032803355._1 | |
78 | + | let pmtAssetId = $t032803355._2 | |
79 | 79 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
80 | 80 | then throw("Invalid signature from backend.") | |
81 | 81 | else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15))) | |
82 | 82 | then throw("The signature is expired. Repeat the operation again.") | |
83 | 83 | else if (!(isDefined(getString(this, productId)))) | |
84 | 84 | then throw("Invalid productId.") | |
85 | 85 | else { | |
86 | 86 | let NFTassetId = fromBase58String(getStringValue(this, productId)) | |
87 | 87 | if (if ((NFTassetId != pmtAssetId)) | |
88 | 88 | then true | |
89 | 89 | else (pmtAmount != 1)) | |
90 | 90 | then throw("Wrong NFTasset.") | |
91 | 91 | else nil | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(i) | |
98 | 98 | func setParams () = if ((i.caller != this)) | |
99 | 99 | then throw("Only the DApp itself can call this function") | |
100 | 100 | else [IntegerEntry(keyBuyULUSRate, 150000), IntegerEntry(keyBuyULUSRateScaleDelimiter, 1000), IntegerEntry(keySellULUSRate, 100000), IntegerEntry(keySellULUSRateScaleDelimiter, 1000), IntegerEntry(keyCommission, 30000), IntegerEntry(keyCommissionScaleDelimiter, 1000000), IntegerEntry(keyMakeNFTFee, 1000000)] | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(i) | |
105 | 105 | func clearOldParams () = if ((i.caller != this)) | |
106 | 106 | then throw("Only the DApp itself can call this function") | |
107 | 107 | else { | |
108 | 108 | let keyBuyUWORLDRate = "buy_UWORLD_rate" | |
109 | 109 | let keyBuyUWORLDRateScaleDelimiter = "buy_UWORLD_rate_scale_delimiter" | |
110 | 110 | let keySellUWORLDRate = "sell_UWORLD_rate" | |
111 | 111 | let keySellUWORLDRateScaleDelimiter = "sell_UWORLD_rate_scale_delimiter" | |
112 | 112 | [DeleteEntry(keyBuyUWORLDRate), DeleteEntry(keyBuyUWORLDRateScaleDelimiter), DeleteEntry(keySellUWORLDRate), DeleteEntry(keySellUWORLDRateScaleDelimiter)] | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(i) | |
118 | 118 | func buyULUS () = { | |
119 | - | let $ | |
120 | - | let pmtAmount = $ | |
121 | - | let pmtAssetId = $ | |
119 | + | let $t055745649 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
120 | + | let pmtAmount = $t055745649._1 | |
121 | + | let pmtAssetId = $t055745649._2 | |
122 | 122 | if ((pmtAssetId != assetId)) | |
123 | 123 | then throw("Asset must be USDN only") | |
124 | 124 | else { | |
125 | 125 | let exchangeRate = getIntegerValue(this, keyBuyULUSRate) | |
126 | 126 | let exchangeRateScaleDelimiter = getIntegerValue(this, keyBuyULUSRateScaleDelimiter) | |
127 | 127 | let amountToPay = fraction(pmtAmount, exchangeRateScaleDelimiter, exchangeRate) | |
128 | 128 | let amountWithoutCommission = amountToPay | |
129 | 129 | [ScriptTransfer(i.caller, amountWithoutCommission, ULUS)] | |
130 | 130 | } | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | func sellULUS () = { | |
137 | - | let $ | |
138 | - | let pmtAmount = $ | |
139 | - | let pmtAssetId = $ | |
137 | + | let $t063036378 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
138 | + | let pmtAmount = $t063036378._1 | |
139 | + | let pmtAssetId = $t063036378._2 | |
140 | 140 | if ((pmtAssetId != ULUS)) | |
141 | 141 | then throw("Asset must be ULUS only") | |
142 | 142 | else { | |
143 | 143 | let exchangeRate = getIntegerValue(this, keySellULUSRate) | |
144 | 144 | let exchangeRateScaleDelimiter = getIntegerValue(this, keySellULUSRateScaleDelimiter) | |
145 | 145 | let amountToPay = fraction(pmtAmount, exchangeRate, exchangeRateScaleDelimiter) | |
146 | 146 | let amountWithoutCommission = amountToPay | |
147 | 147 | [ScriptTransfer(i.caller, amountWithoutCommission, USDN)] | |
148 | 148 | } | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | ||
153 | 153 | @Callable(i) | |
154 | 154 | func makePayment (recipient,productId,backendSignature,backendTimestamp) = { | |
155 | 155 | let recipientAddress = addressFromStringValue(recipient) | |
156 | - | let $ | |
157 | - | let pmtAmount = $ | |
158 | - | let pmtAssetId = $ | |
156 | + | let $t071847259 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
157 | + | let pmtAmount = $t071847259._1 | |
158 | + | let pmtAssetId = $t071847259._2 | |
159 | 159 | let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";") | |
160 | 160 | if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey))) | |
161 | 161 | then throw("Invalid signature from backend.") | |
162 | 162 | else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15))) | |
163 | 163 | then throw("The signature is expired. Repeat the operation again.") | |
164 | 164 | else if (if ((pmtAssetId != USDN)) | |
165 | 165 | then (pmtAssetId != ULUS) | |
166 | 166 | else false) | |
167 | 167 | then throw("Asset must be only USDN or ULUS") | |
168 | 168 | else { | |
169 | 169 | let commission = getIntegerValue(this, keyCommission) | |
170 | 170 | let commissionScaleDelimiter = getIntegerValue(this, keyCommissionScaleDelimiter) | |
171 | 171 | let amountCommission = fraction(pmtAmount, commission, commissionScaleDelimiter) | |
172 | 172 | let amountWithoutCommission = (pmtAmount - amountCommission) | |
173 | 173 | let assetDivider = if ((pmtAssetId == USDN)) | |
174 | 174 | then 1000000 | |
175 | 175 | else 1000 | |
176 | 176 | let amountCashback = fraction(pmtAmount, 100, assetDivider) | |
177 | 177 | if (isDefined(getString(this, productId))) | |
178 | 178 | then { | |
179 | 179 | let NFTassetId = fromBase58String(getStringValue(this, productId)) | |
180 | 180 | let NFTbalance = assetBalance(this, NFTassetId) | |
181 | 181 | if ((NFTbalance == 0)) | |
182 | 182 | then throw("NFTasset doesn't exist.") | |
183 | 183 | else { | |
184 | 184 | let NFTIssuer = split(value(assetInfo(NFTassetId)).description, SEP)[2] | |
185 | 185 | let NFTIssuerAddress = addressFromStringValue(NFTIssuer) | |
186 | 186 | let amountIssuerCommission = fraction(pmtAmount, 100000, 1000000) | |
187 | 187 | let amountWithoutCommissions = ((pmtAmount - amountCommission) - amountIssuerCommission) | |
188 | 188 | [ScriptTransfer(recipientAddress, amountWithoutCommissions, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(NFTIssuerAddress, amountIssuerCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS), ScriptTransfer(i.caller, 1, NFTassetId)] | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | else [ScriptTransfer(recipientAddress, amountWithoutCommission, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS)] | |
192 | 192 | } | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 |
github/deemru/w8io/026f985 35.00 ms ◑