tx · FZuV51HFpoRQxuFjbHgQCwVrn4gq8YRy4AQQ2dhxkinB

3NAxi4ijrbVmR2AVeKTeJ1L3P4ebbXk7YDY:  -0.01400000 Waves

2022.03.02 05:05 [1945725] smart account 3NAxi4ijrbVmR2AVeKTeJ1L3P4ebbXk7YDY > SELF 0.00000000 Waves

{ "type": 13, "id": "FZuV51HFpoRQxuFjbHgQCwVrn4gq8YRy4AQQ2dhxkinB", "fee": 1400000, "feeAssetId": null, "timestamp": 1646186774754, "version": 2, "chainId": 84, "sender": "3NAxi4ijrbVmR2AVeKTeJ1L3P4ebbXk7YDY", "senderPublicKey": "6w6geQvkvMqffnrYsamvmS9TjKjjePjFPWLY9qDbNddX", "proofs": [ "3b16n49uBFSuShfZ5YhMmsiGDqZvHgX9f5SW5eFBJzgDK9qbMMqtyNgzAa71qJipNtog6GzgQB8naT7sA1y49ifs" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAEAAAAAAtmc1ROQXNzZXRJRAEAAAAgnvVzUNkaAZFSSO4nPxeRoS4zrUxu6jad0qWebNIZFHoAAAAAE0lzc3VlZnNUTkZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAAR0eG5zBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAACVRvdGFsdHhucwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAAAAAAl0b3RhbHR4bnMJAABkAAAAAgUAAAAEdHhucwAAAAAAAAAAAQAAAAIAAAABaQEAAAAJSXNzdWVmc1ROAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWx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AAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJVG90YWx0eG5zBQAAAAl0b3RhbHR4bnMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAElRvdGFsX0lzc3VlZF9mc1ROOgUAAAAPVG90YWxJc3N1ZWRmc1ROCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABJUb3RhbF9CdXJuZWRfZnNUTjoFAAAAD1RvdGFsQnVybmVkZnNUTgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAZVG90YWxfZnNUTl9SZXNlcnZlX0luX1ROOgUAAAAQZnNUTlJlc2VydmVWYWx1ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAYZnNUTl9CYWNrdXBfVmFsdWVfSW5fVE46BQAAAA9mc1ROQmFja3VwUHJpY2UJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHbWVzc2FnZQIAAAAqPGgxPmZzVE4gTGlxdWlkYXRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAASY2FsY3VsYXRlYnVybnZhbHVlBQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk31NKK", "height": 1945725, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4LGnpPmveuF3Za6XSFuxxxPqctSrjeo5kmzUZ2jrsRXE Next: 4YNL9wwUjKXdFZqjs5S7jfA4GRwjMqD1hDAh3hpMJmgq Diff:
OldNewDifferences
66 let b = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
77
88 let c = {
9- let d = getInteger(this, "TotalTxns")
9+ let d = getInteger(this, "Totaltxns")
1010 if ($isInstanceOf(d, "Int"))
1111 then {
1212 let e = d
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'BhWVeP6JGPGvzHtLa4r6Hypuyx4kKyPXC6sFnW3gzNhX'
55
66 let b = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
77
88 let c = {
9- let d = getInteger(this, "TotalTxns")
9+ let d = getInteger(this, "Totaltxns")
1010 if ($isInstanceOf(d, "Int"))
1111 then {
1212 let e = d
1313 e
1414 }
1515 else 0
1616 }
1717
1818 let f = (c + 1)
1919
2020 @Callable(g)
2121 func IssuefsTN () = {
2222 let h = value(g.payments[0])
2323 let i = toBase58String(g.caller.bytes)
2424 let j = getIntegerValue(this, "fsTN/TN")
2525 let k = getIntegerValue(this, "fsTNCurrentCap")
2626 let l = fraction(100000, h.amount, j)
2727 let m = getIntegerValue(this, "Total_Issued_fsTN:")
2828 let n = (m + l)
2929 let o = (k - n)
3030 let p = getIntegerValue(this, "Total_fsTN_Reserve_In_TN:")
3131 let q = (p + h.amount)
3232 let r = getIntegerValue(this, "fsTN_Backup_Value_In_TN:")
3333 let s = fraction(100000, q, n)
3434 let t = 100000000
3535 if (isDefined(h.assetId))
3636 then throw("Incorrect asset attached, please attach TN.")
3737 else if ((200000000 > h.amount))
3838 then throw("Please Attach minimum 2 TN To Issue fsTN Asset.")
3939 else if ((n > k))
4040 then throw((((((("fsTN Minting is about to reach the Cap of " + toString(k)) + "/10^8 fsTN. Please Reduce your Minting Order by ") + toString(o)) + " or put ") + toString((k - m))) + "/10^8"))
4141 else [IntegerEntry("Total_Issued_fsTN:", n), IntegerEntry("Balance_Minting_fsTN:", o), IntegerEntry("Total_fsTN_Reserve_In_TN:", q), IntegerEntry("fsTN_Backup_Value_In_TN:", s), IntegerEntry("Totaltxns", f), StringEntry("message", "<h1>fsTN Issued Successfully!</h1><br>"), Reissue(a, l, true), ScriptTransfer(g.caller, (l - t), a), ScriptTransfer(b, t, a)]
4242 }
4343
4444
4545
4646 @Callable(g)
4747 func Liquidate () = {
4848 let i = toBase58String(g.callerPublicKey)
4949 let h = value(g.payments[0])
5050 let m = getIntegerValue(this, "Total_Issued_fsTN:")
5151 let u = getIntegerValue(this, "Total_Burned_fsTN:")
5252 let n = (m - h.amount)
5353 let v = (u + h.amount)
5454 let p = getIntegerValue(this, "Total_fsTN_Reserve_In_TN:")
5555 let r = getIntegerValue(this, "fsTN_Backup_Value_In_TN:")
5656 let w = fraction(r, h.amount, 100000)
5757 let q = (p - w)
5858 let s = fraction(100000, q, n)
5959 if ((h.assetId != a))
6060 then throw((("Kindly Deposit Only " + toBase58String(a)) + " (fsTN)."))
6161 else if ((100000 > h.amount))
6262 then throw("Attach Amount must be greater than 0.001 fsTN.")
6363 else [Burn(a, h.amount), IntegerEntry("Totaltxns", f), IntegerEntry("Total_Issued_fsTN:", n), IntegerEntry("Total_Burned_fsTN:", v), IntegerEntry("Total_fsTN_Reserve_In_TN:", q), IntegerEntry("fsTN_Backup_Value_In_TN:", s), StringEntry("message", "<h1>fsTN Liquidated Successfully!</h1><br>"), ScriptTransfer(g.caller, w, unit)]
6464 }
6565
6666
6767 @Verifier(x)
6868 func y () = {
6969 let d = x
7070 sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey)
7171 }
7272

github/deemru/w8io/026f985 
25.20 ms