tx · 5BnAhGPLt9iSQAhg5JcghChrtYMmwh7BL53yFLQJBdPj

3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S:  -0.01400000 Waves

2021.03.26 22:27 [1455128] smart account 3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S > SELF 0.00000000 Waves

{ "type": 13, "id": "5BnAhGPLt9iSQAhg5JcghChrtYMmwh7BL53yFLQJBdPj", "fee": 1400000, "feeAssetId": null, "timestamp": 1616786885707, "version": 2, "chainId": 84, "sender": "3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S", "senderPublicKey": "CgByewRUvLk7UtWSfRMLSYw4Ap2wT5dcdVYKideqDp9M", "proofs": [ "3aNYvjz8zLF6ZRzNRafh71L7Y1oD7Tx7F1b575xvkmDKHDi6ffrXYbcLxZDSCJJjFUQ8ktMmJ8DeHk1H16F5CoWA" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAADAAAAAAOdG90YWxGZWVFdGhLZXkCAAAADXRvdGFsX2ZlZV9ldGgAAAAADnRvdGFsRmVlVXNkS2V5AgAAAA10b3RhbF9mZWVfdXNkAAAAABJ0b3RhbEZlZUR5enJhcHRLZXkCAAAAEXRvdGFsX2ZlZV9keXpyYXB0AAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvj/uzYkPvAWmBY0l0o79qoW9wh0kW3OWAAAAAA5keXpyYXB0QXNzZXRJZAEAAAAgnxnpc9km71BHiGYaP3+jsvIwnjyNE9APQJ48k4SnBCMAAAAACmV0aEFzc2V0SWQBAAAAICImU7qSm/1VgN3CrHN9jStFD2u0cA4gGz96jcaC4wuhAAAAAAt1c2RuQXNzZXRJZAEAAAAgfGnBa2RwgHQkUhuI1e0jfydVGajNaZehqKCu72Hgd8IBAAAADGdldEZlZUFtb3VudAAAAAEAAAAGYW1vdW50BAAAAANmZWUJAABrAAAAAwUAAAAGYW1vdW50AAAAAAAAAAADAAAAAAAAAABkBQAAAANmZWUBAAAADWdldEludEtleURhdGEAAAABAAAAA2tleQQAAAABdgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAAFAAAAAXYBAAAADmdldFRvdGFsRmVlRXRoAAAAAAkBAAAADWdldEludEtleURhdGEAAAABBQAAAA50b3RhbEZlZUV0aEtleQEAAAAOZ2V0VG90YWxGZWVVc2QAAAAACQEAAAANZ2V0SW50S2V5RGF0YQAAAAEFAAAADnRvdGFsRmVlVXNkS2V5AQAAABJnZXRUb3RhbEZlZUR5enJhcHQAAAAACQEAAAANZ2V0SW50S2V5RGF0YQAAAAEFAAAAEnRvdGFsRmVlRHl6cmFwdEtleQAAAAEAAAABaQEAAAAEdGVzdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRJZAgFAAAAA3BtdAAAAAdhc3NldElkBAAAAAZhbW91bnQIBQAAAANwbXQAAAAGYW1vdW50AwkAAAAAAAACBQAAAAdhc3NldElkBQAAAA5keXpyYXB0QXNzZXRJZAkAAAIAAAABCQABLAAAAAICAAAAFml0cyBhIGR5enJhcHQuIEFtb3VudD0JAAGkAAAAAQUAAAAGYW1vdW50CQAAAgAAAAECAAAAEWl0cyBub3QgYSBkeXpyYXB0AAAAAJGW3Po=", "height": 1455128, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ACVEotrYwkso5TiPA5hcEyT2QDcd2SvqDzwvL1RtFWxU Next: BMBcHomCA5AhTqbtq7tBL72uqkESVxPCfg6he5HQM8HD Diff:
OldNewDifferences
4040 func test () = {
4141 let pmt = value(i.payments[0])
4242 let assetId = pmt.assetId
43+ let amount = pmt.amount
4344 if ((assetId == dyzraptAssetId))
44- then throw("its a dyzrapt")
45+ then throw(("its a dyzrapt. Amount=" + toString(amount)))
4546 else throw("its not a dyzrapt")
4647 }
4748
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let totalFeeEthKey = "total_fee_eth"
55
66 let totalFeeUsdKey = "total_fee_usd"
77
88 let totalFeeDyzraptKey = "total_fee_dyzrapt"
99
1010 let oracleAddress = Address(base58'3N7G2kVtBTh94aEnDHQ9dpi4EdsDxAiDXjB')
1111
1212 let dyzraptAssetId = base58'Bi4jxKEFjjYG2emeyxZfpkVMS88N7uAogHNsi1urkoJA'
1313
1414 let ethAssetId = base58'3JJkzB4pFXcqdJvC9TcV8ys1FLgesr5SxbhmykkpceQp'
1515
1616 let usdnAssetId = base58'9Nf5wpj6jds3VRZKDryp6Dtf3R9d8MdbjNhencLogCr5'
1717
1818 func getFeeAmount (amount) = {
1919 let fee = fraction(amount, 3, 100)
2020 fee
2121 }
2222
2323
2424 func getIntKeyData (key) = {
2525 let v = valueOrElse(getInteger(this, key), 0)
2626 v
2727 }
2828
2929
3030 func getTotalFeeEth () = getIntKeyData(totalFeeEthKey)
3131
3232
3333 func getTotalFeeUsd () = getIntKeyData(totalFeeUsdKey)
3434
3535
3636 func getTotalFeeDyzrapt () = getIntKeyData(totalFeeDyzraptKey)
3737
3838
3939 @Callable(i)
4040 func test () = {
4141 let pmt = value(i.payments[0])
4242 let assetId = pmt.assetId
43+ let amount = pmt.amount
4344 if ((assetId == dyzraptAssetId))
44- then throw("its a dyzrapt")
45+ then throw(("its a dyzrapt. Amount=" + toString(amount)))
4546 else throw("its not a dyzrapt")
4647 }
4748
4849

github/deemru/w8io/026f985 
40.34 ms