Trade fCash (Borrow & Lend Fixed)
Deposit and Lend Fixed
from helpers import get_balance_trade_action
# Deposit 10 DAI to Notional as Prime Dai and lend 5 fDAI fixed in the 3M maturity (marketIndex = 1).
lendActionDai = get_balance_trade_action(2, "DepositUnderlying", [
{"tradeActionType": "Lend", "marketIndex": 1, "notional": 5 * 1e8, "minSlippage": 0.03*1e9}
], depositActionAmount = 10e18)
tx = notional.batchBalanceAndTradeAction(account.address, [lendActionDai], {"from": account})Deposit and Lend Fixed in multiple maturities
from helpers import get_balance_trade_action
# Deposit 10 DAI to Notional as Prime Dai,
# Lend 5 fDAI fixed in the 3M maturity (marketIndex = 1), and
# Lend 3 fDAI fixed in the 6M maturity (marketIndex = 2).
lendActionDai = get_balance_trade_action(2, "DepositUnderlying", [
{"tradeActionType": "Lend", "marketIndex": 1, "notional": 5 * 1e8, "minSlippage": 0.03*1e9},
{"tradeActionType": "Lend", "marketIndex": 2, "notional": 3 * 1e8, "minSlippage": 0.02*1e9}
], depositActionAmount = 10e18)
tx = notional.batchBalanceAndTradeAction(account.address, [lendActionDai], {"from": account})Deposit and Lend Fixed in multiple currencies
Deposit, lend fixed in the 3M maturity and borrow in the 6M maturity
Deposit Prime Cash in one currency and borrow fixed in another currency
Last updated