Skip to content

Calculate collateral contract index before repayment tx satisfaction#45

Merged
luckysori merged 1 commit into
masterfrom
fix-loan-repay
Aug 3, 2021
Merged

Calculate collateral contract index before repayment tx satisfaction#45
luckysori merged 1 commit into
masterfrom
fix-loan-repay

Conversation

@luckysori
Copy link
Copy Markdown
Collaborator

Given that we can have multiple txins the loan contract might not always be at index position 1.
Since we push the loan contract txin into the vec as last element we can be sure it is the last element in the vec when we satisfy the loan repayment.

Given that we can have multiple txins the loan contract might not always be at index position 1.
Since we push the loan contract txin into the vec as last element we can be sure it is the last element in the vec when we satisfy the loan repayment.
@luckysori luckysori merged commit 48d4521 into master Aug 3, 2021
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.

3 participants