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