Events ​
Events ​
LogDeposit ​
Emitted when user deposits collateral in WETH
solidity
event LogDeposit(address indexed user, uint256 indexed nftId, uint256 amount);
Parameters
Name | Type | Description |
---|---|---|
user | address | The user performing the deposit |
nftId | uint256 | The vault NFT ID |
amount | uint256 | Amount of WETH deposited |
LogWithdraw ​
Emitted when user withdraws collateral (receives WETH)
solidity
event LogWithdraw(address indexed user, uint256 indexed nftId, uint256 amount);
Parameters
Name | Type | Description |
---|---|---|
user | address | The user performing the withdrawal |
nftId | uint256 | The vault NFT ID |
amount | uint256 | Amount of WETH withdrawn |
LogBorrow ​
Emitted when user borrows
solidity
event LogBorrow(address indexed user, uint256 indexed nftId, uint256 amount);
Parameters
Name | Type | Description |
---|---|---|
user | address | The user performing the borrow |
nftId | uint256 | The vault NFT ID |
amount | uint256 | Amount borrowed |
LogPayback ​
Emitted when user pays back debt
solidity
event LogPayback(address indexed user, uint256 indexed nftId, uint256 amount);
Parameters
Name | Type | Description |
---|---|---|
user | address | The user performing the payback |
nftId | uint256 | The vault NFT ID |
amount | uint256 | Amount repaid |