tx · HnRvNFvTrjzkkzAM5VDd1AsXwghx42BAAzD5WFw87Uxw

3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA:  -0.01000000 Waves

2023.08.30 02:08 [2732630] smart account 3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA > SELF 0.00000000 Waves

{ "type": 13, "id": "HnRvNFvTrjzkkzAM5VDd1AsXwghx42BAAzD5WFw87Uxw", "fee": 1000000, "feeAssetId": null, "timestamp": 1693350545186, "version": 2, "chainId": 84, "sender": "3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA", "senderPublicKey": "HQQ69Dum2Dp6ikGs7dfYRtTema79wqesthHx1wHmHC5Q", "proofs": [ "2yHRjYY7KUhx2RJ9d5ozi8YgTKHqQRGnGa2GeGA9vbNNgkrmu9DVD5TQZ5QC2fEnwVhMSNVkaDNcBnAZZXm8ufop" ], "script": "base64:AAIFAAAAAAAAAAkIAhIDCgEIEgAAAAACAQAAABRnZXRXYXZlc0N1cnJlbnRQcmljZQAAAAAAAAAAAAAehIABAAAAEGdldFdhdmVzTmV3UHJpY2UAAAAAAAAAAAAALcbAAAAAAgAAAAFpAQAAAAtzd2FwVG9XYXZlcwAAAAEAAAAIY2FsbGVySWQDAwkBAAAAAiE9AAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQYJAAAAAAAAAggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50AAAAAAAAAAAACQAAAgAAAAECAAAAHDEgcGF5bWVudCBoYXMgdG8gYmUgYXR0YWNoZWQEAAAACEFtb3VudEluCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQEAAAACUFtb3VudE91dAkAAGgAAAACCQAAaQAAAAIFAAAACEFtb3VudEluAAAAAAAAHoSAAAAAAAAF9eEACQAFFAAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQ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": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4Z9bSHmZ2iKLVfFHnjeDDT6LnTiXZUiR5SFpur94Q16Q Next: 3AWcH11UPGnenDKJXu7DNgGJFR89yFYPNQnchuLQuPa2 Diff:
OldNewDifferences
1515 else {
1616 let e = c.payments[0].amount
1717 let f = ((e / 2000000) * 100000000)
18- $Tuple2([IntegerEntry("AmountIn_USDN", e), IntegerEntry("AmountOut_WAVES", f), IntegerEntry((d + "Last_AmountOut_Waves"), f)], f)
18+ $Tuple2([IntegerEntry("AmountIn_USDN", e), IntegerEntry("AmountOut_WAVES", f), IntegerEntry((d + "_Last_AmountOut_Waves"), f)], f)
1919 }
2020
2121
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = 2000000
55
66
77 func b () = 3000000
88
99
1010 @Callable(c)
1111 func swapToWaves (d) = if (if ((size(c.payments) != 1))
1212 then true
1313 else (c.payments[0].amount == 0))
1414 then throw("1 payment has to be attached")
1515 else {
1616 let e = c.payments[0].amount
1717 let f = ((e / 2000000) * 100000000)
18- $Tuple2([IntegerEntry("AmountIn_USDN", e), IntegerEntry("AmountOut_WAVES", f), IntegerEntry((d + "Last_AmountOut_Waves"), f)], f)
18+ $Tuple2([IntegerEntry("AmountIn_USDN", e), IntegerEntry("AmountOut_WAVES", f), IntegerEntry((d + "_Last_AmountOut_Waves"), f)], f)
1919 }
2020
2121
2222
2323 @Callable(c)
2424 func swapToUSDN () = if (if ((size(c.payments) != 1))
2525 then true
2626 else (c.payments[0].amount == 0))
2727 then throw("1 payment has to be attached")
2828 else {
2929 let e = c.payments[0].amount
3030 let f = ((e * b()) / 100)
3131 $Tuple2([IntegerEntry("AmountIn_Waves", e), IntegerEntry("AmountOut_USDN", f)], f)
3232 }
3333
3434
3535 @Verifier(g)
3636 func h () = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
3737

github/deemru/w8io/026f985 
21.29 ms