diff --git a/src/contracts/bsv20CouponBond.ts b/src/contracts/bsv20CouponBond.ts index 674c0761..15436334 100644 --- a/src/contracts/bsv20CouponBond.ts +++ b/src/contracts/bsv20CouponBond.ts @@ -17,7 +17,7 @@ import { } from 'scrypt-ts' import { RabinPubKey, RabinSig, RabinVerifier } from 'scrypt-ts-lib' -export type Investor = { +export type BondInvestor = { emptySlot: boolean pubKey: PubKey forSale: boolean @@ -31,7 +31,7 @@ export class Bsv20CouponBond extends BSV20V2 { issuer: PubKey @prop(true) - investors: FixedArray + investors: FixedArray @prop() faceValue: bigint @@ -70,7 +70,7 @@ export class Bsv20CouponBond extends BSV20V2 { ), forSale: false, price: 0n, - } as Investor, + } as BondInvestor, 10 ) this.faceValue = faceValue diff --git a/src/contracts/bsv20LendingPool.ts b/src/contracts/bsv20LendingPool.ts index f5e74fcc..225bcd4f 100644 --- a/src/contracts/bsv20LendingPool.ts +++ b/src/contracts/bsv20LendingPool.ts @@ -25,14 +25,14 @@ import { RabinVerifier, } from 'scrypt-ts-lib' -export type Lender = { +export type PoolLender = { emptySlot: boolean pubKey: PubKey amt: bigint deadline: bigint } -export type Borrower = { +export type PoolBorrower = { emptySlot: boolean pubKey: PubKey amt: bigint @@ -44,10 +44,10 @@ export class Bsv20LendingPool extends BSV20V2 { static readonly N_BORROWERS = 10 @prop(true) - lenders: FixedArray + lenders: FixedArray @prop(true) - borrowers: FixedArray + borrowers: FixedArray // Fixed interest rate of the loan. // 1 = 1%