Controller
A smart contract from which refinancing operations for a vault-pair can be executed. Refinancing of vault's debt can be 100% or partial.

FUNCTIONS

doRefinancing()

Performs a forced refinancing routine
1
function doRefinancing(
2
address _vaultAddr,
3
address _newProvider,
4
uint256 _ratioA,
5
uint256 _ratioB,
6
uint8 _flashNum
7
) external isValidVault(_vaultAddr) onlyOwnerOrExecutor
Copied!
_vaultAddr: the Fuji Vault address where the collateral is coming from.
_newProvider: The new protocol where all the funds will move.
_ratioA: Ratio to determine how much debt position to move.
ratioB: Ratio A divided by Ratio B is less or equal to 1 and more than 0.
_flashNum: Integer identifier of flashloan provider.

setFujiAdmin()

Sets the fujiAdmin address that is used for verification in doRefinancing()
1
function fujiAdmin(address _newFujiAdmin) external onlyOwner
Copied!
Last modified 1mo ago
Copy link
Contents
FUNCTIONS