@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.js
CHANGED
|
@@ -3025,9 +3025,6 @@ var PortfolioManager = class {
|
|
|
3025
3025
|
if (!pos || pos.totalAmount <= 0) {
|
|
3026
3026
|
throw new T2000Error("INSUFFICIENT_INVESTMENT", `No ${asset} position to earn on`);
|
|
3027
3027
|
}
|
|
3028
|
-
if (pos.earning) {
|
|
3029
|
-
throw new T2000Error("INVEST_ALREADY_EARNING", `${asset} is already earning via ${pos.earningProtocol}`);
|
|
3030
|
-
}
|
|
3031
3028
|
pos.earning = true;
|
|
3032
3029
|
pos.earningProtocol = protocol;
|
|
3033
3030
|
pos.earningApy = apy;
|