Skip to content

Commit

Permalink
fix: fee balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
eugypalu committed Nov 18, 2024
1 parent 87e0a82 commit 5b47c14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 2 additions & 0 deletions aws_lambda/fee_balancer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# trunk-ignore-all(checkov/CKV_DOCKER_3)
# trunk-ignore-all(hadolint/DL3013)
# trunk-ignore-all(hadolint/DL3033)
# trunk-ignore-all(trivy/DS002)
# trunk-ignore-all(trivy/DS026)
FROM amazon/aws-lambda-python:3.10

RUN yum update -y && \
Expand Down
4 changes: 0 additions & 4 deletions aws_lambda/fee_balancer/fee_balancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,3 @@ async def withdraw_fee(starknet_address, nonce, eth_address, eth_private_key):
# Wait for transaction receipt
tx_receipt = web3.eth.wait_for_transaction_receipt(send_tx)
logger.info(tx_receipt)


if __name__ == "__main__":
asyncio.run(check_and_fund_relayers())
14 changes: 0 additions & 14 deletions aws_lambda/fee_balancer/fee_balancer_lambda_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,6 @@ def build_lambda_func(self):
)
)

# param_arns = [
# os.environ.get("RELAYERS_PREV_TOTAL_BALANCE_PARAM_ARN"),
# os.environ.get("ACCOUNT_PREV_BALANCE_PARAM_ARN"),
# os.environ.get("EARNING_PERCENTAGE_PARAM_ARN"),
# ]
# param_arns = [arn for arn in param_arns if arn is not None]

# self.prediction_lambda.add_to_role_policy(
# iam.PolicyStatement(
# actions=["ssm:GetParameter", "ssm:PutParameter"],
# resources=param_arns,
# )
# )

events.Rule(
self,
"ScheduleRule",
Expand Down

0 comments on commit 5b47c14

Please sign in to comment.