tx · 6Qc54s7dU4misZiGm5unx7obEsYoVGoWK7oJ6ZyoCnN8

3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj:  -0.01400000 Waves

2021.10.06 00:35 [1733476] smart account 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj > SELF 0.00000000 Waves

{ "type": 13, "id": "6Qc54s7dU4misZiGm5unx7obEsYoVGoWK7oJ6ZyoCnN8", "fee": 1400000, "feeAssetId": null, "timestamp": 1633469730530, "version": 2, "chainId": 84, "sender": "3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj", "senderPublicKey": "C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV", "proofs": [ "5EoU9sjEUZi6YVwUYd5EU2Zt57VMrZjfV1YdwtJNr3UbR4wzEMYdWERWrTTKMbpF5VsjNpvJENvEDAzTLtJscNAG" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASAwoBARIAEgAAAAAEAAAAAApBNEFBc3NldElEAQAAACD+xBrh3u/naSJ9Eujvd+1d33EPvCCH0lpodP3xbghYNwAAAAALVVNEVEFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAApGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYxcjWeBsAAAAFAAAAAWkBAAAACElzc3VlQTRBAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAC1ByaWNlUGVyQTRBCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAZBNEEvVE4EAAAACkE0QUhhcmRD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AAAFhAAAAAAAAAAAABAAAAApuZXdVU0RUYmFsCQAAZAAAAAIFAAAACm9sZFVTRFRiYWwIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAgUAAAANVVNEVGRlcG9zaXRvcgUAAAANY2FsbGVyYWRkcmVzcwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAiSSBrbm93IFlvdSBhcmUgbm90IEFuIEFkbWluLiBPbmx5IAUAAAANVVNEVGRlcG9zaXRvcgIAAAAeIGhhcyByaWdodHMgdG8gYWRkIFVTRFQgRnVuZHMuAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtVU0RUQXNzZXRJRAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAZS2luZGx5IERlcG9zaXQgT25seSBVU0RUIAkAAlgAAAABBQAAAAtVU0RUQXNzZXRJRAIAAAAJIEFzc2V0SUQuAwkAAGYAAAACAAAAAAAAD0JACAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAACpBdHRhY2ggbWluaW11bSAxIFVTRFQgYXRsZWFzdCBGb3IgUGF5bWVudC4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADFVTRFRfQmFsYW5jZQUAAAAKbmV3VVNEVGJhbAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXklw52z", "height": 1733476, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7h1mYR9okfRziDWudzSsSCDbWzen2KS4Wq1EqKgLWBR8 Next: 3HhdYcLwsKPJqVKkuGtpW3dnyz6eXtTXF3CpRtA5ECMH Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let A4AAssetID = base58'8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g'
4+let A4AAssetID = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook'
55
6-let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
6+let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
77
88 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
99
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let A4AAssetID = base58'8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g'
4+let A4AAssetID = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook'
55
6-let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
6+let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
77
88 let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
99
1010 let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1111
1212 @Callable(i)
1313 func IssueA4A () = {
1414 let pmt = value(i.payments[0])
1515 let currentKey = toBase58String(i.caller.bytes)
1616 let PricePerA4A = getIntegerValue(this, "A4A/TN")
1717 let A4AHardCap = getIntegerValue(this, "A4AHardCap")
1818 let NewA4AToUser = fraction(100000, pmt.amount, PricePerA4A)
1919 let PreviousIssuedA4A = getIntegerValue(this, "Total_Issued_A4A:")
2020 let TotalIssuedA4A = (PreviousIssuedA4A + NewA4AToUser)
2121 let PendingMinting = (A4AHardCap - TotalIssuedA4A)
2222 let PreviousA4AReserveValue = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
2323 let A4AReserveValue = (PreviousA4AReserveValue + pmt.amount)
2424 let PreviousA4ABackupPrice = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
2525 let A4ABackupPrice = fraction(100000, A4AReserveValue, TotalIssuedA4A)
2626 if (isDefined(pmt.assetId))
2727 then throw("Incorrect asset attached, please attach TN.")
2828 else if ((5000000 > pmt.amount))
2929 then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.")
3030 else if ((TotalIssuedA4A > A4AHardCap))
3131 then throw((((((("A4A Minting is about to reach the Hard Cap of " + toString(A4AHardCap)) + "/10^8 A4A. Please Reduce your Minting Order by ") + toString(PendingMinting)) + " or put ") + toString((A4AHardCap - PreviousIssuedA4A))) + "/10^8"))
3232 else [IntegerEntry("Total_Issued_A4A:", TotalIssuedA4A), IntegerEntry("Balance_Minting_A4A:", PendingMinting), IntegerEntry("Total_A4A_Reserve_In_TN:", A4AReserveValue), IntegerEntry("A4A_Backup_Value_In_TN:", A4ABackupPrice), StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), Reissue(A4AAssetID, NewA4AToUser, true), ScriptTransfer(i.caller, ((NewA4AToUser * 990) / 1000), A4AAssetID), ScriptTransfer(addressFromPublicKey(FeeAddress), ((NewA4AToUser * 9) / 1000), A4AAssetID), ScriptTransfer(addressFromPublicKey(devAddress), ((NewA4AToUser * 1) / 1000), A4AAssetID)]
3333 }
3434
3535
3636
3737 @Callable(i)
3838 func Liquidate () = {
3939 let currentKey = toBase58String(i.callerPublicKey)
4040 let pmt = value(i.payments[0])
4141 let PreviousIssuedA4A = getIntegerValue(this, "Total_Issued_A4A:")
4242 let PreviousBurnedA4A = getIntegerValue(this, "Total_Burned_A4A:")
4343 let TotalIssuedA4A = (PreviousIssuedA4A - pmt.amount)
4444 let TotalBurnedA4A = (PreviousBurnedA4A + pmt.amount)
4545 let PreviousA4AReserveValue = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
4646 let PreviousA4ABackupPrice = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
4747 let calculateburnvalue = fraction(PreviousA4ABackupPrice, pmt.amount, 100000)
4848 let A4AReserveValue = (PreviousA4AReserveValue - calculateburnvalue)
4949 let A4ABackupPrice = fraction(100000, A4AReserveValue, TotalIssuedA4A)
5050 if ((pmt.assetId != A4AAssetID))
5151 then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).")
5252 else if ((100000 > pmt.amount))
5353 then throw("Attach Amount must be greater than 0.001 A4A.")
5454 else [Burn(A4AAssetID, pmt.amount), IntegerEntry("Total_Issued_A4A:", TotalIssuedA4A), IntegerEntry("Total_Burned_A4A:", TotalBurnedA4A), IntegerEntry("Total_A4A_Reserve_In_TN:", A4AReserveValue), IntegerEntry("A4A_Backup_Value_In_TN:", A4ABackupPrice), StringEntry("message", "<h1>A4A Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, ((calculateburnvalue * 990) / 1000), unit), ScriptTransfer(addressFromPublicKey(FeeAddress), ((calculateburnvalue * 9) / 1000), unit), ScriptTransfer(addressFromPublicKey(devAddress), ((calculateburnvalue * 1) / 1000), unit)]
5555 }
5656
5757
5858
5959 @Callable(i)
6060 func Deposit (days) = {
6161 let pmt = if ((size(i.payments) == 1))
6262 then i.payments[0]
6363 else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].")
6464 let currentKey = toBase58String(i.caller.bytes)
6565 let maximumlockdays = 90
6666 let lockstatus = "LOCKED"
6767 let ULBT = 99999999999
6868 let ULST = 599999999999
6969 let ULGT = 1199999999999
7070 let ULDT = 1200000000000
7171 let oneday = 1440
7272 let actualblocks = (oneday * days)
7373 let totallockblocks = (height + actualblocks)
7474 let Tier1 = 36000
7575 let Tier1rewards = fraction(fraction((Tier1 * 2), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP))
7676 let Tier2rewards = fraction(fraction((Tier1 * 4), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP))
7777 let Tier3rewards = fraction(fraction((Tier1 * 8), pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP))
7878 let StakedA4AAmount = match getInteger(this, "Staked_Amount") {
7979 case a: Int =>
8080 a
8181 case _ =>
8282 0
8383 }
8484 let newStakedA4AAmount = (StakedA4AAmount + pmt.amount)
8585 let currentA4AAmount = match getInteger(this, ("Deposit_Amount_Of_" + currentKey)) {
8686 case a: Int =>
8787 a
8888 case _ =>
8989 0
9090 }
9191 let newA4AAmount = (currentA4AAmount + pmt.amount)
9292 if ((pmt.assetId != A4AAssetID))
9393 then throw((("Incorrect asset attached, please attach " + toBase58String(A4AAssetID)) + " only."))
9494 else if ((6 >= days))
9595 then throw("Choose Locking days in between 7 to 90.")
9696 else if ((days > maximumlockdays))
9797 then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
9898 else if ((33300000000 > pmt.amount))
9999 then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.")
100100 else if ((ULBT >= pmt.amount))
101101 then [StringEntry(("Tier_Of_" + currentKey), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), fraction(fraction(Tier1, pmt.amount, pow(10, 0, 8, 0, 0, UP)), actualblocks, pow(10, 0, 6, 0, 0, UP)))]
102102 else if ((ULST >= pmt.amount))
103103 then [StringEntry(("Tier_Of_" + currentKey), "SILVER"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier1rewards)]
104104 else if ((ULGT >= pmt.amount))
105105 then [StringEntry(("Tier_Of_" + currentKey), "GOLD"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier2rewards)]
106106 else if ((ULDT == pmt.amount))
107107 then [StringEntry(("Tier_Of_" + currentKey), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + currentKey), height), IntegerEntry("Staked_Amount", newStakedA4AAmount), IntegerEntry(("Deposit_Amount_Of_" + currentKey), newA4AAmount), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), totallockblocks), StringEntry(("Lock_Status_Of_" + currentKey), lockstatus), IntegerEntry(("Rewards_Of_" + currentKey), Tier3rewards)]
108108 else throw("Please Choose a Range Between 333-12000.")
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func Withdraw () = {
115115 let currentKey = toBase58String(i.caller.bytes)
116116 let checkdepositvalue = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
117117 let checkstakedvalue = getIntegerValue(this, "Staked_Amount")
118118 let newstakedvalue = (checkstakedvalue - checkdepositvalue)
119119 let fetchRewardData = getIntegerValue(this, "Total_USDT_Claimed:")
120120 let totalrewardclaimed = (fetchRewardData + getIntegerValue(this, ("Rewards_Of_" + currentKey)))
121121 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) > height))
122122 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + currentKey)) - height))))
123123 else if ((checkdepositvalue == 0))
124124 then throw("You Have Already Withdraw your Amount.")
125125 else [ScriptTransfer(i.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey)), A4AAssetID), ScriptTransfer(i.caller, getIntegerValue(this, ("Rewards_Of_" + currentKey)), USDTAssetID), StringEntry(("Tier_Of_" + currentKey), "NONE"), IntegerEntry(("Deposit_height_Of_" + currentKey), 0), IntegerEntry("Staked_Amount", newstakedvalue), IntegerEntry(("Deposit_Amount_Of_" + currentKey), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + currentKey), 0), StringEntry(("Lock_Status_Of_" + currentKey), "UNLOCK"), IntegerEntry(("Rewards_Of_" + currentKey), 0), IntegerEntry("Total_USDT_Claimed:", totalrewardclaimed)]
126126 }
127127
128128
129129
130130 @Callable(i)
131131 func DepositUSDT () = {
132132 let pmt = if ((size(i.payments) == 1))
133133 then i.payments[0]
134134 else throw("No payment attached, Please Attach USDT Token in payment[1].")
135135 let calleraddress = toBase58String(i.caller.bytes)
136136 let USDTdepositor = getStringValue(this, "Funding_Address")
137137 let fetcholdUSDTbal = getIntegerValue(this, "USDT_Balance")
138138 let oldUSDTbal = match getInteger(this, "USDT_Balance") {
139139 case a: Int =>
140140 a
141141 case _ =>
142142 0
143143 }
144144 let newUSDTbal = (oldUSDTbal + pmt.amount)
145145 if ((USDTdepositor != calleraddress))
146146 then throw((("I know You are not An Admin. Only " + USDTdepositor) + " has rights to add USDT Funds."))
147147 else if ((pmt.assetId != USDTAssetID))
148148 then throw((("Kindly Deposit Only USDT " + toBase58String(USDTAssetID)) + " AssetID."))
149149 else if ((1000000 > pmt.amount))
150150 then throw("Attach minimum 1 USDT atleast For Payment.")
151151 else [IntegerEntry("USDT_Balance", newUSDTbal)]
152152 }
153153
154154
155155 @Verifier(tx)
156156 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
157157

github/deemru/w8io/169f3d6 
34.17 ms