tx · AWm2JFTM36YtWxdmtvjdMCGysyR8kdTv6o4J1rJThpWC

3N993f67Vv3Jz3F2VXhGqDR37w6Sw3z3883:  -0.01400000 Waves

2023.01.17 10:47 [2408653] smart account 3N993f67Vv3Jz3F2VXhGqDR37w6Sw3z3883 > SELF 0.00000000 Waves

{ "type": 13, "id": "AWm2JFTM36YtWxdmtvjdMCGysyR8kdTv6o4J1rJThpWC", "fee": 1400000, "feeAssetId": null, "timestamp": 1673941694588, "version": 2, "chainId": 84, "sender": "3N993f67Vv3Jz3F2VXhGqDR37w6Sw3z3883", "senderPublicKey": "4Th7ZmZ8q1gJTWYroiTqkP8SHd97aJUT2bQyKgCyvqZF", "proofs": [ "5yqP79oekSWLqEDWk4xbfuoxchhpmByoo26A5Y5RTukz8DwCVqcn7XtyZTgkcmGsFC9vsxn5hUopxUA5JDZHdttu" ], "script": "base64:AAIFAAAAAAAAAPcIAhIAIgFpIg9TcGVuZFdhdmVzVmFsdWUiEURhcHBmZWVwZXJjZW50YWdlIg1jYWxsZXJhZGRyZXNzIgtBTU1fQWRkcmVzcyIFV0FWRVMiCWtCYWxhbmNlQSIPQV9hc3NldF9iYWxhbmNlIglrQmFsYW5jZUIiD0JfYXNzZXRfYmFsYW5jZSIRbmV3YmFsYW5jZW9mV0FWRVMiEm1pbkFtb3VudFRvUmVjZWl2ZSIHQU1NX2ZlZSIYYWN0dWFsbWluQW1vdW50VG9SZWNlaXZlIgdwYXltZW50IhBpbnZva2VUb0J1eVdBVkVTIgJ0eCIGdmVyaWZ5AAAAAAAAAAEAAAABYQEAAAAOQnV5VE5XaXRoV2F2ZXMAAAAABAAAAAFiAAAAAAAUQ/0ABAAAAAFjAAAAAAAAAABgBAAAAAFkCQACWAAAAAEICAUAAAABYQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAAWUJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAECAAAAIzNKakg2YmhDRWNOM0pkdUVqQUNtQnZMUTFlUXZYU25BdXlpBAAAAAFmAQAAACDP/74B1d4jjFgihGpnkOPBwPYiuXsdK1Tqg2sFWwuhfgQAAAABZwIAAAARZ2xvYmFsX1ROX2JhbGFuY2UEAAAAAWgJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAAAWUFAAAAAWcEAAAAAWkCAAAAO2dsb2JhbF9FendhRjU4c3NBTGNVQ1o5RmJ5ZUQxR1RTdGVvWkFRWkVEVHFCQVhIZnE4eV9iYWxhbmNlBAAAAAFqCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAFlBQAAAAFpBAAAAAFrCQAAawAAAAMFAAAAAWoFAAAAAWgJAABkAAAAAgUAAAABagUAAAABYgQAAAABbAkAAGUAAAACBQAAAAFoBQAAAAFrBAAAAAFtCQAAawAAAAMFAAAAAWwFAAAAAWMAAAAAAAAAJxAEAAAAAW4JAABlAAAAAgkAAGUAAAACBQAAAAFsBQAAAAFtAAAAAAAAAAACBAAAAAFvCQEAAAAPQXR0YWNoZWRQYXltZW50AAAAAgUAAAABZgUAAAABYgQAAAABcAkAA/wAAAAEBQAAAAFlAgAAAARzd2FwCQAETAAAAAIFAAAAAW4FAAAAA25pbAkABEwAAAACBQAAAAFvBQAAAANuaWwJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADlN3YXBfVE5fQW1vdW50BQAAAAFuBQAAAANuaWwAAAABAAAAAXEBAAAAAXIAAAAACQAB9AAAAAMIBQAAAAFxAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABcQAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFxAAAAD3NlbmRlclB1YmxpY0tleZaHPB0=", "height": 2408653, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B6G2npUoaPQsZLRKe1x7sKkPM6Dy8VfN15stSCmKKhfB Next: 5QLSnFmbVFC8VijPDYQHHzaeahpzbBmp9rxTHQi57uKZ Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = getStringValue(this, "DApp_Admin_Rights")
54
6-@Callable(b)
5+
6+@Callable(a)
77 func BuyTNWithWaves () = {
8- let c = 340000000
9- let d = 96
10- let e = toBase58String(b.caller.bytes)
11- if ((a != e))
12- then throw((("I know You are not An Admin. Only " + a) + " has rights to Sign."))
13- else [IntegerEntry("global_TN_balance", 30428578826086), IntegerEntry("global_EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y_balance", 75906702019), StringEntry("DApp_Admin_Rights", "3N7mtXVHnAL3zdCRzVhrk8rzzXCQSL4kHJn")]
8+ let b = 340000000
9+ let c = 96
10+ let d = toBase58String(a.caller.bytes)
11+ let e = addressFromStringValue("3JjH6bhCEcN3JduEjACmBvLQ1eQvXSnAuyi")
12+ let f = base58'EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y'
13+ let g = "global_TN_balance"
14+ let h = getIntegerValue(e, g)
15+ let i = "global_EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y_balance"
16+ let j = getIntegerValue(e, i)
17+ let k = fraction(j, h, (j + b))
18+ let l = (h - k)
19+ let m = fraction(l, c, 10000)
20+ let n = ((l - m) - 2)
21+ let o = AttachedPayment(f, b)
22+ let p = invoke(e, "swap", [n], [o])
23+[IntegerEntry("Swap_TN_Amount", n)]
1424 }
1525
1626
17-@Verifier(f)
18-func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey)
27+@Verifier(q)
28+func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
1929

github/deemru/w8io/169f3d6 
23.80 ms