Note that this page has not been updated to reflect the current state of Beanstalk, but is left here as a reference.
The Marketplace Facet handles logic for buying and selling Pods on the Pod Market.
Call Functions
function createPodListing(
uint256 index,
uint256 start,
uint256 amount,
uint24 pricePerPod,
uint256 maxHarvestableIndex,
uint256 minFillAmount,
LibTransfer.To mode
) external payable;
WIP
function createPodListingV2(
uint256 index,
uint256 start,
uint256 amount,
uint256 maxHarvestableIndex,
uint256 minFillAmount,
bytes calldata pricingFunction,
LibTransfer.To mode
) external payable;
WIP
function fillPodListing(
PodListing calldata l,
uint256 beanAmount,
LibTransfer.From mode
) external payable;
WIP
function fillPodListingV2(
PodListing calldata l,
uint256 beanAmount,
bytes calldata pricingFunction,
LibTransfer.From mode
) external payable;
WIP
function cancelPodListing(uint256 index) external payable;
WIP
function createPodOrder(
uint256 beanAmount,
uint24 pricePerPod,
uint256 maxPlaceInLine,
uint256 minFillAmount,
LibTransfer.From mode
) external payable returns (bytes32 id);
WIP
Return Value | Type | Description |
---|
| | |
function createPodOrderV2(
uint256 beanAmount,
uint256 maxPlaceInLine,
uint256 minFillAmount,
bytes calldata pricingFunction,
LibTransfer.From mode
) external payable returns (bytes32 id);
Return Value | Type | Description |
---|
| | |
function fillPodOrder(
PodOrder calldata o,
uint256 index,
uint256 start,
uint256 amount,
LibTransfer.To mode
) external payable;
WIP
function fillPodOrderV2(
PodOrder calldata o,
uint256 index,
uint256 start,
uint256 amount,
bytes calldata pricingFunction,
LibTransfer.To mode
) external payable;
WIP
function cancelPodOrder(
uint24 pricePerPod,
uint256 maxPlaceInLine,
uint256 minFillAmount,
LibTransfer.To mode
) external payable;
WIP
function cancelPodOrderV2(
uint256 maxPlaceInLine,
uint256 minFillAmount,
bytes calldata pricingFunction,
LibTransfer.To mode
) external payable;
WIP
function transferPlot(
address sender,
address recipient,
uint256 id,
uint256 start,
uint256 end
) external payable nonReentrant;
WIP
function approvePods(address spender, uint256 amount)
external
payable
nonReentrant;
WIP
function getAmountPodsFromFillListingV2(
uint256 placeInLine,
uint256 podListingAmount,
uint256 fillBeanAmount,
bytes calldata pricingFunction
) public pure returns (uint256 amount);
WIP
Return Value | Type | Description |
---|
| | |
function getAmountBeansToFillOrderV2(
uint256 placeInLine,
uint256 amountPodsFromOrder,
bytes calldata pricingFunction
) public pure returns (uint256 beanAmount);
WIP
Return Value | Type | Description |
---|
| | |
View Functions
function podOrder(
address account,
uint24 pricePerPod,
uint256 maxPlaceInLine,
uint256 minFillAmount
) external view returns (uint256);
WIP
function podOrderV2(
address account,
uint256 maxPlaceInLine,
uint256 minFillAmount,
bytes calldata pricingFunction
) external view returns (uint256);
WIP
function podOrderById(bytes32 id) external view returns (uint256);
WIP
function podListing(uint256 index) external view returns (bytes32);
WIP
function allowancePods(address owner, address spender)
public
view
returns (uint256);
WIP
Events
event PodListingCreated(
address indexed account,
uint256 index,
uint256 start,
uint256 amount,
uint24 pricePerPod,
uint256 maxHarvestableIndex,
uint256 minFillAmount,
bytes pricingFunction,
LibTransfer.To mode,
LibPolynomial.PriceType pricingType
);
WIP
event PodListingFilled(
address indexed from,
address indexed to,
uint256 index,
uint256 start,
uint256 amount,
uint256 costInBeans
);
WIP
event PodListingCancelled(address indexed account, uint256 index);
WIP
event PodOrderCreated(
address indexed account,
bytes32 id,
uint256 amount,
uint24 pricePerPod,
uint256 maxPlaceInLine,
uint256 minFillAmount,
bytes pricingFunction,
LibPolynomial.PriceType priceType
);
WIP
event PodOrderFilled(
address indexed from,
address indexed to,
bytes32 id,
uint256 index,
uint256 start,
uint256 amount,
uint256 costInBeans
);
WIP
event PodOrderCancelled(address indexed account, bytes32 id);
WIP
event PlotTransfer(
address indexed from,
address indexed to,
uint256 indexed id,
uint256 pods
);
WIP
event PodApproval(
address indexed owner,
address indexed spender,
uint256 pods
);
WIP