DeFi Basket
Search…
Wallet
This is a contract that is only accessed by the Portfolio NFT Owner through the DeFi Basket protocol.

UseBridges

This function runs the bridges to interact with other DeFi protocols. These function is extremely sensitive from attacks from malicious bridges, as bridges can access all wallet funds.
Input Name
Description
bridgeAddresses
Addresses of deployed bridge contractsbridge
EncodedCalls
Encoded calls to be passed on to delegate calls
1
function useBridges(
2
address[] calldata _bridgeAddresses,
3
bytes[] calldata _bridgeEncodedCalls
4
) external;
Copied!

Withdraw

This functions withdraws money from the Wallet to the NFT owner.
Input Name
Description
outputs
ERC20 token address and percentages that will exit the contract
outputEthPercentage
Percentage of ETH in portfolio that will exit the contract
nftOwner
NFT owner address
1
function withdraw(
2
IPDataTypes.TokenData calldata outputs,
3
uint256 outputEthPercentage,
4
address nftOwner
5
) external returns (uint256[] memory, uint256);
Copied!
Last modified 2mo ago
Copy link