@strkfarm/sdk 1.0.27 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
1
  export * from './autoCompounderStrk';
2
2
  export * from './vesu-rebalance';
3
- export * from './ekubo-cl-vault';
3
+ export * from './ekubo-cl-vault';
4
+ export * from './base-strategy';
@@ -83,7 +83,7 @@ export class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAmo
83
83
  * @param receiver - Address that will receive the strategy tokens
84
84
  * @returns Populated contract call for deposit
85
85
  */
86
- depositCall(amountInfo: SingleActionAmount, receiver: ContractAddr) {
86
+ async depositCall(amountInfo: SingleActionAmount, receiver: ContractAddr) {
87
87
  // Technically its not erc4626 abi, but we just need approve call
88
88
  // so, its ok to use it
89
89
  assert(amountInfo.tokenInfo.address.eq(this.asset().address), 'Deposit token mismatch');
@@ -100,7 +100,7 @@ export class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAmo
100
100
  * @param owner - Address that owns the strategy tokens
101
101
  * @returns Populated contract call for withdrawal
102
102
  */
103
- withdrawCall(amountInfo: SingleActionAmount, receiver: ContractAddr, owner: ContractAddr) {
103
+ async withdrawCall(amountInfo: SingleActionAmount, receiver: ContractAddr, owner: ContractAddr) {
104
104
  return [this.contract.populate('withdraw', [uint256.bnToUint256(amountInfo.amount.toWei()), receiver.address, owner.address])];
105
105
  }
106
106
 
@@ -476,7 +476,7 @@ export class VesuRebalance extends BaseStrategy<SingleTokenInfo, SingleActionAmo
476
476
 
477
477
  const baseFlow: IInvestmentFlow = {
478
478
  title: "Your Deposit",
479
- subItems: [{key: `Net yield`, value: `${(netYield * 100).toFixed(2)}%`}],
479
+ subItems: [{key: `Net yield`, value: `${(netYield * 100).toFixed(2)}%`}, {key: `Performance Fee`, value: `${(this.metadata.additionalInfo.feeBps / 100).toFixed(2)}%`}],
480
480
  linkedFlows: [],
481
481
  style: {backgroundColor: FlowChartColors.Purple.valueOf()},
482
482
  };