File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { getLockupContract } from './common'
22import { 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 )
Original file line number Diff line number Diff line change 11import { getLockupContract } from './common'
22import { 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
Original file line number Diff line number Diff line change @@ -3,18 +3,14 @@ import { getLockupContract } from './common'
33import { Provider } from '@ethersproject/abstract-provider'
44import { 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 )
You can’t perform that action at this time.
0 commit comments