@t2000/sdk 0.17.2 → 0.17.3
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/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3027,9 +3027,6 @@ var PortfolioManager = class {
|
|
|
3027
3027
|
if (!pos || pos.totalAmount <= 0) {
|
|
3028
3028
|
throw new T2000Error("INSUFFICIENT_INVESTMENT", `No ${asset} position to earn on`);
|
|
3029
3029
|
}
|
|
3030
|
-
if (pos.earning) {
|
|
3031
|
-
throw new T2000Error("INVEST_ALREADY_EARNING", `${asset} is already earning via ${pos.earningProtocol}`);
|
|
3032
|
-
}
|
|
3033
3030
|
pos.earning = true;
|
|
3034
3031
|
pos.earningProtocol = protocol;
|
|
3035
3032
|
pos.earningApy = apy;
|