Skip to content

Commit

Permalink
Swell updates for AuraSwEthBbAWethSYV2
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-alderman committed Aug 2, 2023
1 parent 45bd785 commit 2036c37
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
12 changes: 12 additions & 0 deletions deployments/SY-swETH-BbAWeth_BalancerLP Aura.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "SY swETH-BbAWeth_BalancerLP Aura",
"symbol": "SY-swETH-BbAWeth_BalancerLP Aura",
"doCacheIndex": true,
"expiry": 1727308800,
"scalarRoot": "72904875026000000000",
"initialRateAnchor": "1034844758000000000",
"SY": "0xcb6Ea7fddFdf2AFc2Bc6Bf715185A33F8E27B96b",
"PT": "0x2CDB89969A8C206624C1173D1da3284B26dcB03d",
"YT": "0xb655B156816DD7bA76D99435db845E5E55B2bF49",
"market": "0xcF756c00A755172bDC073787Ea83817603dA42eF"
}
6 changes: 3 additions & 3 deletions scripts/change-owner.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { getContractAt } from './helper';
import marketAddresses from '../deployments/SY-swETH.json';
import { SwETHSY } from '../typechain-types';
import marketAddresses from '../deployments/SY-swETH-BbAWeth_BalancerLP Aura.json';
import { AuraSwEthBbAWethSYV2 } from '../typechain-types';
import { PENDLE_MULTISIG } from './consts';

async function main() {
const SY = await getContractAt<SwETHSY>('SwETHSY', marketAddresses.SY);
const SY = await getContractAt<AuraSwEthBbAWethSYV2>('AuraSwEthBbAWethSYV2', marketAddresses.SY);

console.log('Transferring ownership to: ', PENDLE_MULTISIG);

Expand Down
12 changes: 6 additions & 6 deletions scripts/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { calculateParameters } from './param-helper';
* @minApy and @maxApy are the minimum and maximum APY of the interest bearing asset
* @startTimestamp and @endTimestamp are the start and end time of the market
*/
const minApy = 0.01; // 1%
const maxApy = 0.05; // 5%
const startTimestamp = 1689206400;
const endTimestamp = 1750896000;
const minApy = 0.0; // 0%
const maxApy = 0.06; // 6%
const startTimestamp = 1690848000;
const endTimestamp = 1727308800;

export const MarketConfiguration = {
name: 'SY swETH',
symbol: 'SY-swETH',
name: 'SY swETH-BbAWeth_BalancerLP Aura',
symbol: 'SY-swETH-BbAWeth_BalancerLP Aura',
doCacheIndex: true,
expiry: endTimestamp,
...calculateParameters(minApy, maxApy, startTimestamp, endTimestamp),
Expand Down
5 changes: 2 additions & 3 deletions scripts/deploy-sy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers';
import { IStandardizedYield, SwETHSY } from '../typechain-types';
import { AuraSwEthBbAWethSYV2, IStandardizedYield } from '../typechain-types';
import { deploy, getContractAt } from './helper';
import { MarketConfiguration } from './configuration';

Expand All @@ -12,10 +12,9 @@ import { MarketConfiguration } from './configuration';
* - Change the deployment params to match your constructor arguments
*/
export async function deploySY(deployer: SignerWithAddress): Promise<IStandardizedYield> {
const sy = await deploy<SwETHSY>(deployer, 'SwETHSY', [
const sy = await deploy<AuraSwEthBbAWethSYV2>(deployer, 'AuraSwEthBbAWethSYV2', [
MarketConfiguration.name,
MarketConfiguration.symbol,
'0xf951E335afb289353dc249e82926178EaC7DEd78', // SWETH address
]);

return await getContractAt<IStandardizedYield>('IStandardizedYield', sy.address);
Expand Down
2 changes: 1 addition & 1 deletion scripts/seed-liquidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { delay, getContractAt, getPendleContracts, safeApproveInf } from './help
import { SUPPORTED_CHAINS } from './types';
import { INF, SAFE_WAIT_TIME, ZERO_ADDRESS } from './consts';
import { AMOUNT_TO_SEED, UNDERLYING_TO_SEED_LIQUIDITY } from './configuration';
import marketAddresses from '../deployments/SY-swETH.json';
import marketAddresses from '../deployments/SY-swETH-BbAWeth_BalancerLP Aura.json';
import { IERC20, IStandardizedYield } from '../typechain-types';

async function main() {
Expand Down

0 comments on commit 2036c37

Please sign in to comment.