Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/basis-cash/BasisCash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class BasisCash {
const Boardroom = this.currentBoardroom();
return await Boardroom.pendingWithdrawalTime(this.myAccount);
}

async getStakedEffectiveSharesOnBoardroom(): Promise<BigNumber> {
return null;
// const Boardroom = this.currentBoardroom();
Expand All @@ -484,7 +484,7 @@ export class BasisCash {
// const Boardroom = this.currentBoardroom();
// return await Boardroom.calculateClaimableRewardsForEpoch(this.myAccount, epoch);
}

async initiateRewardClaim(): Promise<TransactionResponse> {
const Boardroom = this.currentBoardroom();
return await Boardroom.initiateRewardClaim();
Expand Down Expand Up @@ -573,14 +573,12 @@ export class BasisCash {
}

async depositCurvPool(mic2Amount: BigNumber, usdtAmount: BigNumber): Promise<TransactionResponse> {
const fn = 'add_liquidity(address,uint256[4],uint256)';
const fn = 'add_liquidity(uint256[4],uint256)';
const gas = await this.curvDepositor.estimateGas[fn](
'0x0F8c89d3fB0b502732b338f1dfb3c465Dc856C8e',
[mic2Amount, '0', '0', usdtAmount],
'1',
);
return await this.curvDepositor[fn](
'0x0F8c89d3fB0b502732b338f1dfb3c465Dc856C8e',
[mic2Amount, '0', '0', usdtAmount],
'1',
this.gasOptions(gas),
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const configurations: { [env: string]: Configuration } = {
boardroomLaunchesAt: new Date('2021-01-03T02:00:00Z'),
refreshInterval: 3000,
gasLimitMultiplier: 1.1,
curvDepositor: '0xA79828DF1850E8a3A3064576f380D90aECDD3359',
curvDepositor: '0x7568A35Af990Cb41216a75DA8CA203Bcac4b8dF2',
},
production: {
chainId: ChainId.MAINNET,
Expand Down Expand Up @@ -73,7 +73,7 @@ const configurations: { [env: string]: Configuration } = {
boardroomLaunchesAt: new Date('2021-01-03T02:00:00Z'),
refreshInterval: 30000,
gasLimitMultiplier: 1.7,
curvDepositor: '0xA79828DF1850E8a3A3064576f380D90aECDD3359',
curvDepositor: '0x7568A35Af990Cb41216a75DA8CA203Bcac4b8dF2',
},
};

Expand Down
4 changes: 1 addition & 3 deletions src/views/CurvPool/CurvPool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import useApprove, { ApprovalState } from '../../hooks/useApprove';
import { useWallet } from 'use-wallet';
import useCurvDeposit from '../../hooks/useCurvDeposit';

const CurvDepositor = '0xA79828DF1850E8a3A3064576f380D90aECDD3359';

const CurvPool: React.FC = () => {
const { account } = useWallet();

Expand Down Expand Up @@ -90,7 +88,7 @@ const CurvPool: React.FC = () => {
<ButtonWrapper>
<Button text='Add Liquidity' disabled={!depositReady} onClick={() => onDeposit(mic2Val, usdtVal)} />
</ButtonWrapper>
<Link href="https://crv.finance/liquidity">Remove Liquidity on crv.finance</Link>
<Link href="https://crv.finance/liquidity" target={"_blank"} rel={"noopener noreferrer"}>Remove Liquidity on crv.finance</Link>
</Card>
) : (
<UnlockWallet />
Expand Down