tx · DQXGBkeZ6AAPVNei6XKABde14saaAGJ3Tz55YxsWw4LT

3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS:  -0.01000000 Waves

2023.08.28 15:18 [2730511] smart account 3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS > SELF 0.00000000 Waves

{ "type": 13, "id": "DQXGBkeZ6AAPVNei6XKABde14saaAGJ3Tz55YxsWw4LT", "fee": 1000000, "feeAssetId": null, "timestamp": 1693225104805, "version": 2, "chainId": 84, "sender": "3Mx8raFsQfjh2JBeT8MN1Jv5sTvGkx5PDDS", "senderPublicKey": "HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL", "proofs": [ "RaB8EfJbMiNTxts6iQHU5v2Wi2S2DqHFPw6rKwKFaAHR9Nu6De6exShDe7YLwMKum6ow5JrxjWEr4pdYdiV3y5H" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQEAAAAEAAAAABFscF9hZGRyZXNzX3B1YmtleQEAAAAg+SHOoR+6ay5qXj57vjRzml+/6VMYqCQMV4ukn2GjgTcAAAAAIG1hc3N0cmFuc2Zlcl93aGl0ZWxpc3RlZF9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAABFscF9hZGRyZXNzX3B1YmtleQAAAAAUbHBfZGVwb3NpdG9yX2FkZHJlc3MBAAAAIOOt17LUijbWojwDE5tgFkw1Y8cwIr3jselcewpp7rwjAAAAABRscF93aGl0ZWxpc3RfYWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAUbHBfZGVwb3NpdG9yX2FkZHJlc3MAAAACAAAAAWkBAAAAEEFkZFBvb2xMaXF1aWRpdHkAAAAABAAAAA1jYWxsZXJhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhw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AAAMSW50ZWdlckVudHJ5AAAAAgIAAAAYVG90YWxfTWFzc19UcmFuc2Zlcl9TZW5kBQAAABVUb3RhbE1hc3NUcmFuc2ZlclNlbmQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAABhUb3RhbE1hc3NUcmFuc2ZlckNvdW50ZXICAAAAE19NYXNzX1RyYW5zZmVyX1NlbmQFAAAAFlBhaWRNYXNzVHJhbnNmZXJBbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAFT3JkZXIGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmeasmF", "height": 2730511, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ENEhhdZUpyu5AVBNzMY9L3KbT1MWSJzgfiGRQTGWq88e Next: 7F9Sgwj9XH5WWYviHVsfPJNme6QFUbJgAdcYfc67PdqH Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let lp_address_pubkey = base58'HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL'
55
6-let whitelist_address = addressFromPublicKey(lp_address_pubkey)
6+let masstransfer_whitelisted_address = addressFromPublicKey(lp_address_pubkey)
7+
8+let lp_depositor_address = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
9+
10+let lp_whitelist_address = addressFromPublicKey(lp_depositor_address)
711
812 @Callable(i)
913 func AddPoolLiquidity () = {
3236 0
3337 }
3438 let TotalLPDepositCounter = (PreviousLPDepositCounter + 1)
35- if ((i.caller != whitelist_address))
36- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
39+ if ((i.caller != lp_whitelist_address))
40+ then throw((("This Address is not Authorized. Only " + toString(lp_whitelist_address)) + " is Authorized Address to Sign it."))
3741 else if (isDefined(pmt.assetId))
3842 then throw("Only WAVES is allowed to deposit at the moment")
3943 else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter), IntegerEntry("Total_LP_Added", TotalFundsAddedToPoolbyCompany)]
5963 0
6064 }
6165 let TotalMassTransferSend = (PreviousMassTransferSend + PaidMassTransferAmount)
62- if ((i.caller != whitelist_address))
63- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
66+ if ((i.caller != masstransfer_whitelisted_address))
67+ then throw((("This Address is not Authorized. Only " + toString(masstransfer_whitelisted_address)) + " is Authorized Address to Sign it."))
6468 else [IntegerEntry("Total_Pool_Liquidity", updated_pool_balance), IntegerEntry("Total_Mass_Transfer_Send", TotalMassTransferSend), IntegerEntry((toString(TotalMassTransferCounter) + "_Mass_Transfer_Send"), PaidMassTransferAmount)]
6569 }
6670
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let lp_address_pubkey = base58'HmWR8GbhBF4LAodJ9xNgR7PpWF79RuCrhPWJWxqdB1KL'
55
6-let whitelist_address = addressFromPublicKey(lp_address_pubkey)
6+let masstransfer_whitelisted_address = addressFromPublicKey(lp_address_pubkey)
7+
8+let lp_depositor_address = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
9+
10+let lp_whitelist_address = addressFromPublicKey(lp_depositor_address)
711
812 @Callable(i)
913 func AddPoolLiquidity () = {
1014 let calleraddress = toBase58String(i.caller.bytes)
1115 let pmt = if ((size(i.payments) == 1))
1216 then i.payments[0]
1317 else throw("No payment attached, Please Attach only Whitelisted Tokens in payment[1].")
1418 let PreviousFundsAddedToPoolbyCompany = match getInteger(this, "Total_LP_Added") {
1519 case a: Int =>
1620 a
1721 case _ =>
1822 0
1923 }
2024 let TotalFundsAddedToPoolbyCompany = (PreviousFundsAddedToPoolbyCompany + pmt.amount)
2125 let PreviousPoolLiquidity = match getInteger(this, "Total_Pool_Liquidity") {
2226 case a: Int =>
2327 a
2428 case _ =>
2529 0
2630 }
2731 let TotalPoolLiquidity = (PreviousPoolLiquidity + pmt.amount)
2832 let PreviousLPDepositCounter = match getInteger(this, "LP_Deposit_Counter") {
2933 case a: Int =>
3034 a
3135 case _ =>
3236 0
3337 }
3438 let TotalLPDepositCounter = (PreviousLPDepositCounter + 1)
35- if ((i.caller != whitelist_address))
36- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
39+ if ((i.caller != lp_whitelist_address))
40+ then throw((("This Address is not Authorized. Only " + toString(lp_whitelist_address)) + " is Authorized Address to Sign it."))
3741 else if (isDefined(pmt.assetId))
3842 then throw("Only WAVES is allowed to deposit at the moment")
3943 else [IntegerEntry("Total_Pool_Liquidity", TotalPoolLiquidity), IntegerEntry("LP_Deposit_Counter", TotalLPDepositCounter), IntegerEntry("Total_LP_Added", TotalFundsAddedToPoolbyCompany)]
4044 }
4145
4246
4347
4448 @Callable(i)
4549 func UpdateLPBalance (PaidMassTransferAmount) = {
4650 let read_total_pool_liquidity = valueOrErrorMessage(getInteger(this, "Total_Pool_Liquidity"), "No Initial Pool Liquidity was Found.")
4751 let updated_pool_balance = (read_total_pool_liquidity - PaidMassTransferAmount)
4852 let PreviousMassTransferCounter = match getInteger(this, "Mass_Transfer_Counter") {
4953 case a: Int =>
5054 a
5155 case _ =>
5256 0
5357 }
5458 let TotalMassTransferCounter = (PreviousMassTransferCounter + 1)
5559 let PreviousMassTransferSend = match getInteger(this, "Total_Mass_Transfer_Send") {
5660 case a: Int =>
5761 a
5862 case _ =>
5963 0
6064 }
6165 let TotalMassTransferSend = (PreviousMassTransferSend + PaidMassTransferAmount)
62- if ((i.caller != whitelist_address))
63- then throw((("This Address is not Authorized. Only " + toString(whitelist_address)) + " is Authorized Address to Sign it."))
66+ if ((i.caller != masstransfer_whitelisted_address))
67+ then throw((("This Address is not Authorized. Only " + toString(masstransfer_whitelisted_address)) + " is Authorized Address to Sign it."))
6468 else [IntegerEntry("Total_Pool_Liquidity", updated_pool_balance), IntegerEntry("Total_Mass_Transfer_Send", TotalMassTransferSend), IntegerEntry((toString(TotalMassTransferCounter) + "_Mass_Transfer_Send"), PaidMassTransferAmount)]
6569 }
6670
6771
6872 @Verifier(tx)
6973 func verify () = match tx {
7074 case t: Order|ExchangeTransaction|TransferTransaction =>
7175 false
7276 case _ =>
7377 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7478 }
7579

github/deemru/w8io/026f985 
26.71 ms