tx · FqsdxUHBXBqFKyt8ngPftNKSZEoChGznKVvzfwt8n5Dy

3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9:  -0.01400000 Waves

2022.07.27 14:31 [2158167] smart account 3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9 > SELF 0.00000000 Waves

{ "type": 13, "id": "FqsdxUHBXBqFKyt8ngPftNKSZEoChGznKVvzfwt8n5Dy", "fee": 1400000, "feeAssetId": null, "timestamp": 1658921509329, "version": 2, "chainId": 84, "sender": "3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9", "senderPublicKey": "8oL7nu18BhijZNKwmxWzaUpmNrA48i32oeCZiqKEKMYh", "proofs": [ "5Fa5vu2Jumm7JrPdbn56owAa3W6g2dvMHmaTc1iYy4yYTCkKQSiwp7TnqePiTUToKMb6HnDiCC6hpEbTkGCBXkGm" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAABgAAAAALVVNUTkFzc2V0SUQBAAAAIN0RNjT0JhkV/PqqEOeuHYh00ore/OqX8thpQ4wtl1rFAAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dpGMgKJ4Em8VuX7cTsTfnCu1nLEhiLhGCgX6b3/PMAAAAAE0lzc3VlVVNUTkZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIJlGKrAhJUXwk0JOfIynzOy+/80qLSj42YjgDuQyB58vAAAAAA5taW5pbXVtTGVhc2luZwAAAAAAAJiWgAAAAAAEdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAlUb3RhbHR4bnMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAAAAAAJdG90YWx0eG5zCQAAZAAAAAIFAAAABHR4bnMAAAAAAAAAAAEAAAAEAAAAAWkBAAAACUxlYXNpbmdUTgAAAAAEAAAAA3BtdAM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0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXn6PpQ+", "height": 2158167, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2G17Z6qfCwpFSbKzZmqa7JeWSRgd6aQzpRVBMjG2qRnn Next: Cjwp5zv9Nqow6y6fJ49GhgQigKtLCE5h6tBvZAxcignL Diff:
OldNewDifferences
2626 let currentKey = toBase58String(i.caller.bytes)
2727 let txnId = toBase58String(i.transactionId)
2828 let NewLeasingAmount = pmt.amount
29+ let Leasing = Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount)
30+ let LeaseId = calculateLeaseId(Leasing)
2931 let leasetxns = match getInteger(this, "Total_Leasers") {
3032 case b: Int =>
3133 b
5355 then throw("Please Attach minimum 1000 TN To Start Leasing.")
5456 else if ((UserNoOfDeposits == 1))
5557 then throw("You Already Have an Active Leasing, Please Wait until Mature.")
56- else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), StringEntry(("Lease_Txn_id_" + currentKey), txnId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount)]
58+ else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), BinaryEntry(("Lease_Txn_id_" + currentKey), LeaseId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Leasing]
5759 }
5860
5961
7678 then throw((("Please Attach Exact " + toString(fraction(ClaimFee, 1, 100000000))) + " TN As a Claim Fee."))
7779 else if ((checkdepositvalue == 0))
7880 then throw("You Have Already Unleased your TN Amount last time.")
79- else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(fromBase58String(ChecktxnId))]
81+ else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(toBytes(ChecktxnId))]
8082 }
8183
8284
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USTNAssetID = base58'FsxKknTc7bt27AFipyH42NGYojpgXA3KwAfXSNZJkBfz'
55
66 let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
77
88 let IssueUSTNFeeAddress = addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp')
99
1010 let minimumLeasing = 10000000
1111
1212 let txns = match getInteger(this, "Totaltxns") {
1313 case a: Int =>
1414 a
1515 case _ =>
1616 0
1717 }
1818
1919 let totaltxns = (txns + 1)
2020
2121 @Callable(i)
2222 func LeasingTN () = {
2323 let pmt = if ((size(i.payments) == 1))
2424 then i.payments[0]
2525 else throw("No Payments Attached Please Attach TN Asset Only.")
2626 let currentKey = toBase58String(i.caller.bytes)
2727 let txnId = toBase58String(i.transactionId)
2828 let NewLeasingAmount = pmt.amount
29+ let Leasing = Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount)
30+ let LeaseId = calculateLeaseId(Leasing)
2931 let leasetxns = match getInteger(this, "Total_Leasers") {
3032 case b: Int =>
3133 b
3234 case _ =>
3335 0
3436 }
3537 let totalleasetxns = (leasetxns + 1)
3638 let PreviousLeasedTN = match getInteger(this, "Total_Leased_TN:") {
3739 case a: Int =>
3840 a
3941 case _ =>
4042 0
4143 }
4244 let TotalLeasedTN = (PreviousLeasedTN + NewLeasingAmount)
4345 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
4446 case a: Int =>
4547 a
4648 case _ =>
4749 0
4850 }
4951 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
5052 if (isDefined(pmt.assetId))
5153 then throw("Incorrect asset attached, please attach TN.")
5254 else if ((minimumLeasing > pmt.amount))
5355 then throw("Please Attach minimum 1000 TN To Start Leasing.")
5456 else if ((UserNoOfDeposits == 1))
5557 then throw("You Already Have an Active Leasing, Please Wait until Mature.")
56- else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), StringEntry(("Lease_Txn_id_" + currentKey), txnId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount)]
58+ else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), BinaryEntry(("Lease_Txn_id_" + currentKey), LeaseId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Leasing]
5759 }
5860
5961
6062
6163 @Callable(i)
6264 func UnLeasingTN () = {
6365 let pmt = if ((size(i.payments) == 1))
6466 then i.payments[0]
6567 else throw("No Payments Attached Please Attach TN Asset Only.")
6668 let currentKey = toBase58String(i.caller.bytes)
6769 let ClaimFee = 100000000
6870 let checkdepositvalue = getIntegerValue(this, ("No_Of_Deposits_" + currentKey))
6971 let CheckLeasingHeight = getIntegerValue(this, ("Leasing_height_Of_" + currentKey))
7072 let Checktotalleasetxns = getIntegerValue(this, "ActiveLeasers")
7173 let CheckTotalLeasedTN = getIntegerValue(this, "Total_Leased_TN:")
7274 let CheckLeasingAmount = getIntegerValue(this, ("Lease_Amount_" + currentKey))
7375 let UpdatedLeasedTN = (CheckTotalLeasedTN - CheckLeasingAmount)
7476 let ChecktxnId = getStringValue(this, ("Lease_Txn_id_" + currentKey))
7577 if ((pmt.amount != ClaimFee))
7678 then throw((("Please Attach Exact " + toString(fraction(ClaimFee, 1, 100000000))) + " TN As a Claim Fee."))
7779 else if ((checkdepositvalue == 0))
7880 then throw("You Have Already Unleased your TN Amount last time.")
79- else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(fromBase58String(ChecktxnId))]
81+ else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(toBytes(ChecktxnId))]
8082 }
8183
8284
8385
8486 @Callable(i)
8587 func IssueUSTN () = {
8688 let pmt = if ((size(i.payments) == 1))
8789 then i.payments[0]
8890 else throw((("No Payments Attached Please Attach " + toBase58String(USDTAssetID)) + " Asset Only."))
8991 let currentKey = toBase58String(i.caller.bytes)
9092 let NewUSTNToUser = pmt.amount
9193 let PreviousIssuedUSTN = match getInteger(this, "Total_Issued_USTN:") {
9294 case a: Int =>
9395 a
9496 case _ =>
9597 0
9698 }
9799 let TotalIssuedUSTN = (PreviousIssuedUSTN + NewUSTNToUser)
98100 let PreviousUSTNReserveValue = match getInteger(this, "Total_USTN_Reserve_In_USDT:") {
99101 case a: Int =>
100102 a
101103 case _ =>
102104 0
103105 }
104106 let USTNReserveValue = (PreviousUSTNReserveValue + pmt.amount)
105107 if ((pmt.assetId != USDTAssetID))
106108 then throw("Incorrect asset attached, please attach USDT.")
107109 else if ((10000 > pmt.amount))
108110 then throw("Please Attach minimum 0.01 USDT To Issue USTN Asset.")
109111 else [IntegerEntry("Total_Issued_USTN:", TotalIssuedUSTN), IntegerEntry("Total_USTN_Reserve_In_USDT:", USTNReserveValue), IntegerEntry("Totaltxns", totaltxns), StringEntry("message", "<h1>USTN Issued Successfully!</h1><br>"), Reissue(USTNAssetID, NewUSTNToUser, true), ScriptTransfer(i.caller, NewUSTNToUser, USTNAssetID)]
110112 }
111113
112114
113115
114116 @Callable(i)
115117 func Liquidate () = {
116118 let currentKey = toBase58String(i.callerPublicKey)
117119 let pmt = if ((size(i.payments) == 1))
118120 then i.payments[0]
119121 else throw((("No Payments Attached Please Attach " + toBase58String(USTNAssetID)) + " Asset Only."))
120122 let PreviousIssuedUSTN = getIntegerValue(this, "Total_Issued_USTN:")
121123 let PreviousBurnedUSTN = match getInteger(this, "Total_Burned_USTN:") {
122124 case a: Int =>
123125 a
124126 case _ =>
125127 0
126128 }
127129 let TotalBurnedUSTN = (PreviousBurnedUSTN + pmt.amount)
128130 let TotalIssuedUSTN = (PreviousIssuedUSTN - pmt.amount)
129131 let PreviousUSTNReserveValue = getIntegerValue(this, "Total_USTN_Reserve_In_USDT:")
130132 let calculateburnvalue = pmt.amount
131133 let USTNReserveValue = (PreviousUSTNReserveValue - calculateburnvalue)
132134 let fee = match getInteger(this, "Total_Fee_Collected") {
133135 case a: Int =>
134136 a
135137 case _ =>
136138 0
137139 }
138140 let FeesCharged = fraction(calculateburnvalue, 1, 100)
139141 let totalfee = (fee + FeesCharged)
140142 if ((pmt.assetId != USTNAssetID))
141143 then throw((("Kindly Deposit Only " + toBase58String(USTNAssetID)) + " (USTN)."))
142144 else if ((10000 > pmt.amount))
143145 then throw("Attach Amount must be greater than or equal to 0.01 USTN.")
144146 else [Burn(USTNAssetID, pmt.amount), IntegerEntry("Totaltxns", totaltxns), IntegerEntry("Total_Issued_USTN:", TotalIssuedUSTN), IntegerEntry("Total_Fee_Collected", totalfee), IntegerEntry("Total_Burned_USTN:", TotalBurnedUSTN), IntegerEntry("Total_USTN_Reserve_In_USDT:", USTNReserveValue), StringEntry("message", "<h1>USTN Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, (calculateburnvalue - FeesCharged), USDTAssetID), ScriptTransfer(IssueUSTNFeeAddress, FeesCharged, USDTAssetID)]
145147 }
146148
147149
148150 @Verifier(tx)
149151 func verify () = match tx {
150152 case _ =>
151153 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
152154 }
153155

github/deemru/w8io/169f3d6 
32.58 ms