tx · 4s2sm2cixHoysEJXKBa1WKjoDKsd6SDZ2KXfsrSSbeV2

3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj:  -0.01400000 Waves

2021.10.06 11:50 [1734146] smart account 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj > SELF 0.00000000 Waves

{ "type": 13, "id": "4s2sm2cixHoysEJXKBa1WKjoDKsd6SDZ2KXfsrSSbeV2", "fee": 1400000, "feeAssetId": null, "timestamp": 1633510265425, "version": 2, "chainId": 84, "sender": "3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj", "senderPublicKey": "C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV", "proofs": [ "2H9Sw8twnjnMZ8Fbx8RWxeUpVZE7PssuXBsuFsE4iaAL95KkjXyAHh2fwRTQR6UCxgQZPrtyntCjsaK9ocXzfGeE" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASAwoBARIAEgAAAAAFAAAAAApBNEFBc3NldElEAQAAACD+xBrh3u/naSJ9Eujvd+1d33EPvCCH0lpodP3xbghYNwAAAAALVVNEVEFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAAtDT0RFQXNzZXRJRAEAAAAg8mQC/+bSpG0I80ENyb26G7RGotUF/sKl0pxXurb8+V4AAAAACkZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAUAAAABaQEAAAAISXNzdWVBNEEAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALUHJpY2VQZXJBNEEJAQAAAB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AAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALVVNEVEFzc2V0SUQJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAGUtpbmRseSBEZXBvc2l0IE9ubHkgVVNEVCAJAAJYAAAAAQUAAAALVVNEVEFzc2V0SUQCAAAACSBBc3NldElELgMJAABmAAAAAgAAAAAAAA9CQAgFAAAAA3BtdAAAAAZhbW91bnQJAAACAAAAAQIAAAAqQXR0YWNoIG1pbmltdW0gMSBVU0RUIGF0bGVhc3QgRm9yIFBheW1lbnQuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxVU0RUX0JhbGFuY2UFAAAACm5ld1VTRFRiYWwFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V53Nm8mg==", "height": 1734146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CWM3ehq4Cpzi7xcbnZiR4QWLfv1yx8vkFkK3LCXiWNeA Next: 3KonzE93WUNUVQeB6HmMp12xVe7EvabhpajgmXbrAEtN Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook'
55
66 let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
77
88 let c = base58'HKC7bagwpSpj1MpKhsevvwcnUuYgk1v7CdPTMnU29j9w'
99
1010 let d = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1111
1212 let e = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
1313
1414 @Callable(f)
1515 func IssueA4A () = {
1616 let g = value(f.payments[0])
1717 let h = toBase58String(f.caller.bytes)
1818 let i = getIntegerValue(this, "A4A/TN")
1919 let j = getIntegerValue(this, "A4AHardCap")
2020 let k = fraction(100000, g.amount, i)
2121 let l = getIntegerValue(this, "Total_Issued_A4A:")
2222 let m = (l + k)
2323 let n = (j - m)
2424 let o = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
2525 let p = (o + g.amount)
2626 let q = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
2727 let r = fraction(100000, p, m)
2828 if (isDefined(g.assetId))
2929 then throw("Incorrect asset attached, please attach TN.")
3030 else if ((5000000 > g.amount))
3131 then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.")
3232 else if ((m > j))
3333 then throw((((((("A4A Minting is about to reach the Hard Cap of " + toString(j)) + "/10^8 A4A. Please Reduce your Minting Order by ") + toString(n)) + " or put ") + toString((j - l))) + "/10^8"))
3434 else [IntegerEntry("Total_Issued_A4A:", m), IntegerEntry("Balance_Minting_A4A:", n), IntegerEntry("Total_A4A_Reserve_In_TN:", p), IntegerEntry("A4A_Backup_Value_In_TN:", r), StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), Reissue(a, k, true), ScriptTransfer(f.caller, ((k * 990) / 1000), a), ScriptTransfer(addressFromPublicKey(d), ((k * 9) / 1000), a), ScriptTransfer(addressFromPublicKey(e), ((k * 1) / 1000), a)]
3535 }
3636
3737
3838
3939 @Callable(f)
4040 func Liquidate () = {
4141 let h = toBase58String(f.callerPublicKey)
4242 let g = value(f.payments[0])
4343 let l = getIntegerValue(this, "Total_Issued_A4A:")
4444 let s = getIntegerValue(this, "Total_Burned_A4A:")
4545 let m = (l - g.amount)
4646 let t = (s + g.amount)
4747 let o = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
4848 let q = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
4949 let u = fraction(q, g.amount, 100000)
5050 let p = (o - u)
5151 let r = fraction(100000, p, m)
5252 if ((g.assetId != a))
5353 then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).")
5454 else if ((100000 > g.amount))
5555 then throw("Attach Amount must be greater than 0.001 A4A.")
5656 else [Burn(a, g.amount), IntegerEntry("Total_Issued_A4A:", m), IntegerEntry("Total_Burned_A4A:", t), IntegerEntry("Total_A4A_Reserve_In_TN:", p), IntegerEntry("A4A_Backup_Value_In_TN:", r), StringEntry("message", "<h1>A4A Liquidated Successfully!</h1><br>"), ScriptTransfer(f.caller, ((u * 990) / 1000), unit), ScriptTransfer(addressFromPublicKey(d), ((u * 9) / 1000), unit), ScriptTransfer(addressFromPublicKey(e), ((u * 1) / 1000), unit)]
5757 }
5858
5959
6060
6161 @Callable(f)
6262 func Deposit (v) = {
6363 let g = if ((size(f.payments) == 1))
6464 then f.payments[0]
6565 else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].")
6666 let h = toBase58String(f.caller.bytes)
6767 let w = 90
6868 let x = "LOCKED"
6969 let y = 99999999999
7070 let z = 599999999999
7171 let A = 1199999999999
7272 let B = 1200000000000
7373 let C = 1440
7474 let D = (C * v)
7575 let E = (height + D)
7676 let F = 36000
7777 let G = fraction(fraction((F * 2), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP))
7878 let H = fraction(fraction((F * 4), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP))
7979 let I = fraction(fraction((F * 8), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP))
8080 let J = {
8181 let K = getInteger(this, "Staked_Amount")
8282 if ($isInstanceOf(K, "Int"))
8383 then {
8484 let L = K
8585 L
8686 }
8787 else 0
8888 }
8989 let M = (J + g.amount)
9090 let N = {
9191 let K = getInteger(this, ("Deposit_Amount_Of_" + h))
9292 if ($isInstanceOf(K, "Int"))
9393 then {
9494 let L = K
9595 L
9696 }
9797 else 0
9898 }
9999 let O = (N + g.amount)
100100 if ((g.assetId != a))
101101 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only."))
102102 else if ((6 >= v))
103103 then throw("Choose Locking days in between 7 to 90.")
104104 else if ((v > w))
105105 then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
106106 else if ((33300000000 > g.amount))
107107 then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.")
108108 else if ((y >= g.amount))
109109 then [StringEntry(("Tier_Of_" + h), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + h), height), IntegerEntry("Staked_Amount", M), IntegerEntry(("Deposit_Amount_Of_" + h), O), IntegerEntry(("Total_Lock_Blocks_Of_" + h), E), StringEntry(("Lock_Status_Of_" + h), x), IntegerEntry(("Rewards_Of_" + h), fraction(fraction(F, g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP)))]
110110 else if ((z >= g.amount))
111111 then [StringEntry(("Tier_Of_" + h), "SILVER"), IntegerEntry(("Deposit_height_Of_" + h), height), IntegerEntry("Staked_Amount", M), IntegerEntry(("Deposit_Amount_Of_" + h), O), IntegerEntry(("Total_Lock_Blocks_Of_" + h), E), StringEntry(("Lock_Status_Of_" + h), x), IntegerEntry(("Rewards_Of_" + h), G)]
112112 else if ((A >= g.amount))
113113 then [StringEntry(("Tier_Of_" + h), "GOLD"), IntegerEntry(("Deposit_height_Of_" + h), height), IntegerEntry("Staked_Amount", M), IntegerEntry(("Deposit_Amount_Of_" + h), O), IntegerEntry(("Total_Lock_Blocks_Of_" + h), E), StringEntry(("Lock_Status_Of_" + h), x), IntegerEntry(("Rewards_Of_" + h), H)]
114114 else if ((B == g.amount))
115115 then [StringEntry(("Tier_Of_" + h), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + h), height), IntegerEntry("Staked_Amount", M), IntegerEntry(("Deposit_Amount_Of_" + h), O), IntegerEntry(("Total_Lock_Blocks_Of_" + h), E), StringEntry(("Lock_Status_Of_" + h), x), IntegerEntry(("Rewards_Of_" + h), I)]
116116 else throw("Please Choose a Range Between 333-12000.")
117117 }
118118
119119
120120
121121 @Callable(f)
122122 func Withdraw () = {
123123 let h = toBase58String(f.caller.bytes)
124124 let P = getIntegerValue(this, ("Deposit_Amount_Of_" + h))
125125 let Q = getIntegerValue(this, "Staked_Amount")
126126 let R = (Q - P)
127127 let S = (getIntegerValue(this, ("Total_Lock_Blocks_Of_" + h)) - getIntegerValue(this, ("Deposit_height_Of_" + h)))
128128 let T = getIntegerValue(this, "Total_USDT_Claimed:")
129129 let U = (T + getIntegerValue(this, ("Rewards_Of_" + h)))
130130 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + h)) > height))
131131 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + h)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + h)) - height))))
132132 else if ((P == 0))
133133 then throw("You Have Already Withdraw your Amount.")
134134 else if ((S == 129600))
135135 then [ScriptTransfer(f.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + h)), a), ScriptTransfer(f.caller, getIntegerValue(this, ("Rewards_Of_" + h)), b), ScriptTransfer(f.caller, (getIntegerValue(this, ("Deposit_Amount_Of_" + h)) * (3 / 1000)), c), StringEntry(("Tier_Of_" + h), "NONE"), IntegerEntry(("Deposit_height_Of_" + h), 0), IntegerEntry("Staked_Amount", R), IntegerEntry(("Deposit_Amount_Of_" + h), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + h), 0), StringEntry(("Lock_Status_Of_" + h), "UNLOCK"), IntegerEntry(("Rewards_Of_" + h), 0), IntegerEntry("Total_USDT_Claimed:", U)]
136136 else [ScriptTransfer(f.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + h)), a), ScriptTransfer(f.caller, getIntegerValue(this, ("Rewards_Of_" + h)), b), StringEntry(("Tier_Of_" + h), "NONE"), IntegerEntry(("Deposit_height_Of_" + h), 0), IntegerEntry("Staked_Amount", R), IntegerEntry(("Deposit_Amount_Of_" + h), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + h), 0), StringEntry(("Lock_Status_Of_" + h), "UNLOCK"), IntegerEntry(("Rewards_Of_" + h), 0), IntegerEntry("Total_USDT_Claimed:", U)]
137137 }
138138
139139
140140
141141 @Callable(f)
142142 func DepositUSDT () = {
143143 let g = if ((size(f.payments) == 1))
144144 then f.payments[0]
145145 else throw("No payment attached, Please Attach USDT Token in payment[1].")
146146 let V = toBase58String(f.caller.bytes)
147147 let W = getStringValue(this, "Funding_Address")
148148 let X = getIntegerValue(this, "USDT_Balance")
149149 let Y = {
150150 let K = getInteger(this, "USDT_Balance")
151151 if ($isInstanceOf(K, "Int"))
152152 then {
153153 let L = K
154154 L
155155 }
156156 else 0
157157 }
158158 let Z = (Y + g.amount)
159159 if ((W != V))
160160 then throw((("I know You are not An Admin. Only " + W) + " has rights to add USDT Funds."))
161161 else if ((g.assetId != b))
162162 then throw((("Kindly Deposit Only USDT " + toBase58String(b)) + " AssetID."))
163163 else if ((1000000 > g.amount))
164164 then throw("Attach minimum 1 USDT atleast For Payment.")
165165 else [IntegerEntry("USDT_Balance", Z)]
166166 }
167167
168168
169169 @Verifier(aa)
170170 func ab () = sigVerify(aa.bodyBytes, aa.proofs[0], aa.senderPublicKey)
171171

github/deemru/w8io/169f3d6 
71.67 ms