@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.
- package/dist/cli.js +48 -24
- package/dist/cli.mjs +46 -22
- package/dist/index.browser.global.js +11934 -19091
- package/dist/index.browser.mjs +505 -83
- package/dist/index.d.ts +56 -15
- package/dist/index.js +512 -89
- package/dist/index.mjs +507 -85
- package/package.json +1 -1
- package/src/dataTypes/_bignumber.ts +15 -7
- package/src/global.ts +13 -6
- package/src/interfaces/common.ts +3 -0
- package/src/modules/avnu.ts +74 -59
- package/src/modules/harvests.ts +74 -0
- package/src/modules/pricer-from-api.ts +9 -8
- package/src/modules/zkLend.ts +2 -1
- package/src/strategies/base-strategy.ts +3 -3
- package/src/strategies/ekubo-cl-vault.ts +477 -55
- package/src/strategies/index.ts +2 -1
- package/src/strategies/vesu-rebalance.ts +3 -3
package/src/strategies/index.ts
CHANGED
|
@@ -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
|
};
|