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+IgAAAAAApkZXZBZGRyZXNzAQAAACBxPzntQa7CXqUpHrNREofekMqtlOVQyxdZBdjFyNZ4GwAAAAUAAAABaQEAAAAISXNzdWVBNEEAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAALUHJpY2VQZXJBNEEJAQAAABF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AIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAALVVNEVEFzc2V0SUQJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAGUtpbmRseSBEZXBvc2l0IE9ubHkgVVNEVCAJAAJYAAAAAQUAAAALVVNEVEFzc2V0SUQCAAAACSBBc3NldElELgMJAABmAAAAAgAAAAAAAA9CQAgFAAAAA3BtdAAAAAZhbW91bnQJAAACAAAAAQIAAAAqQXR0YWNoIG1pbmltdW0gMSBVU0RUIGF0bGVhc3QgRm9yIFBheW1lbnQuCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxVU0RUX0JhbGFuY2UFAAAACm5ld1VTRFRiYWwFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V53Nm8mg==", "height": 1734146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CWM3ehq4Cpzi7xcbnZiR4QWLfv1yx8vkFkK3LCXiWNeA Next: 3KonzE93WUNUVQeB6HmMp12xVe7EvabhpajgmXbrAEtN Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'J9VzWPfRSQyCbEv5oWpxLSihigbpbJsGBHJZV9Ct8ook' | |
5 | 5 | ||
6 | 6 | let b = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
7 | 7 | ||
8 | 8 | let c = base58'HKC7bagwpSpj1MpKhsevvwcnUuYgk1v7CdPTMnU29j9w' | |
9 | 9 | ||
10 | 10 | let d = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
11 | 11 | ||
12 | 12 | let e = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
13 | 13 | ||
14 | 14 | @Callable(f) | |
15 | 15 | func IssueA4A () = { | |
16 | 16 | let g = value(f.payments[0]) | |
17 | 17 | let h = toBase58String(f.caller.bytes) | |
18 | 18 | let i = getIntegerValue(this, "A4A/TN") | |
19 | 19 | let j = getIntegerValue(this, "A4AHardCap") | |
20 | 20 | let k = fraction(100000, g.amount, i) | |
21 | 21 | let l = getIntegerValue(this, "Total_Issued_A4A:") | |
22 | 22 | let m = (l + k) | |
23 | 23 | let n = (j - m) | |
24 | 24 | let o = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
25 | 25 | let p = (o + g.amount) | |
26 | 26 | let q = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
27 | 27 | let r = fraction(100000, p, m) | |
28 | 28 | if (isDefined(g.assetId)) | |
29 | 29 | then throw("Incorrect asset attached, please attach TN.") | |
30 | 30 | else if ((5000000 > g.amount)) | |
31 | 31 | then throw("Please Attach minimum 0.05 TN To Issue A4A Asset.") | |
32 | 32 | else if ((m > j)) | |
33 | 33 | 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")) | |
34 | 34 | 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)] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(f) | |
40 | 40 | func Liquidate () = { | |
41 | 41 | let h = toBase58String(f.callerPublicKey) | |
42 | 42 | let g = value(f.payments[0]) | |
43 | 43 | let l = getIntegerValue(this, "Total_Issued_A4A:") | |
44 | 44 | let s = getIntegerValue(this, "Total_Burned_A4A:") | |
45 | 45 | let m = (l - g.amount) | |
46 | 46 | let t = (s + g.amount) | |
47 | 47 | let o = getIntegerValue(this, "Total_A4A_Reserve_In_TN:") | |
48 | 48 | let q = getIntegerValue(this, "A4A_Backup_Value_In_TN:") | |
49 | 49 | let u = fraction(q, g.amount, 100000) | |
50 | 50 | let p = (o - u) | |
51 | 51 | let r = fraction(100000, p, m) | |
52 | 52 | if ((g.assetId != a)) | |
53 | 53 | then throw("Kindly Deposit Only 8hdsVCxPBVEmVUZyyX8Sd98Z9hU7Fny26W96sjKiTw8g (A4A).") | |
54 | 54 | else if ((100000 > g.amount)) | |
55 | 55 | then throw("Attach Amount must be greater than 0.001 A4A.") | |
56 | 56 | 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)] | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | ||
61 | 61 | @Callable(f) | |
62 | 62 | func Deposit (v) = { | |
63 | 63 | let g = if ((size(f.payments) == 1)) | |
64 | 64 | then f.payments[0] | |
65 | 65 | else throw("No payment attached, Please Attach A4A Token as per TIER in payment[1].") | |
66 | 66 | let h = toBase58String(f.caller.bytes) | |
67 | 67 | let w = 90 | |
68 | 68 | let x = "LOCKED" | |
69 | 69 | let y = 99999999999 | |
70 | 70 | let z = 599999999999 | |
71 | 71 | let A = 1199999999999 | |
72 | 72 | let B = 1200000000000 | |
73 | 73 | let C = 1440 | |
74 | 74 | let D = (C * v) | |
75 | 75 | let E = (height + D) | |
76 | 76 | let F = 36000 | |
77 | 77 | let G = fraction(fraction((F * 2), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP)) | |
78 | 78 | let H = fraction(fraction((F * 4), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP)) | |
79 | 79 | let I = fraction(fraction((F * 8), g.amount, pow(10, 0, 8, 0, 0, UP)), D, pow(10, 0, 6, 0, 0, UP)) | |
80 | 80 | let J = { | |
81 | 81 | let K = getInteger(this, "Staked_Amount") | |
82 | 82 | if ($isInstanceOf(K, "Int")) | |
83 | 83 | then { | |
84 | 84 | let L = K | |
85 | 85 | L | |
86 | 86 | } | |
87 | 87 | else 0 | |
88 | 88 | } | |
89 | 89 | let M = (J + g.amount) | |
90 | 90 | let N = { | |
91 | 91 | let K = getInteger(this, ("Deposit_Amount_Of_" + h)) | |
92 | 92 | if ($isInstanceOf(K, "Int")) | |
93 | 93 | then { | |
94 | 94 | let L = K | |
95 | 95 | L | |
96 | 96 | } | |
97 | 97 | else 0 | |
98 | 98 | } | |
99 | 99 | let O = (N + g.amount) | |
100 | 100 | if ((g.assetId != a)) | |
101 | 101 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) | |
102 | 102 | else if ((6 >= v)) | |
103 | 103 | then throw("Choose Locking days in between 7 to 90.") | |
104 | 104 | else if ((v > w)) | |
105 | 105 | then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.") | |
106 | 106 | else if ((33300000000 > g.amount)) | |
107 | 107 | then throw("Please Attach minimum 333 A4A To Achieve BRONZE TIER.") | |
108 | 108 | else if ((y >= g.amount)) | |
109 | 109 | 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)))] | |
110 | 110 | else if ((z >= g.amount)) | |
111 | 111 | 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)] | |
112 | 112 | else if ((A >= g.amount)) | |
113 | 113 | 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)] | |
114 | 114 | else if ((B == g.amount)) | |
115 | 115 | 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)] | |
116 | 116 | else throw("Please Choose a Range Between 333-12000.") | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(f) | |
122 | 122 | func Withdraw () = { | |
123 | 123 | let h = toBase58String(f.caller.bytes) | |
124 | 124 | let P = getIntegerValue(this, ("Deposit_Amount_Of_" + h)) | |
125 | 125 | let Q = getIntegerValue(this, "Staked_Amount") | |
126 | 126 | let R = (Q - P) | |
127 | 127 | let S = (getIntegerValue(this, ("Total_Lock_Blocks_Of_" + h)) - getIntegerValue(this, ("Deposit_height_Of_" + h))) | |
128 | 128 | let T = getIntegerValue(this, "Total_USDT_Claimed:") | |
129 | 129 | let U = (T + getIntegerValue(this, ("Rewards_Of_" + h))) | |
130 | 130 | if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + h)) > height)) | |
131 | 131 | 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)))) | |
132 | 132 | else if ((P == 0)) | |
133 | 133 | then throw("You Have Already Withdraw your Amount.") | |
134 | 134 | else if ((S == 129600)) | |
135 | 135 | 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)] | |
136 | 136 | 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)] | |
137 | 137 | } | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | ||
141 | 141 | @Callable(f) | |
142 | 142 | func DepositUSDT () = { | |
143 | 143 | let g = if ((size(f.payments) == 1)) | |
144 | 144 | then f.payments[0] | |
145 | 145 | else throw("No payment attached, Please Attach USDT Token in payment[1].") | |
146 | 146 | let V = toBase58String(f.caller.bytes) | |
147 | 147 | let W = getStringValue(this, "Funding_Address") | |
148 | 148 | let X = getIntegerValue(this, "USDT_Balance") | |
149 | 149 | let Y = { | |
150 | 150 | let K = getInteger(this, "USDT_Balance") | |
151 | 151 | if ($isInstanceOf(K, "Int")) | |
152 | 152 | then { | |
153 | 153 | let L = K | |
154 | 154 | L | |
155 | 155 | } | |
156 | 156 | else 0 | |
157 | 157 | } | |
158 | 158 | let Z = (Y + g.amount) | |
159 | 159 | if ((W != V)) | |
160 | 160 | then throw((("I know You are not An Admin. Only " + W) + " has rights to add USDT Funds.")) | |
161 | 161 | else if ((g.assetId != b)) | |
162 | 162 | then throw((("Kindly Deposit Only USDT " + toBase58String(b)) + " AssetID.")) | |
163 | 163 | else if ((1000000 > g.amount)) | |
164 | 164 | then throw("Attach minimum 1 USDT atleast For Payment.") | |
165 | 165 | else [IntegerEntry("USDT_Balance", Z)] | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | @Verifier(aa) | |
170 | 170 | func ab () = sigVerify(aa.bodyBytes, aa.proofs[0], aa.senderPublicKey) | |
171 | 171 |
github/deemru/w8io/169f3d6 71.67 ms ◑