Skip to content

Commit f60bbd1

Browse files
committed
delete unnecessary type
1 parent 7648db2 commit f60bbd1

3 files changed

Lines changed: 6 additions & 18 deletions

File tree

lib/agent/lockup/calculateRewardAmount.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import { getLockupContract } from './common'
22
import { Provider } from '@ethersproject/abstract-provider'
33

4-
export type Options = {
4+
type Options = {
55
readonly provider: Provider
66
readonly propertyAddress: string
77
}
88

9-
type CalculateRewardAmount = (
10-
options: Options
11-
) => Promise<readonly [string, string] | undefined>
12-
13-
export const calculateRewardAmount: CalculateRewardAmount = async (
9+
export const calculateRewardAmount = async (
1410
options: Options
1511
): Promise<readonly [string, string] | undefined> => {
1612
const lockupContract = await getLockupContract(options.provider)

lib/agent/lockup/cap.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
import { getLockupContract } from './common'
22
import { Provider } from '@ethersproject/abstract-provider'
33

4-
export type Options = {
4+
type Options = {
55
readonly provider: Provider
66
}
77

8-
type GetCap = (Options: Options) => Promise<string | undefined>
9-
10-
export const getCap: GetCap = async (
11-
options: Options
12-
): Promise<string | undefined> => {
8+
export const getCap = async (options: Options): Promise<string | undefined> => {
139
const lockupContract = await getLockupContract(options.provider)
1410

1511
return lockupContract ? await lockupContract.cap() : undefined

lib/agent/lockup/positionsCreate.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@ import { getLockupContract } from './common'
33
import { Provider } from '@ethersproject/abstract-provider'
44
import { FallbackableOverrides } from '../../common/utils/execute'
55

6-
export type Options = {
6+
type Options = {
77
readonly provider: Provider
88
readonly propertyAddress: string
99
readonly amount: string
1010
readonly overrides?: FallbackableOverrides
1111
}
1212

13-
type PositionsCreate = (
14-
options: Options
15-
) => Promise<TransactionResponse | undefined>
16-
17-
export const positionsCreate: PositionsCreate = async (
13+
export const positionsCreate = async (
1814
options: Options
1915
): Promise<TransactionResponse | undefined> => {
2016
const lockupContract = await getLockupContract(options.provider)

0 commit comments

Comments
 (0)