tx · 5KnWXSk9QBkNLUgKiTQFmQwQLWcVichmDb2jx6cQwkME

3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1:  -0.01400000 Waves

2022.03.18 20:09 [1969672] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves

{ "type": 13, "id": "5KnWXSk9QBkNLUgKiTQFmQwQLWcVichmDb2jx6cQwkME", "fee": 1400000, "feeAssetId": null, "timestamp": 1647623417471, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "5HDr8v5vgnYQfnuUR8Hw5F5ryytnEgF46oFCj9NudAD7H8tgPTxr9fgqW8aYmNYH9LRQ6e75fe5eED6ErjCEZR7Q" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAHAAAAAAdEYXBwRmVlAAAAAAABfXhAAAAAAA9nZXRjdXJyZW50cm91bmQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADWN1cnJlbnRfcm91bmQAAAAAC3hVU0RBc3NldElEAQAAACAUvqy5I7Pn2Q+5aTq4aUxjl04TnuAMD5q9EZXpvqd6qwAAAAAMRkFJVEhBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAAAAAARQ29sbGVjdEZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAA5mZXRjaHRvdGFsdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAApUb3RhbF9UeG5zAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAAAAAACXRvdGFs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5mZXRjaHVzZXJyb3VuZAkAAAIAAAABAgAAACpZb3UgZG9uJ3QgaGF2ZSBhbnkgZHVlcyBvZiBSb3VuZCB0byBDbGFpbS4JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAClRvdGFsX1R4bnMFAAAACXRvdGFsdHhucwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAA9Ub3RhbF9Vc2VyVHhuc18FAAAACmN1cnJlbnRLZXkFAAAADXVzZXJ0b3RhbHR4bnMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABJEZXBvc2l0X0Ftb3VudF9PZl8FAAAACmN1cnJlbnRLZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAABFDdXJyZW50X1JvdW5kX09mXwUAAAAKY3VycmVudEtleQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAEENsYWltX1N0YXR1c19PZl8FAAAACmN1cnJlbnRLZXkCAAAABFBBSUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Ob19PZl9EZXBvc2l0c18FAAAACmN1cnJlbnRLZXkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA9mZXRjaHVzZXJhbW91bnQFAAAAC3hVU0RBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkQRvzi", "height": 1969672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6XGCHwuzBHYtEbzGyJ6op2wf4YMKBCSietjsUUXfB9T2 Next: ANpTBJUMz6v5SvxB74dnyRMpg5rWwLrmMKxbnzWdSjyL Diff:
OldNewDifferences
7575 let usertotaltxns = (fetchtotalusertxns + 1)
7676 if ((0 >= fetchuserround))
7777 then throw("You don't have any dues of Round to Claim.")
78- else if ((0 >= getstartcapital))
79- then throw((("Start Capital of" + toString(fetchuserround)) + " has not posted Yet."))
80- else if ((0 >= getendcapital))
81- then throw((("End Capital of" + toString(fetchuserround)) + " has not posted Yet."))
82- else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID)]
78+ else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID)]
8379 }
8480
8581
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let DappFee = 25000000
55
66 let getcurrentround = getIntegerValue(this, "current_round")
77
88 let xUSDAssetID = base58'2PyngaPGAFjV9AVFXSQANwumY6FSY1cqZDBK8NsEGCup'
99
1010 let FAITHAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1111
1212 let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1313
1414 let fetchtotaltxns = match getInteger(this, "Total_Txns") {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020
2121 let totaltxns = (fetchtotaltxns + 1)
2222
2323 @Callable(i)
2424 func Deposit () = {
2525 let pmt1 = if ((size(i.payments) == 1))
2626 then i.payments[0]
2727 else throw((("No Payments Attached Please Attach " + toBase58String(xUSDAssetID)) + " Asset Only."))
2828 let maxdepositamt = 1000000000000
2929 let currentKey = toBase58String(i.caller.bytes)
3030 let fetchstartcapital = getIntegerValue(this, (toString(getcurrentround) + "_Start_Capital"))
3131 let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) {
3232 case a: Int =>
3333 a
3434 case _ =>
3535 0
3636 }
3737 let usertotaltxns = (fetchtotalusertxns + 1)
3838 let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) {
3939 case a: Int =>
4040 a
4141 case _ =>
4242 0
4343 }
4444 let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1)
4545 if ((pmt1.assetId != xUSDAssetID))
4646 then throw("Incorrect asset attached, please attach only xUSD AssetID.")
4747 else if ((499999999 >= pmt1.amount))
4848 then throw("Please attach minimum 5 xUSD to deposit to enter round.")
4949 else if ((pmt1.amount > maxdepositamt))
5050 then throw("Please attach correct amount in between [5-10000] xUSD.")
5151 else if ((size(i.payments) > 1))
5252 then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.")
5353 else if ((UserNoOfDeposits == 1))
5454 then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.")
5555 else if ((fetchstartcapital >= 0))
5656 then throw("Start Captial is less than 0")
5757 else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), IntegerEntry(("Deposit_Amount_Of_" + currentKey), (pmt1.amount - DappFee)), IntegerEntry(((toString(getcurrentround) + "_Start_Capital_") + currentKey), fetchstartcapital), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)]
5858 }
5959
6060
6161
6262 @Callable(i)
6363 func Claim () = {
6464 let currentKey = toBase58String(i.caller.bytes)
6565 let fetchuserround = valueOrErrorMessage(getInteger(this, ("Current_Round_Of_" + currentKey)), "Your Address did not participated in any latest round Yet. Please Depoist again to WIN.")
6666 let getstartcapital = getIntegerValue(this, (toString(fetchuserround) + "_Start_Capital"))
6767 let getendcapital = getIntegerValue(this, (toString(fetchuserround) + "_End_Capital"))
6868 let fetchuseramount = getIntegerValue(this, ("Deposit_Amount_Of_" + currentKey))
6969 let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) {
7070 case a: Int =>
7171 a
7272 case _ =>
7373 0
7474 }
7575 let usertotaltxns = (fetchtotalusertxns + 1)
7676 if ((0 >= fetchuserround))
7777 then throw("You don't have any dues of Round to Claim.")
78- else if ((0 >= getstartcapital))
79- then throw((("Start Capital of" + toString(fetchuserround)) + " has not posted Yet."))
80- else if ((0 >= getendcapital))
81- then throw((("End Capital of" + toString(fetchuserround)) + " has not posted Yet."))
82- else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID)]
78+ else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), DeleteEntry(("Deposit_Amount_Of_" + currentKey)), DeleteEntry(("Current_Round_Of_" + currentKey)), StringEntry(("Claim_Status_Of_" + currentKey), "PAID"), DeleteEntry(("No_Of_Deposits_" + currentKey)), ScriptTransfer(i.caller, fetchuseramount, xUSDAssetID)]
8379 }
8480
8581
8682 @Verifier(tx)
8783 func verify () = match tx {
8884 case _ =>
8985 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
9086 }
9187

github/deemru/w8io/169f3d6 
26.90 ms