tx · AZBEDW4YRomtkjWCphysi6Gdj4PFvpxiM68MyUqeREBM

3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj:  -0.01400000 Waves

2021.09.25 21:37 [1718849] smart account 3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj > SELF 0.00000000 Waves

{ "type": 13, "id": "AZBEDW4YRomtkjWCphysi6Gdj4PFvpxiM68MyUqeREBM", "fee": 1400000, "feeAssetId": null, "timestamp": 1632595089527, "version": 2, "chainId": 84, "sender": "3NARdCrmQCEs9RNtwCSRc6JCoThQGyXjrAj", "senderPublicKey": "C246qxhuyo9DBk1pjMzEQSVAWmiqYupG2swGkxTeAvLV", "proofs": [ "2cBV3VjLHVpEFVotqvssLttZjPfnNN3qk2XCQ6YEAAEQ3jncPTkRfGTQTxLc9Y5WU3HSMVJMh5igKXQ1MGGpD3nc" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASAwoBARIAEgAAAAACAAAAAApBNEFBc3NldElEAQAAACD+xBrh3u/naSJ9Eujvd+1d33EPvCCH0lpodP3xbghYNwAAAAALVVNEVEFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAABQAAAAFpAQAAAAhJc3N1ZUE0QQAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAtQcmljZVBlckE0QQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAGQTRBL1ROBAAAAAxOZXdBNEFUb1VzZXIJAABrAAAAAwAAAAAAAAGGoAgFAAAAA3BtdAAAAAZhbW91bnQFAAAAC1ByaWNlUGVyQTRBBAAAABFQcmV2aW91c0lzc3VlZEE0QQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgU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0IE9ubHkgVVNEVCAJAAJYAAAAAQUAAAALVVNEVEFzc2V0SUQCAAAACSBBc3NldElELgMJAABmAAAAAgAAAAAAAA9CQAgFAAAAA3BtdAAAAAZhbW91bnQJAAACAAAAAQIAAAAqQXR0YWNoIG1pbmltdW0gMSBVU0RUIGF0bGVhc3QgRm9yIFBheW1lbnQuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxVU0RUX0JhbGFuY2UFAAAACm5ld1VTRFRiYWwFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5c5KdlA==", "height": 1718849, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5XPxCVjSDJVEHPcGT4tr45XgFyTBE9Koizj3XjxopDD2 Next: CckP8cH8gouUf5rXHetp8ZUBZkhEUoWmBhpAbWRaeqfy Diff:
OldNewDifferences
6969 let D = fraction(fraction((B * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP))
7070 let E = fraction(fraction((B * 8), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP))
7171 let F = {
72+ let G = getInteger(this, "Staked_Amount")
73+ if ($isInstanceOf(G, "Int"))
74+ then {
75+ let H = G
76+ H
77+ }
78+ else 0
79+ }
80+ let I = (F + d.amount)
81+ let J = {
7282 let G = getInteger(this, ("Deposit_Amount_Of_" + e))
7383 if ($isInstanceOf(G, "Int"))
7484 then {
7787 }
7888 else 0
7989 }
80- let I = (F + d.amount)
90+ let K = (J + d.amount)
8191 if ((d.assetId != a))
8292 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only."))
8393 else if ((6 >= r))
8797 else if ((33300000000 > d.amount))
8898 then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.")
8999 else if ((u >= d.amount))
90- then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)))]
100+ then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)))]
91101 else if ((v >= d.amount))
92- then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)]
102+ then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)]
93103 else if ((w >= d.amount))
94- then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)]
104+ then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)]
95105 else if ((x == d.amount))
96- then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)]
106+ then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)]
97107 else throw("Please Choose a Range Between 333-12000.")
98108 }
99109
102112 @Callable(c)
103113 func Withdraw () = {
104114 let e = toBase58String(c.caller.bytes)
105- let J = getIntegerValue(this, ("Deposit_Amount_Of_" + e))
106- let K = getIntegerValue(this, "Total_USDT_Claimed:")
107- let L = (K + getIntegerValue(this, ("Rewards_Of_" + e)))
115+ let L = getIntegerValue(this, ("Deposit_Amount_Of_" + e))
116+ let M = getIntegerValue(this, "Staked_Amount")
117+ let N = (M - L)
118+ let O = getIntegerValue(this, "Total_USDT_Claimed:")
119+ let P = (O + getIntegerValue(this, ("Rewards_Of_" + e)))
108120 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) > height))
109121 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + e)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) - height))))
110- else if ((J == 0))
122+ else if ((L == 0))
111123 then throw("You Have Already Withdraw your Amount.")
112- else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", L)]
124+ else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry("Staked_Amount", N), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", P)]
113125 }
114126
115127
119131 let d = if ((size(c.payments) == 1))
120132 then c.payments[0]
121133 else throw("No payment attached, Please Attach USDT Token in payment[1].")
122- let M = toBase58String(c.caller.bytes)
123- let N = getStringValue(this, "Funding_Address")
124- let O = getIntegerValue(this, "USDT_Balance")
125- let P = {
134+ let Q = toBase58String(c.caller.bytes)
135+ let R = getStringValue(this, "Funding_Address")
136+ let S = getIntegerValue(this, "USDT_Balance")
137+ let T = {
126138 let G = getInteger(this, "USDT_Balance")
127139 if ($isInstanceOf(G, "Int"))
128140 then {
131143 }
132144 else 0
133145 }
134- let Q = (P + d.amount)
135- if ((N != M))
136- then throw((("I know You are not An Admin. Only " + N) + " has rights to add USDT Funds."))
146+ let U = (T + d.amount)
147+ if ((R != Q))
148+ then throw((("I know You are not An Admin. Only " + R) + " has rights to add USDT Funds."))
137149 else if ((d.assetId != b))
138150 then throw((("Kindly Deposit Only USDT " + toBase58String(b)) + " AssetID."))
139151 else if ((1000000 > d.amount))
140- then throw("Attach minimum 1$ atleast For Payment.")
141- else [IntegerEntry("USDT_Balance", Q)]
152+ then throw("Attach minimum 1 USDT atleast For Payment.")
153+ else [IntegerEntry("USDT_Balance", U)]
142154 }
143155
144156
145-@Verifier(R)
146-func S () = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey)
157+@Verifier(V)
158+func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey)
147159
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 @Callable(c)
99 func IssueA4A () = {
1010 let d = value(c.payments[0])
1111 let e = toBase58String(c.caller.bytes)
1212 let f = getIntegerValue(this, "A4A/TN")
1313 let g = fraction(100000, d.amount, f)
1414 let h = getIntegerValue(this, "Total_Issued_A4A:")
1515 let i = (h + g)
1616 let j = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
1717 let k = (j + d.amount)
1818 let l = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
1919 let m = fraction(100000, k, i)
2020 let n = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
2121 if (isDefined(d.assetId))
2222 then throw("Incorrect asset attached, please attach TN.")
2323 else if ((5000000 > d.amount))
2424 then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.")
2525 else [IntegerEntry("Total_Issued_A4A:", i), IntegerEntry("Total_A4A_Reserve_In_TN:", k), IntegerEntry("A4A_Backup_Value_In_TN:", m), StringEntry("message", "<h1>A4A Issued Successfully!</h1><br>"), Reissue(a, g, true), ScriptTransfer(c.caller, ((g * 99) / 100), a), ScriptTransfer(addressFromPublicKey(n), ((g * 1) / 100), a)]
2626 }
2727
2828
2929
3030 @Callable(c)
3131 func Liquidate () = {
3232 let e = toBase58String(c.callerPublicKey)
3333 let d = value(c.payments[0])
3434 let h = getIntegerValue(this, "Total_Issued_A4A:")
3535 let o = getIntegerValue(this, "Total_Burned_A4A:")
3636 let i = (h - d.amount)
3737 let p = (o + d.amount)
3838 let j = getIntegerValue(this, "Total_A4A_Reserve_In_TN:")
3939 let l = getIntegerValue(this, "A4A_Backup_Value_In_TN:")
4040 let q = fraction(l, d.amount, 100000)
4141 let k = (j - q)
4242 let m = fraction(100000, k, i)
4343 if ((d.assetId != a))
4444 then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).")
4545 else if ((100000 > d.amount))
4646 then throw("Attach Amount must be greater than 0.001 A4A.")
4747 else [Burn(a, d.amount), IntegerEntry("Total_Issued_A4A:", i), IntegerEntry("Total_Burned_A4A:", p), IntegerEntry("Total_A4A_Reserve_In_TN:", k), IntegerEntry("A4A_Backup_Value_In_TN:", m), StringEntry("message", "<h1>A4A Liquidated Successfully!</h1><br>"), ScriptTransfer(c.caller, q, unit)]
4848 }
4949
5050
5151
5252 @Callable(c)
5353 func Deposit (r) = {
5454 let d = if ((size(c.payments) == 1))
5555 then c.payments[0]
5656 else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].")
5757 let e = toBase58String(c.caller.bytes)
5858 let s = 90
5959 let t = "LOCKED"
6060 let u = 99999999999
6161 let v = 599999999999
6262 let w = 1199999999999
6363 let x = 1200000000000
6464 let y = 1440
6565 let z = (y * r)
6666 let A = (height + z)
6767 let B = 36000
6868 let C = fraction(fraction((B * 2), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP))
6969 let D = fraction(fraction((B * 4), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP))
7070 let E = fraction(fraction((B * 8), d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP))
7171 let F = {
72+ let G = getInteger(this, "Staked_Amount")
73+ if ($isInstanceOf(G, "Int"))
74+ then {
75+ let H = G
76+ H
77+ }
78+ else 0
79+ }
80+ let I = (F + d.amount)
81+ let J = {
7282 let G = getInteger(this, ("Deposit_Amount_Of_" + e))
7383 if ($isInstanceOf(G, "Int"))
7484 then {
7585 let H = G
7686 H
7787 }
7888 else 0
7989 }
80- let I = (F + d.amount)
90+ let K = (J + d.amount)
8191 if ((d.assetId != a))
8292 then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only."))
8393 else if ((6 >= r))
8494 then throw("Choose Locking days in between 7 to 90.")
8595 else if ((r > s))
8696 then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.")
8797 else if ((33300000000 > d.amount))
8898 then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.")
8999 else if ((u >= d.amount))
90- then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)))]
100+ then [StringEntry(("Tier_Of_" + e), "BRONZE"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), fraction(fraction(B, d.amount, pow(10, 0, 8, 0, 0, UP)), z, pow(10, 0, 6, 0, 0, UP)))]
91101 else if ((v >= d.amount))
92- then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)]
102+ then [StringEntry(("Tier_Of_" + e), "SILVER"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), C)]
93103 else if ((w >= d.amount))
94- then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)]
104+ then [StringEntry(("Tier_Of_" + e), "GOLD"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), D)]
95105 else if ((x == d.amount))
96- then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry(("Deposit_Amount_Of_" + e), I), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)]
106+ then [StringEntry(("Tier_Of_" + e), "DIAMOND"), IntegerEntry(("Deposit_height_Of_" + e), height), IntegerEntry("Staked_Amount", I), IntegerEntry(("Deposit_Amount_Of_" + e), K), IntegerEntry(("Total_Lock_Blocks_Of_" + e), A), StringEntry(("Lock_Status_Of_" + e), t), IntegerEntry(("Rewards_Of_" + e), E)]
97107 else throw("Please Choose a Range Between 333-12000.")
98108 }
99109
100110
101111
102112 @Callable(c)
103113 func Withdraw () = {
104114 let e = toBase58String(c.caller.bytes)
105- let J = getIntegerValue(this, ("Deposit_Amount_Of_" + e))
106- let K = getIntegerValue(this, "Total_USDT_Claimed:")
107- let L = (K + getIntegerValue(this, ("Rewards_Of_" + e)))
115+ let L = getIntegerValue(this, ("Deposit_Amount_Of_" + e))
116+ let M = getIntegerValue(this, "Staked_Amount")
117+ let N = (M - L)
118+ let O = getIntegerValue(this, "Total_USDT_Claimed:")
119+ let P = (O + getIntegerValue(this, ("Rewards_Of_" + e)))
108120 if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) > height))
109121 then throw(((("Your " + toString(getIntegerValue(this, ("Deposit_Amount_Of_" + e)))) + " A4A are Under Lock. Consider last 8 digits as value after Decimals. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + e)) - height))))
110- else if ((J == 0))
122+ else if ((L == 0))
111123 then throw("You Have Already Withdraw your Amount.")
112- else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", L)]
124+ else [ScriptTransfer(c.caller, getIntegerValue(this, ("Deposit_Amount_Of_" + e)), a), ScriptTransfer(c.caller, getIntegerValue(this, ("Rewards_Of_" + e)), b), IntegerEntry(("Deposit_height_Of_" + e), 0), IntegerEntry("Staked_Amount", N), IntegerEntry(("Deposit_Amount_Of_" + e), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + e), 0), StringEntry(("Lock_Status_Of_" + e), "UNLOCK"), IntegerEntry(("Rewards_Of_" + e), 0), IntegerEntry("Total_USDT_Claimed:", P)]
113125 }
114126
115127
116128
117129 @Callable(c)
118130 func DepositUSDT () = {
119131 let d = if ((size(c.payments) == 1))
120132 then c.payments[0]
121133 else throw("No payment attached, Please Attach USDT Token in payment[1].")
122- let M = toBase58String(c.caller.bytes)
123- let N = getStringValue(this, "Funding_Address")
124- let O = getIntegerValue(this, "USDT_Balance")
125- let P = {
134+ let Q = toBase58String(c.caller.bytes)
135+ let R = getStringValue(this, "Funding_Address")
136+ let S = getIntegerValue(this, "USDT_Balance")
137+ let T = {
126138 let G = getInteger(this, "USDT_Balance")
127139 if ($isInstanceOf(G, "Int"))
128140 then {
129141 let H = G
130142 H
131143 }
132144 else 0
133145 }
134- let Q = (P + d.amount)
135- if ((N != M))
136- then throw((("I know You are not An Admin. Only " + N) + " has rights to add USDT Funds."))
146+ let U = (T + d.amount)
147+ if ((R != Q))
148+ then throw((("I know You are not An Admin. Only " + R) + " has rights to add USDT Funds."))
137149 else if ((d.assetId != b))
138150 then throw((("Kindly Deposit Only USDT " + toBase58String(b)) + " AssetID."))
139151 else if ((1000000 > d.amount))
140- then throw("Attach minimum 1$ atleast For Payment.")
141- else [IntegerEntry("USDT_Balance", Q)]
152+ then throw("Attach minimum 1 USDT atleast For Payment.")
153+ else [IntegerEntry("USDT_Balance", U)]
142154 }
143155
144156
145-@Verifier(R)
146-func S () = sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey)
157+@Verifier(V)
158+func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey)
147159

github/deemru/w8io/169f3d6 
74.29 ms