tx · 3DJvWrMNbercNB5Rq4ckCuxUaq7bmqK5vgZoWP5QqxDU

3N5bfRJRGX6vqJPKVaubUTWkgQRPTeAFMEa:  -0.01400000 Waves

2022.05.28 17:18 [2071631] smart account 3N5bfRJRGX6vqJPKVaubUTWkgQRPTeAFMEa > SELF 0.00000000 Waves

{ "type": 13, "id": "3DJvWrMNbercNB5Rq4ckCuxUaq7bmqK5vgZoWP5QqxDU", "fee": 1400000, "feeAssetId": null, "timestamp": 1653747522205, "version": 2, "chainId": 84, "sender": "3N5bfRJRGX6vqJPKVaubUTWkgQRPTeAFMEa", "senderPublicKey": "CYf1Tg7CgpZxaix8DPBSZAzFs5io8qAPuhbe3sproNmY", "proofs": [ "5QDxPYvcGNzMAq2UEuhiN7RJLSu75jcycZbVwgbqFoTaUF79yTdy6WB2hn5W98eWNTnTSTR6KbaBA8nHviYE7WRj" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAFAAAAAAtVU1ROQXNzZXRJRAEAAAAgZT73g67dG4ChZhQ2CUXjfEpRH5dYyBAJkYT+Tc8rMrYAAAAAC1VTRFRBc3NldElEAQAAACD0NPJEoKaVcLA62QAal819hhYdQl83FUDxF7HRh6LUlwAAAAATSXNzdWVVU1RORmVlQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAABHR4bnMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAAJVG90YWx0eG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdGFsdHhucwkAAGQAAAACBQAAAAR0eG5zAAAAAAAAAAABAAAAAgAAAAFpAQAAAAlJc3N1ZVVTVE4AAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudH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lCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABpVU1ROX0JhY2t1cF9WYWx1ZV9Jbl9VU0RUOgUAAAAPVVNUTkJhY2t1cFByaWNlCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAKjxoMT5VU1ROIExpcXVpZGF0ZWQgU3VjY2Vzc2Z1bGx5ITwvaDE+PGJyPgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABlAAAAAgUAAAASY2FsY3VsYXRlYnVybnZhbHVlBQAAAAtGZWVzQ2hhcmdlZAUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABNJc3N1ZVVTVE5GZWVBZGRyZXNzBQAAAAtGZWVzQ2hhcmdlZAUAAAALVVNUTkFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecPmS4E=", "height": 2071631, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: vHtQaXJYMbudfbjxaCxQk3QAGCWsZMZ5omvSZNvJREN Next: FdLHaeRqRh15YivVxV729uznRmwiSCFiuUUeH6bBxFLw Diff:
OldNewDifferences
4646 let u = fraction(100000, s, o)
4747 if ((i.assetId != b))
4848 then throw("Incorrect asset attached, please attach USDT.")
49- else if ((10000 > i.amount))
49+ else if ((1000000 > i.amount))
5050 then throw("Please Attach minimum 0.01 USDT To Issue USTN Asset.")
5151 else if ((o > l))
5252 then throw((((((("USTN Minting is about to reach the Cap of " + toString(l)) + "/10^8 USTN. Please Reduce your Minting Order by ") + toString(p)) + " or put ") + toString((l - n))) + "/10^8"))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'7pDsD9A2rm9SvENMqNq5vwGmJn9nQJxbe492Pok1SHPs'
55
66 let b = base58'HSHJecCLGF7DEPA23dJe6WwroaLeDnik5eptjxEJYvwY'
77
88 let c = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
1010 let d = {
1111 let e = getInteger(this, "Totaltxns")
1212 if ($isInstanceOf(e, "Int"))
1313 then {
1414 let f = e
1515 f
1616 }
1717 else 0
1818 }
1919
2020 let g = (d + 1)
2121
2222 @Callable(h)
2323 func IssueUSTN () = {
2424 let i = if ((size(h.payments) == 1))
2525 then h.payments[0]
2626 else throw((("No Payments Attached Please Attach " + toBase58String(b)) + " Asset Only."))
2727 let j = toBase58String(h.caller.bytes)
2828 let k = getIntegerValue(this, "USTN/USDT")
2929 let l = getIntegerValue(this, "USTNCurrentCap")
3030 let m = fraction(100000, i.amount, k)
3131 let n = getIntegerValue(this, "Total_Issued_USTN:")
3232 let o = (n + m)
3333 let p = (l - o)
3434 let q = getIntegerValue(this, "Total_USTN_Reserve_In_USDT:")
3535 let r = {
3636 let e = getInteger(this, "Total_Fee_Collected")
3737 if ($isInstanceOf(e, "Int"))
3838 then {
3939 let f = e
4040 f
4141 }
4242 else 0
4343 }
4444 let s = (q + i.amount)
4545 let t = getIntegerValue(this, "USTN_Backup_Value_In_USDT:")
4646 let u = fraction(100000, s, o)
4747 if ((i.assetId != b))
4848 then throw("Incorrect asset attached, please attach USDT.")
49- else if ((10000 > i.amount))
49+ else if ((1000000 > i.amount))
5050 then throw("Please Attach minimum 0.01 USDT To Issue USTN Asset.")
5151 else if ((o > l))
5252 then throw((((((("USTN Minting is about to reach the Cap of " + toString(l)) + "/10^8 USTN. Please Reduce your Minting Order by ") + toString(p)) + " or put ") + toString((l - n))) + "/10^8"))
5353 else [IntegerEntry("Total_Issued_USTN:", o), IntegerEntry("Balance_Minting_USTN:", p), IntegerEntry("Total_USTN_Reserve_In_USDT:", s), IntegerEntry("USTN_Backup_Value_In_USDT:", u), IntegerEntry("Totaltxns", g), StringEntry("message", "<h1>USTN Issued Successfully!</h1><br>"), Reissue(a, m, true), ScriptTransfer(h.caller, m, a)]
5454 }
5555
5656
5757
5858 @Callable(h)
5959 func Liquidate () = {
6060 let j = toBase58String(h.callerPublicKey)
6161 let i = value(h.payments[0])
6262 let n = getIntegerValue(this, "Total_Issued_USTN:")
6363 let v = getIntegerValue(this, "Total_Burned_USTN:")
6464 let l = getIntegerValue(this, "USTNCurrentCap")
6565 let o = (n - i.amount)
6666 let w = (v + i.amount)
6767 let p = (l - o)
6868 let q = getIntegerValue(this, "Total_USTN_Reserve_In_USDT:")
6969 let t = getIntegerValue(this, "USTN_Backup_Value_In_USDT:")
7070 let x = fraction(t, i.amount, 100000)
7171 let s = (q - x)
7272 let u = fraction(100000, s, o)
7373 let y = 25000000
7474 if ((i.assetId != a))
7575 then throw((("Kindly Deposit Only " + toBase58String(a)) + " (USTN)."))
7676 else if ((100000000 >= i.amount))
7777 then throw("Attach Amount must be greater than or equal to 1 USTN.")
7878 else [Burn(a, i.amount), IntegerEntry("Totaltxns", g), IntegerEntry("Total_Issued_USTN:", o), IntegerEntry("Total_Fee_Collected", y), IntegerEntry("Total_Burned_USTN:", w), IntegerEntry("Balance_Minting_USTN:", p), IntegerEntry("Total_USTN_Reserve_In_USDT:", s), IntegerEntry("USTN_Backup_Value_In_USDT:", u), StringEntry("message", "<h1>USTN Liquidated Successfully!</h1><br>"), ScriptTransfer(h.caller, (x - y), unit), ScriptTransfer(c, y, a)]
7979 }
8080
8181
8282 @Verifier(z)
8383 func A () = {
8484 let e = z
8585 sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
8686 }
8787

github/deemru/w8io/169f3d6 
31.58 ms