@sodax/sdk 1.0.3-beta → 1.0.4-beta-rc1
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14823,8 +14823,8 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14823
14823
|
if (bnUSDVault.toLowerCase() === vaultAddress.toLowerCase()) {
|
|
14824
14824
|
repayToken = bnUSD;
|
|
14825
14825
|
if (assetAddress.toLowerCase() !== bnUSDVault.toLowerCase()) {
|
|
14826
|
-
calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress,
|
|
14827
|
-
calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress,
|
|
14826
|
+
calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress, amount));
|
|
14827
|
+
calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress, amount));
|
|
14828
14828
|
}
|
|
14829
14829
|
calls.push(EvmVaultTokenService.encodeWithdraw(bnUSDVault, bnUSD, translatedAmountIn));
|
|
14830
14830
|
} else {
|