Skip to content

feat: implement draw_credit limit checks and utilized amount update#85

Open
Tola-byte wants to merge 8 commits intoCreditra:mainfrom
Tola-byte:feature/draw-credit-logic
Open

feat: implement draw_credit limit checks and utilized amount update#85
Tola-byte wants to merge 8 commits intoCreditra:mainfrom
Tola-byte:feature/draw-credit-logic

Conversation

@Tola-byte
Copy link

closes #4

@greatest0fallt1me
Copy link
Contributor

resolve the conflicts

@greatest0fallt1me
Copy link
Contributor

resolve the conflict

@greatest0fallt1me
Copy link
Contributor

@Tola-byte

@Tola-byte
Copy link
Author

on it

@Tola-byte
Copy link
Author

@greatest0fallt1me please merge in.

@Tola-byte
Copy link
Author

@greatest0fallt1me ???

@Tola-byte
Copy link
Author

@greatest0fallt1me please merge this in, thanks.

@greatest0fallt1me
Copy link
Contributor

@Tola-byte please resolve the conflicts

@Tola-byte
Copy link
Author

okay, you need to let contributors know they don't need to push test_snapshots, it causes unnecessary merge conflicts.

@Tola-byte
Copy link
Author

@greatest0fallt1me PLEASE MERGE THIS IN FIRST BEFORE ANYONE PUSHES IN SNAPSHOTS AND AFFECT EVERYONE, THANK YOU.

@greatest0fallt1me
Copy link
Contributor

please resolve the conflicts

@Tola-byte
Copy link
Author

Tola-byte commented Feb 26, 2026

@greatest0fallt1me bro what is the problem man, I said it explicitly, merge mine in first so the test snapshots gets fixed and dont affect others, you went ahead to merge others in without doing mine, and mine contains the fix so it gets easier for everyone, we've been doing this for close 3 days now, come on man. this isn't fair at all

@Tola-byte
Copy link
Author

I'd fix countless times, you'd ignore, then merge others in before mine, and keep telling me to fix conflicts always. not fair.

# Conflicts:
#	contracts/credit/src/lib.rs
#	contracts/credit/test_snapshots/test/test_close_credit_line_admin_force_close_with_utilization.1.json
#	contracts/credit/test_snapshots/test/test_close_credit_line_borrower_rejected_when_utilized_nonzero.1.json
#	contracts/credit/test_snapshots/test/test_default_credit_line.1.json
#	contracts/credit/test_snapshots/test/test_default_credit_line_unauthorized.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit_at_full_utilization.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit_exceeds_limit.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit_negative_amount.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit_updates_utilized.1.json
#	contracts/credit/test_snapshots/test/test_draw_credit_zero_amount.1.json
#	contracts/credit/test_snapshots/test/test_full_lifecycle.1.json
#	contracts/credit/test_snapshots/test/test_lifecycle_transitions.1.json
#	contracts/credit/test_snapshots/test/test_multiple_borrowers.1.json
#	contracts/credit/test_snapshots/test/test_reentrancy_guard_cleared_after_draw.1.json
#	contracts/credit/test_snapshots/test/test_reentrancy_guard_cleared_after_repay.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_full.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_invalid_amount_negative.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_invalid_amount_zero.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_nonexistent_line.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_overpayment.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_partial.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_reduces_utilized_and_emits_event.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_rejects_non_positive_amount.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_saturates_at_zero.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_suspended_status.1.json
#	contracts/credit/test_snapshots/test/test_repay_credit_zero_utilization.1.json
#	contracts/credit/test_snapshots/test/test_suspend_credit_line.1.json
#	contracts/credit/test_snapshots/test/test_suspend_credit_line_unauthorized.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_at_boundaries.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_credit_limit_below_utilized.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_interest_rate_exceeds_max.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_negative_credit_limit.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_nonexistent_line.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_risk_score_exceeds_max.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_success.1.json
#	contracts/credit/test_snapshots/test/test_update_risk_parameters_unauthorized_caller.1.json
#	contracts/credit/test_snapshots/test_close_utilized/test_close_utilized_third_party_rejected_with_zero_utilization.1.json
@Tola-byte
Copy link
Author

@greatest0fallt1me PLEASE MERGE IN, THANKS

@Tola-byte
Copy link
Author

@greatest0fallt1me please merge in so my points can reflect, if others were this slow in merging in prs, you wouldn't have gotten the number of points you had, its taking way too long please.

@greatest0fallt1me
Copy link
Contributor

@Tola-byte Can you resolve the conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement draw_credit with limit checks and utilized amount update

2 participants