Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

fix: calculate debt correctly with interest #96

Merged
merged 3 commits into from
Apr 4, 2022
Merged

Conversation

samsiegart
Copy link
Contributor

fixes: #95

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

ui/src/components/VaultSummary.jsx Show resolved Hide resolved
ui/src/contexts/Application.jsx Outdated Show resolved Hide resolved
ui/src/contexts/Application.jsx Show resolved Hide resolved
ui/src/store.js Show resolved Hide resolved
ui/src/components/VaultSummary.jsx Show resolved Hide resolved
@samsiegart samsiegart requested a review from turadg April 4, 2022 21:14
ui/src/components/VaultSummary.jsx Show resolved Hide resolved
Comment on lines 78 to 83
/**
* @typedef {Object} Props
* @property {VaultData} vault
* @property {Object} brandToInfo
* @property {string} id
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just fyi, it might be less work to type:

Suggested change
/**
* @typedef {Object} Props
* @property {VaultData} vault
* @property {Object} brandToInfo
* @property {string} id
*/
/**
* @typedef {{
* vault: VaultData,
* brandIToInfo: Object,
* id: string,
* }} Props
*/

That won't get auto-formatted until Agoric/agoric-sdk#4903

as an aside, is there a better type for brandToInfo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes much better. And yes just fixed that, good catch.

ui/src/components/VaultSummary.jsx Show resolved Hide resolved
ui/src/store.js Show resolved Hide resolved
@samsiegart samsiegart enabled auto-merge (squash) April 4, 2022 21:43
@samsiegart samsiegart merged commit 7c153ce into main Apr 4, 2022
@samsiegart samsiegart deleted the debt-with-interest branch April 4, 2022 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculate debt correctly with interest rate
2 participants