IPartyMemberActions
Contains party methods that can be called by any member of the party
Permissioned Party actions
deposit
function deposit(address user, uint256 amount, struct LibSignatures.Allocation allocation, struct LibSignatures.Sig approval) external
Deposits into the party
The user must be a member and the party must be opened
Parameters
Name | Type | Description |
---|---|---|
user | address | User address that will be making the deposit |
amount | uint256 | Deposit amount in denomination asset |
allocation | struct LibSignatures.Allocation | Desired allocation of the deposit |
approval | struct LibSignatures.Sig | Verified sentinel signature of the desired deposit |
withdraw
function withdraw(uint256 amountPT, struct LibSignatures.Allocation allocation, struct LibSignatures.Sig approval, bool liquidate) external
Withdraw funds from the party
The user must be a member
Parameters
Name | Type | Description |
---|---|---|
amountPT | uint256 | Amount of PartyTokens of the requester to withdraw |
allocation | struct LibSignatures.Allocation | Desired allocation of the withdraw |
approval | struct LibSignatures.Sig | Verified sentinel signature of the desired withdraw |
liquidate | bool | Whether to liquidate assets (convert all owned assets into denomination asset) or to withdraw assets as it is |
leaveParty
function leaveParty(struct LibSignatures.Allocation allocation, struct LibSignatures.Sig approval, bool liquidate) external
Leave the party (withdraw all funds and remove membership)
The user must be a member
Parameters
Name | Type | Description |
---|---|---|
allocation | struct LibSignatures.Allocation | Desired allocation of the withdraw |
approval | struct LibSignatures.Sig | Verified sentinel signature of the desired withdraw |
liquidate | bool | Whether to liquidate assets (convert all owned assets into denomination asset) or to withdraw assets as it is |