-
Notifications
You must be signed in to change notification settings - Fork 3
Docs #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
0xAlcibiades
wants to merge
4
commits into
main
Choose a base branch
from
docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Docs #7
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
614338e
update price oracle interface from documentation effort
0xAlcibiades 218b55c
document price oracle
0xAlcibiades a2425fb
remove uniswap v3 details from the agnostic volatility interface
0xAlcibiades 991a924
Merge branch 'main' into docs
0xAlcibiades File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| pragma solidity >=0.8.0; | ||
|
|
||
| /** | ||
| * @dev Interface of the ERC20 standard as defined in the EIP. | ||
| */ | ||
| interface IERC20 { | ||
| /** | ||
| * @dev Emitted when `value` tokens are moved from one account (`from`) to | ||
| * another (`to`). | ||
| * | ||
| * Note that `value` may be zero. | ||
| */ | ||
| event Transfer(address indexed from, address indexed to, uint256 value); | ||
|
|
||
| /** | ||
| * @dev Emitted when the allowance of a `spender` for an `owner` is set by | ||
| * a call to {approve}. `value` is the new allowance. | ||
| */ | ||
| event Approval(address indexed owner, address indexed spender, uint256 value); | ||
|
|
||
| /** | ||
| * @dev Returns the amount of tokens in existence. | ||
| */ | ||
| function totalSupply() external view returns (uint256); | ||
|
|
||
| /** | ||
| * @dev Returns the amount of tokens owned by `account`. | ||
| */ | ||
| function balanceOf(address account) external view returns (uint256); | ||
|
|
||
| /** | ||
| * @dev Moves `amount` tokens from the caller's account to `to`. | ||
| * | ||
| * Returns a boolean value indicating whether the operation succeeded. | ||
| * | ||
| * Emits a {Transfer} event. | ||
| */ | ||
| function transfer(address to, uint256 amount) external returns (bool); | ||
|
|
||
| /** | ||
| * @dev Returns the remaining number of tokens that `spender` will be | ||
| * allowed to spend on behalf of `owner` through {transferFrom}. This is | ||
| * zero by default. | ||
| * | ||
| * This value changes when {approve} or {transferFrom} are called. | ||
| */ | ||
| function allowance(address owner, address spender) external view returns (uint256); | ||
|
|
||
| /** | ||
| * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. | ||
| * | ||
| * Returns a boolean value indicating whether the operation succeeded. | ||
| * | ||
| * IMPORTANT: Beware that changing an allowance with this method brings the risk | ||
| * that someone may use both the old and the new allowance by unfortunate | ||
| * transaction ordering. One possible solution to mitigate this race | ||
| * condition is to first reduce the spender's allowance to 0 and set the | ||
| * desired value afterwards: | ||
| * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 | ||
| * | ||
| * Emits an {Approval} event. | ||
| */ | ||
| function approve(address spender, uint256 amount) external returns (bool); | ||
|
|
||
| /** | ||
| * @dev Moves `amount` tokens from `from` to `to` using the | ||
| * allowance mechanism. `amount` is then deducted from the caller's | ||
| * allowance. | ||
| * | ||
| * Returns a boolean value indicating whether the operation succeeded. | ||
| * | ||
| * Emits a {Transfer} event. | ||
| */ | ||
| function transferFrom(address from, address to, uint256 amount) external returns (bool); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm making some edits to the price oracle contract in a separate PR. since I'm already editing the other contract, if you back out these IERC20 changes, I can integrate them in the other PR. jsut don't want to have to deal with the conflict.