1
- import { ethers , providers } from 'ethers' ;
1
+ import { providers } from 'ethers' ;
2
2
import BaseService from '../commons/BaseService' ;
3
3
import {
4
4
eEthereumTxType ,
@@ -7,23 +7,13 @@ import {
7
7
tEthereumAddress ,
8
8
transactionType ,
9
9
} from '../commons/types' ;
10
- import {
11
- API_ETH_MOCK_ADDRESS ,
12
- augustusToAmountOffsetFromCalldata ,
13
- DEFAULT_APPROVE_AMOUNT ,
14
- getTxValue ,
15
- SURPLUS ,
16
- valueToWei ,
17
- } from '../commons/utils' ;
10
+ import { DEFAULT_APPROVE_AMOUNT , valueToWei } from '../commons/utils' ;
18
11
import {
19
12
isEthAddress ,
20
13
isPositiveAmount ,
21
14
} from '../commons/validators/paramValidators' ;
22
15
import { ERC20Service , IERC20ServiceInterface } from '../erc20-contract' ;
23
- import {
24
- WETHGatewayInterface ,
25
- WETHGatewayService ,
26
- } from '../wethgateway-contract' ;
16
+ import { WETHGatewayInterface } from '../wethgateway-contract' ;
27
17
import {
28
18
CreateLockParamsType ,
29
19
IncreaseAmountParamsType ,
@@ -51,7 +41,7 @@ export interface VotingEscrowInterface {
51
41
52
42
export type VotingEscrowConfig = {
53
43
VOTING_ESCROW : tEthereumAddress ;
54
- MNT_ADDRESS : tEthereumAddress ;
44
+ MNT : tEthereumAddress ;
55
45
} ;
56
46
57
47
export class VotingEscrow
@@ -71,10 +61,10 @@ export class VotingEscrow
71
61
) {
72
62
super ( provider , IVotingEscrow__factory ) ;
73
63
74
- const { VOTING_ESCROW , MNT_ADDRESS } = votingEscrowConfig ?? { } ;
64
+ const { VOTING_ESCROW , MNT } = votingEscrowConfig ?? { } ;
75
65
76
66
this . votingEscrowAddress = VOTING_ESCROW ?? '' ;
77
- this . mntAddress = MNT_ADDRESS ?? '' ;
67
+ this . mntAddress = MNT ?? '' ;
78
68
79
69
// initialize services
80
70
this . erc20Service = new ERC20Service ( provider ) ;
0 commit comments