Skip to content

Commit 9c2f546

Browse files
Merge pull request #1110 from autonomoussoftware/deploy_vaPool_deposit_contract
Deployment prep for vaPool as collateral asset
2 parents a794920 + 7fb2f0b commit 9c2f546

16 files changed

+6530
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {buildDepositTokenDeployFunction, UpgradableContracts} from '../../../helpers'
2+
import Address from '../../../../helpers/address'
3+
import {parseEther} from 'ethers/lib/utils'
4+
5+
const {VAETH_ADDRESS} = Address
6+
7+
const {
8+
Pool1: {alias: Pool1},
9+
} = UpgradableContracts
10+
11+
const func = buildDepositTokenDeployFunction({
12+
poolAlias: Pool1,
13+
underlyingAddress: VAETH_ADDRESS,
14+
underlyingSymbol: 'vaETH',
15+
underlyingDecimals: 18,
16+
collateralFactor: parseEther('0.8'), // 80%
17+
maxTotalSupply: parseEther('150'),
18+
})
19+
20+
export default func
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {buildDepositTokenDeployFunction, UpgradableContracts} from '../../../helpers'
2+
import Address from '../../../../helpers/address'
3+
import {parseEther} from 'ethers/lib/utils'
4+
5+
const {VAUSDC_ADDRESS} = Address
6+
7+
const {
8+
Pool1: {alias: Pool1},
9+
} = UpgradableContracts
10+
11+
const func = buildDepositTokenDeployFunction({
12+
poolAlias: Pool1,
13+
underlyingAddress: VAUSDC_ADDRESS,
14+
underlyingSymbol: 'vaUSDC',
15+
underlyingDecimals: 18,
16+
collateralFactor: parseEther('0.82'), // 82%
17+
maxTotalSupply: parseEther('500000'),
18+
})
19+
20+
export default func
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {buildDepositTokenDeployFunction, UpgradableContracts} from '../../../helpers'
2+
import Address from '../../../../helpers/address'
3+
import {parseEther} from 'ethers/lib/utils'
4+
5+
const {VAWSTETH_ADDRESS} = Address
6+
7+
const {
8+
Pool1: {alias: Pool1},
9+
} = UpgradableContracts
10+
11+
const func = buildDepositTokenDeployFunction({
12+
poolAlias: Pool1,
13+
underlyingAddress: VAWSTETH_ADDRESS,
14+
underlyingSymbol: 'vaWSTETH',
15+
underlyingDecimals: 18,
16+
collateralFactor: parseEther('0.78'), // 78%
17+
maxTotalSupply: parseEther('100'),
18+
})
19+
20+
export default func
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {buildDepositTokenDeployFunction, UpgradableContracts} from '../../../helpers'
2+
import Address from '../../../../helpers/address'
3+
import {parseEther} from 'ethers/lib/utils'
4+
5+
const {VACBETH_ADDRESS} = Address
6+
7+
const {
8+
Pool1: {alias: Pool1},
9+
} = UpgradableContracts
10+
11+
const func = buildDepositTokenDeployFunction({
12+
poolAlias: Pool1,
13+
underlyingAddress: VACBETH_ADDRESS,
14+
underlyingSymbol: 'vaCBETH',
15+
underlyingDecimals: 18,
16+
collateralFactor: parseEther('0.75'), // 75%
17+
maxTotalSupply: parseEther('50'),
18+
})
19+
20+
export default func

0 commit comments

Comments
 (0)