tx · BC8monaYtxij8jUZtvQkjqDSddmn8XpvsJHSbXwjf3GD

3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id:  -0.01400000 Waves

2021.04.23 01:31 [1494250] smart account 3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id > SELF 0.00000000 Waves

{ "type": 13, "id": "BC8monaYtxij8jUZtvQkjqDSddmn8XpvsJHSbXwjf3GD", "fee": 1400000, "feeAssetId": null, "timestamp": 1619130775327, "version": 2, "chainId": 84, "sender": "3NADYuG3G91PrmsrRqQfyeDCf2Pi53UV5id", "senderPublicKey": "8agr5kfwDL7NLuMetvciXCcd9TcDKZhRwYZPPTAShaCC", "proofs": [ "5ymaEMqQfgfwU1EJuAiK5GK6zvncq7JcyfxvhzvvxiPfkgwF2fkttgM3aLYDebGbEE43AaWV6eVx4CysrC3ovzUw" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAEVVNETgEAAAAgtiYpwwT1zlORpA5LdSQvZIxRsfrfr1QpvUjSHSqyqtEAAAAAB1VTRHRlc3QBAAAAIOSwcsQaO/7w9gk22WMNYWxRgCp4LSxG18pSVz66uVShAAAAAAdhc3NldElkBQAAAAdVU0R0ZXN0AQAAAAxnZXRBc3NldEluZm8AAAABAAAAB2Fzc2V0SWQEAAAAByRtYXRjaDAFAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAmlkBQAAAAckbWF0Y2gwBAAAAAhzdHJpbmdJZAkAAlgAAAABBQAAAAJpZAQAAAAEaW5mbwkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAD7AAAAAEFAAAAAmlkCQABLAAAAAIJAAEsAAAAAgIAAAAGQXNzZXQgBQAAAAhzdHJpbmdJZAIAAAAOIGRvZXNuJ3QgZXhpc3QJAAUVAAAAAwUAAAAIc3RyaW5nSWQIBQAAAARpbmZvAAAABG5hbWUIBQAAAARpbmZvAAAACGRl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AQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABByZWNpcGllbnRBZGRyZXNzBQAAABBhbW91bnRXaXRob3V0RmVlBQAAAAdhc3NldElkBQAAAANuaWwAAAAA6qB40A==", "height": 1494250, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HXP6zH2EzVFi2JPYT9cgow6Nyym4RL3n2jSFBL3TCt2Z Next: 2GWm7BkWcubddzHbk3gwuizvVQbvLwFcY6TPVg9fBbGN Diff:
OldNewDifferences
3434 else {
3535 let commission = 30000
3636 let commissionScaleDelimiter = 1000000
37- let fee = fraction(pmtAmount, 97, 100)
37+ let fee = fraction(pmtAmount, 3, 100)
3838 let amountWithoutFee = (pmtAmount - fee)
3939 [ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(recipientAddress, amountWithoutFee, assetId)]
4040 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
66 let USDtest = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg'
77
88 let assetId = USDtest
99
1010 func getAssetInfo (assetId) = match assetId {
1111 case id: ByteVector =>
1212 let stringId = toBase58String(id)
1313 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
1414 $Tuple3(stringId, info.name, info.decimals)
1515 case waves: Unit =>
1616 $Tuple3("WAVES", "WAVES", 8)
1717 case _ =>
1818 throw("Match error")
1919 }
2020
2121
2222 @Callable(i)
2323 func call (recipient) = {
2424 let recipientAddress = addressFromStringValue(recipient)
2525 let $t0756831 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
2626 let pmtAmount = $t0756831._1
2727 let pmtAssetId = $t0756831._2
2828 let $t0834907 = getAssetInfo(pmtAssetId)
2929 let pmtStrAssetId = $t0834907._1
3030 let pmtAssetName = $t0834907._2
3131 let pmtDecimals = $t0834907._3
3232 if ((pmtAssetId != assetId))
3333 then throw("Assets must be USDN only")
3434 else {
3535 let commission = 30000
3636 let commissionScaleDelimiter = 1000000
37- let fee = fraction(pmtAmount, 97, 100)
37+ let fee = fraction(pmtAmount, 3, 100)
3838 let amountWithoutFee = (pmtAmount - fee)
3939 [ScriptTransfer(i.caller, 1, assetId), ScriptTransfer(recipientAddress, amountWithoutFee, assetId)]
4040 }
4141 }
4242
4343

github/deemru/w8io/026f985 
21.43 ms