tx · G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE

3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id:  -0.01000000 Waves

2022.01.28 19:06 [1899010] smart account 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id > SELF 0.00000000 Waves

{ "type": 13, "id": "G8qwy2y7vzbAaWo5iMunFZpqFCntGArhV8Hrx9JgRrEE", "fee": 1000000, "feeAssetId": null, "timestamp": 1643386011875, "version": 2, "chainId": 84, "sender": "3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id", "senderPublicKey": "8agr5kfwDL7NLuMetvciXCcd9TcDKZhRwYZPPTAShaCC", "proofs": [ "5midXXCwJsKZv9xED4KwgqATpemgH75SKULdcZbZQt5129HtENNZhcPWaVtt78B78b8SWVRAxoymfrdpBRqEqy9F" ], "script": "base64:AAIFAAAAAAAAACcIAhIFCgMICAgSBQoDCAgIEgUKAwgICBIAEgASABIAEgYKBAgICAgAAAAOAAAAAANTRVACAAAAAl9fAAAAAAljdXJyZW50VHMIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAA5rZXlCdXlVTFVTUmF0ZQIAAAANYnV5X1VMVVNfcmF0ZQAAAAAca2V5QnV5VUxVU1JhdGVTY2FsZURlbGltaXRlcgIAAAAdYnV5X1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAAD2tleVNlbGxVTFVTUmF0ZQIAAAAOc2VsbF9VTFVTX3JhdGUAAAAAHWtleVNlbGxVTFVTUmF0ZVNjYWxlRGVsaW1pdGVyAgAAAB5zZWxsX1VMVVNfcmF0ZV9zY2FsZV9kZWxpbWl0ZXIAAAAADWtleU1ha2VORlRGZWUCAAAAEGtleV9tYWtlX05GVF9mZWUAAAAADWtleUNvbW1pc3Npb24CAAAACmNvbW1pc3Npb24AAAAAG2tleUNvbW1pc3Npb25TY2FsZURlbGltaXRlcgIAAAAaY29tbWlzc2lvbl9zY2FsZV9kZWxpbWl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MAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAQcmVjaXBpZW50QWRkcmVzcwUAAAAXYW1vdW50V2l0aG91dENvbW1pc3Npb24FAAAACnBtdEFzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARY29tbWlzc2lvbkFkZHJlc3MFAAAAEGFtb3VudENvbW1pc3Npb24FAAAACnBtdEFzc2V0SWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA5hbW91bnRDYXNoYmFjawUAAAAEVUxVUwUAAAADbmlsAAAAAK9GOak=", "height": 1899010, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BYYZ3PpLe56naSv9wPApgZbgEzMG44UuQGXrQzogmEij Next: 2VvWq9Fr9nbGmRq7yLDfw6RW5DnCGJzFj68XiLqsJvbX Diff:
OldNewDifferences
5252
5353 @Callable(i)
5454 func getNFT (productId,backendSignature,backendTimestamp) = {
55- let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
55+ let backendProof = (makeString([toString(this), "getNFT", productId, backendTimestamp], ";") + ";")
5656 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
5757 then throw("Invalid signature from backend.")
5858 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
7272
7373 @Callable(i)
7474 func putNFT (productId,backendSignature,backendTimestamp) = {
75- let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
76- let $t032953370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77- let pmtAmount = $t032953370._1
78- let pmtAssetId = $t032953370._2
75+ let backendProof = (makeString([toString(this), "putNFT", productId, backendTimestamp], ";") + ";")
76+ let $t033373412 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77+ let pmtAmount = $t033373412._1
78+ let pmtAssetId = $t033373412._2
7979 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
8080 then throw("Invalid signature from backend.")
8181 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
116116
117117 @Callable(i)
118118 func buyULUS () = {
119- let $t055895664 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120- let pmtAmount = $t055895664._1
121- let pmtAssetId = $t055895664._2
119+ let $t056315706 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120+ let pmtAmount = $t056315706._1
121+ let pmtAssetId = $t056315706._2
122122 if ((pmtAssetId != assetId))
123123 then throw("Asset must be USDN only")
124124 else {
134134
135135 @Callable(i)
136136 func sellULUS () = {
137- let $t063186393 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138- let pmtAmount = $t063186393._1
139- let pmtAssetId = $t063186393._2
137+ let $t063606435 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138+ let pmtAmount = $t063606435._1
139+ let pmtAssetId = $t063606435._2
140140 if ((pmtAssetId != ULUS))
141141 then throw("Asset must be ULUS only")
142142 else {
153153 @Callable(i)
154154 func makePayment (recipient,productId,backendSignature,backendTimestamp) = {
155155 let recipientAddress = addressFromStringValue(recipient)
156- let $t071997274 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157- let pmtAmount = $t071997274._1
158- let pmtAssetId = $t071997274._2
156+ let $t072417316 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157+ let pmtAmount = $t072417316._1
158+ let pmtAssetId = $t072417316._2
159159 let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";")
160160 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
161161 then throw("Invalid signature from backend.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let currentTs = lastBlock.timestamp
77
88 let keyBuyULUSRate = "buy_ULUS_rate"
99
1010 let keyBuyULUSRateScaleDelimiter = "buy_ULUS_rate_scale_delimiter"
1111
1212 let keySellULUSRate = "sell_ULUS_rate"
1313
1414 let keySellULUSRateScaleDelimiter = "sell_ULUS_rate_scale_delimiter"
1515
1616 let keyMakeNFTFee = "key_make_NFT_fee"
1717
1818 let keyCommission = "commission"
1919
2020 let keyCommissionScaleDelimiter = "commission_scale_delimiter"
2121
2222 let USDN = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg'
2323
2424 let ULUS = base58'J74E8AHdZobVSkA3YboiRrxFUs4odMVxK8tGMg6QXA1n'
2525
2626 let assetId = USDN
2727
2828 let commissionAddress = Address(base58'3N1yGG2mA3gTLxReAh84njeRvCBzvUbCccg')
2929
3030 let backendPubKey = base58'5fJ73uaebbc12bwCegVoRZgNKfn4BqpH8NB8Rs2NpBmg'
3131
3232 @Callable(i)
3333 func makeNFT (name,description,productId) = {
3434 let $t013001375 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
3535 let pmtAmount = $t013001375._1
3636 let pmtAssetId = $t013001375._2
3737 let makeNFTfee = getIntegerValue(this, keyMakeNFTFee)
3838 if ((pmtAssetId != assetId))
3939 then throw("Asset must be USDN only")
4040 else if ((makeNFTfee > pmtAmount))
4141 then throw(("Fee for make NFT token is " + toString(makeNFTfee)))
4242 else if (isDefined(getString(this, productId)))
4343 then throw("NFT for this productId is already issued.")
4444 else {
4545 let newAsset = Issue(name, makeString([description, productId, toString(i.caller)], SEP), 1, 0, false, unit, 0)
4646 let newAssetId = calculateAssetId(newAsset)
4747 [newAsset, StringEntry(productId, toBase58String(newAssetId)), ScriptTransfer(commissionAddress, pmtAmount, pmtAssetId)]
4848 }
4949 }
5050
5151
5252
5353 @Callable(i)
5454 func getNFT (productId,backendSignature,backendTimestamp) = {
55- let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
55+ let backendProof = (makeString([toString(this), "getNFT", productId, backendTimestamp], ";") + ";")
5656 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
5757 then throw("Invalid signature from backend.")
5858 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
5959 then throw("The signature is expired. Repeat the operation again.")
6060 else if (!(isDefined(getString(this, productId))))
6161 then throw("Invalid productId.")
6262 else {
6363 let NFTassetId = fromBase58String(getStringValue(this, productId))
6464 let NFTbalance = assetBalance(this, NFTassetId)
6565 if ((NFTbalance == 0))
6666 then throw("NFTasset doesn't exist.")
6767 else [ScriptTransfer(i.caller, 1, NFTassetId)]
6868 }
6969 }
7070
7171
7272
7373 @Callable(i)
7474 func putNFT (productId,backendSignature,backendTimestamp) = {
75- let backendProof = (makeString([toString(this), backendTimestamp], ";") + ";")
76- let $t032953370 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77- let pmtAmount = $t032953370._1
78- let pmtAssetId = $t032953370._2
75+ let backendProof = (makeString([toString(this), "putNFT", productId, backendTimestamp], ";") + ";")
76+ let $t033373412 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
77+ let pmtAmount = $t033373412._1
78+ let pmtAssetId = $t033373412._2
7979 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
8080 then throw("Invalid signature from backend.")
8181 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
8282 then throw("The signature is expired. Repeat the operation again.")
8383 else if (!(isDefined(getString(this, productId))))
8484 then throw("Invalid productId.")
8585 else {
8686 let NFTassetId = fromBase58String(getStringValue(this, productId))
8787 if (if ((NFTassetId != pmtAssetId))
8888 then true
8989 else (pmtAmount != 1))
9090 then throw("Wrong NFTasset.")
9191 else nil
9292 }
9393 }
9494
9595
9696
9797 @Callable(i)
9898 func setParams () = if ((i.caller != this))
9999 then throw("Only the DApp itself can call this function")
100100 else [IntegerEntry(keyBuyULUSRate, 150000), IntegerEntry(keyBuyULUSRateScaleDelimiter, 1000), IntegerEntry(keySellULUSRate, 100000), IntegerEntry(keySellULUSRateScaleDelimiter, 1000), IntegerEntry(keyCommission, 30000), IntegerEntry(keyCommissionScaleDelimiter, 1000000), IntegerEntry(keyMakeNFTFee, 1000000)]
101101
102102
103103
104104 @Callable(i)
105105 func clearOldParams () = if ((i.caller != this))
106106 then throw("Only the DApp itself can call this function")
107107 else {
108108 let keyBuyUWORLDRate = "buy_UWORLD_rate"
109109 let keyBuyUWORLDRateScaleDelimiter = "buy_UWORLD_rate_scale_delimiter"
110110 let keySellUWORLDRate = "sell_UWORLD_rate"
111111 let keySellUWORLDRateScaleDelimiter = "sell_UWORLD_rate_scale_delimiter"
112112 [DeleteEntry(keyBuyUWORLDRate), DeleteEntry(keyBuyUWORLDRateScaleDelimiter), DeleteEntry(keySellUWORLDRate), DeleteEntry(keySellUWORLDRateScaleDelimiter)]
113113 }
114114
115115
116116
117117 @Callable(i)
118118 func buyULUS () = {
119- let $t055895664 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120- let pmtAmount = $t055895664._1
121- let pmtAssetId = $t055895664._2
119+ let $t056315706 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
120+ let pmtAmount = $t056315706._1
121+ let pmtAssetId = $t056315706._2
122122 if ((pmtAssetId != assetId))
123123 then throw("Asset must be USDN only")
124124 else {
125125 let exchangeRate = getIntegerValue(this, keyBuyULUSRate)
126126 let exchangeRateScaleDelimiter = getIntegerValue(this, keyBuyULUSRateScaleDelimiter)
127127 let amountToPay = fraction(pmtAmount, exchangeRateScaleDelimiter, exchangeRate)
128128 let amountWithoutCommission = amountToPay
129129 [ScriptTransfer(i.caller, amountWithoutCommission, ULUS)]
130130 }
131131 }
132132
133133
134134
135135 @Callable(i)
136136 func sellULUS () = {
137- let $t063186393 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138- let pmtAmount = $t063186393._1
139- let pmtAssetId = $t063186393._2
137+ let $t063606435 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
138+ let pmtAmount = $t063606435._1
139+ let pmtAssetId = $t063606435._2
140140 if ((pmtAssetId != ULUS))
141141 then throw("Asset must be ULUS only")
142142 else {
143143 let exchangeRate = getIntegerValue(this, keySellULUSRate)
144144 let exchangeRateScaleDelimiter = getIntegerValue(this, keySellULUSRateScaleDelimiter)
145145 let amountToPay = fraction(pmtAmount, exchangeRate, exchangeRateScaleDelimiter)
146146 let amountWithoutCommission = amountToPay
147147 [ScriptTransfer(i.caller, amountWithoutCommission, USDN)]
148148 }
149149 }
150150
151151
152152
153153 @Callable(i)
154154 func makePayment (recipient,productId,backendSignature,backendTimestamp) = {
155155 let recipientAddress = addressFromStringValue(recipient)
156- let $t071997274 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157- let pmtAmount = $t071997274._1
158- let pmtAssetId = $t071997274._2
156+ let $t072417316 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
157+ let pmtAmount = $t072417316._1
158+ let pmtAssetId = $t072417316._2
159159 let backendProof = (makeString([toString(this), backendTimestamp, toString(pmtAmount)], ";") + ";")
160160 if (!(sigVerify_8Kb(toBytes(backendProof), fromBase58String(backendSignature), backendPubKey)))
161161 then throw("Invalid signature from backend.")
162162 else if (((currentTs - parseIntValue(backendTimestamp)) > ((1000 * 60) * 15)))
163163 then throw("The signature is expired. Repeat the operation again.")
164164 else if (if ((pmtAssetId != USDN))
165165 then (pmtAssetId != ULUS)
166166 else false)
167167 then throw("Asset must be only USDN or ULUS")
168168 else {
169169 let commission = getIntegerValue(this, keyCommission)
170170 let commissionScaleDelimiter = getIntegerValue(this, keyCommissionScaleDelimiter)
171171 let amountCommission = fraction(pmtAmount, commission, commissionScaleDelimiter)
172172 let amountWithoutCommission = (pmtAmount - amountCommission)
173173 let assetDivider = if ((pmtAssetId == USDN))
174174 then 1000000
175175 else 1000
176176 let amountCashback = fraction(pmtAmount, 100, assetDivider)
177177 if (isDefined(getString(this, productId)))
178178 then {
179179 let NFTassetId = fromBase58String(getStringValue(this, productId))
180180 let NFTbalance = assetBalance(this, NFTassetId)
181181 if ((NFTbalance == 0))
182182 then throw("NFTasset doesn't exist.")
183183 else {
184184 let NFTIssuer = split(value(assetInfo(NFTassetId)).description, SEP)[2]
185185 let NFTIssuerAddress = addressFromStringValue(NFTIssuer)
186186 let amountIssuerCommission = fraction(pmtAmount, 100000, 1000000)
187187 let amountWithoutCommissions = ((pmtAmount - amountCommission) - amountIssuerCommission)
188188 [ScriptTransfer(recipientAddress, amountWithoutCommissions, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(NFTIssuerAddress, amountIssuerCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS), ScriptTransfer(i.caller, 1, NFTassetId)]
189189 }
190190 }
191191 else [ScriptTransfer(recipientAddress, amountWithoutCommission, pmtAssetId), ScriptTransfer(commissionAddress, amountCommission, pmtAssetId), ScriptTransfer(i.caller, amountCashback, ULUS)]
192192 }
193193 }
194194
195195

github/deemru/w8io/026f985 
53.61 ms