We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a33ec commit cd1fcbbCopy full SHA for cd1fcbb
src/aleph/vm/orchestrator/views/__init__.py
@@ -654,7 +654,8 @@ async def notify_allocation(request: web.Request):
654
655
credit_balance = await fetch_credit_balance_of_address(message.content.address)
656
657
- required_credits = await fetch_execution_price(item_hash, [PaymentType.credit])
+ credits_price_x_second = await fetch_execution_price(item_hash, [PaymentType.credit])
658
+ required_credits = Decimal(credits_price_x_second) * Decimal(60) * Decimal(60)
659
logger.debug(
660
f"Required credit balance for Address {message.content.address} executions: {required_credits}, {item_hash}"
661
)
0 commit comments