Skip to content

Commit 4d46f2b

Browse files
committed
Fix typo in total_credit_too_high check
1 parent d153462 commit 4d46f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/pool.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ int muldiv_extra(int a, int b, int c) inline {
331331

332332
log_loan(sender_address, actual_loan);
333333
int total_loan = current_round_borrowers~add_loan(sender_address, actual_loan, interest);
334-
throw_unless(error::total_credit_too_high, total_loan <= max_loan + interest);
334+
throw_unless(error::total_credit_too_high, total_loan <= max_loan_per_validator + interest);
335335
send_msg_builder(interest_manager, SERVICE_NOTIFICATION_AMOUNT,
336336
begin_cell()
337337
.store_body_header(interest_manager::request_notification, cur_lt())

0 commit comments

Comments
 (0)