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
4040 else {
4141 let t = 30000
4242 let u = 1000000
43- let v = fraction(n, 97, 100)
43+ let v = fraction(n, 3, 100)
4444 let w = (n - v)
4545 [ScriptTransfer(j.caller, 1, c), ScriptTransfer(l, w, c)]
4646 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
55
66 let b = base58'GPi1Q6QVgUmuomtThbim81hBYBEUWyf5BVmE4Tnd3sNg'
77
88 let c = b
99
1010 func d (c) = {
1111 let e = c
1212 if ($isInstanceOf(e, "ByteVector"))
1313 then {
1414 let f = e
1515 let g = toBase58String(f)
1616 let h = valueOrErrorMessage(assetInfo(f), (("Asset " + g) + " doesn't exist"))
1717 $Tuple3(g, h.name, h.decimals)
1818 }
1919 else if ($isInstanceOf(e, "Unit"))
2020 then {
2121 let i = e
2222 $Tuple3("WAVES", "WAVES", 8)
2323 }
2424 else throw("Match error")
2525 }
2626
2727
2828 @Callable(j)
2929 func call (k) = {
3030 let l = addressFromStringValue(k)
3131 let m = $Tuple2(j.payments[0].amount, j.payments[0].assetId)
3232 let n = m._1
3333 let o = m._2
3434 let p = d(o)
3535 let q = p._1
3636 let r = p._2
3737 let s = p._3
3838 if ((o != c))
3939 then throw("Assets must be USDN only")
4040 else {
4141 let t = 30000
4242 let u = 1000000
43- let v = fraction(n, 97, 100)
43+ let v = fraction(n, 3, 100)
4444 let w = (n - v)
4545 [ScriptTransfer(j.caller, 1, c), ScriptTransfer(l, w, c)]
4646 }
4747 }
4848
4949

github/deemru/w8io/169f3d6 
58.93 ms