Skip to content

Commit

Permalink
restore mpv field
Browse files Browse the repository at this point in the history
  • Loading branch information
JP Angelle committed Sep 13, 2023
1 parent 60ea5ba commit eca5c79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions centrifuge-app/src/pages/IssuerPool/Assets/CreateLoan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ function IssuerCreateLoan() {
values.pricing.valuationMethod === 'oracle'
? {
valuationMethod: values.pricing.valuationMethod,
// maxPriceVariation: Rate.fromPercent(values.pricing.maxPriceVariation),
maxPriceVariation: '1000000000000000000000000000000',
maxPriceVariation: Rate.fromPercent(values.pricing.maxPriceVariation),
maxBorrowAmount: values.pricing.maxBorrowQuantity
? CurrencyBalance.fromFloat(values.pricing.maxBorrowQuantity, decimals)
: null,
Expand Down
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/IssuerPool/Assets/PricingInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ export function PricingInput({ poolId }: { poolId: string }) {
// Max 5 years from now
max={new Date(Date.now() + 5 * 365 * 24 * 60 * 60 * 1000).toISOString().slice(0, 10)}
/>
{/* <FieldWithErrorMessage
<FieldWithErrorMessage
as={NumberInput}
label={<Tooltips type="maxPriceVariation" variant="secondary" label="Max price variation*" />}
placeholder={0}
rightElement="%"
name="pricing.maxPriceVariation"
validate={validate.maxPriceVariation}
/> */}
/>

{(values.pricing.valuationMethod === 'discountedCashFlow' ||
values.pricing.valuationMethod === 'outstandingDebt') && (
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/PricingValues.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Props = {
latestSettlementPrice: string | null
}

export function PricingValues({ loan, loan: { pricing }, pool, latestSettlementPrice }: Props) {
export function PricingValues({ loan: { pricing }, pool, latestSettlementPrice }: Props) {
const isOutstandingDebtOrDiscountedCashFlow =
'valuationMethod' in pricing &&
(pricing.valuationMethod === 'outstandingDebt' || pricing.valuationMethod === 'discountedCashFlow')
Expand Down

0 comments on commit eca5c79

Please sign in to comment.