@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.cjs
CHANGED
|
@@ -14851,8 +14851,8 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14851
14851
|
if (bnUSDVault.toLowerCase() === vaultAddress.toLowerCase()) {
|
|
14852
14852
|
repayToken = bnUSD;
|
|
14853
14853
|
if (assetAddress.toLowerCase() !== bnUSDVault.toLowerCase()) {
|
|
14854
|
-
calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress,
|
|
14855
|
-
calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress,
|
|
14854
|
+
calls.push(Erc20Service.encodeApprove(assetAddress, vaultAddress, amount));
|
|
14855
|
+
calls.push(EvmVaultTokenService.encodeDeposit(vaultAddress, assetAddress, amount));
|
|
14856
14856
|
}
|
|
14857
14857
|
calls.push(EvmVaultTokenService.encodeWithdraw(bnUSDVault, bnUSD, translatedAmountIn));
|
|
14858
14858
|
} else {
|