Skip to content

Commit

Permalink
Update ERC-7527: Update erc-7527.md
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
lanyinzly authored Sep 24, 2024
1 parent 3300367 commit 9689c5a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions ERCS/erc-7527.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ interface IERC7527Agency {
*/
function getStrategy() external view returns (address app, Asset memory asset, bytes memory attributeData);
/**
* @dev Returns the premium and fee of wrapping.
* @param data The data to encode to calculate the premium and fee of wrapping.
* @return premium The premium of wrapping.
* @return fee The fee of wrapping.
*/
function getWrapOracle(bytes memory data) external view returns (uint256 premium, uint256 fee);
/**
* @dev Returns the premium and fee of unwrapping.
* @param data The data to encode to calculate the premium and fee of unwrapping.
Expand All @@ -152,12 +160,10 @@ interface IERC7527Agency {
function getUnwrapOracle(bytes memory data) external view returns (uint256 premium, uint256 fee);
/**
* @dev Returns the premium and fee of wrapping.
* @param data The data to encode to calculate the premium and fee of wrapping.
* @return premium The premium of wrapping.
* @return fee The fee of wrapping.
* @dev OPTIONAL - This method can be used to improve usability and clarity of Agency, but interfaces and other contracts MUST NOT expect these values to be present.
* @return the description of the agency, such as how `getWrapOracle()` and `getUnwrapOracle()` are calculated.
*/
function getWrapOracle(bytes memory data) external view returns (uint256 premium, uint256 fee);
function description() public view returns (string);
}
```

Expand Down Expand Up @@ -216,6 +222,8 @@ Token ID can be specified in `data` parameter of `mint` function.

### Factory Interface

OPTIONAL - This interface can be used to deploy App and Agency, but interfaces and other contracts MUST NOT expect this interface to be present.

If a factory is needed to deploy bounded App and Agency, the factory SHALL implement the following interface:

```
Expand Down

0 comments on commit 9689c5a

Please sign in to comment.