DeFi Saver
Search
K

ReflexerSupply

Description

Action ID: 0x1b6b9da7
Network mainnet: (Deployed address | Code)
Supply collateral to a Reflexer safe

SDK Action

const supplyMySafe = new dfs.actions.reflexer.ReflexerSupplyAction(
safeId,
amount,
adapterAddr,
from,
);

Contract

This is a DFS STANDARD_ACTION.
Address from which we're pulling collateral tokens must approve proxy
If amount is uint.max then pull and supply whole token balance of _from address
Input:
/// @param safeId Id of the safe
/// @param amount Amount of tokens to supply
/// @param adapterAddr Adapter address of the reflexer collateral
/// @param from Address where to pull the collateral from
struct Params {
uint256 safeId;
uint256 amount;
address adapterAddr;
address from;
}
Return value:
return bytes32(returnAmount);
Events:
emit ActionEvent("ReflexerSupply", logData);
logger.logActionDirectEvent("ReflexerSupply", logData);
bytes memory logData = abi.encode(_safeId, _amount, _adapterAddr, _from)