forked from sighingnow/jekyll-gitbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from FydeTreasury/govDocs
Gov docs
- Loading branch information
Showing
8 changed files
with
95 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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,15 @@ | ||
|
||
sequenceDiagram | ||
actor User | ||
participant GovernanceModule | ||
participant MinimalProxy | ||
participant UserProxy | ||
|
||
User ->> GovernanceModule: Calls governance <br> function <br> (e.g. degelate()) | ||
GovernanceModule ->> MinimalProxy: forwards via call to user specific proxy <br/> (MinimalProxy.delegate()) | ||
MinimalProxy ->> GovernanceModule: forwards via delegateCall <br/> (GovernanceModule.delegateCall("delegate()")) | ||
Note over GovernanceModule: Access authorization and call <br/> for implementation address logic | ||
MinimalProxy ->> GovernanceModule: calls to get implementation address <br/> (GovernanceModule.proxyImplementation()) | ||
MinimalProxy ->> UserProxy: forwards via delegateCall <br/> (UserProxy.delegateCall("delegate()")) | ||
Note over UserProxy: Contains logic for governance functions <br/> | ||
|
This file contains 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,21 @@ | ||
|
||
sequenceDiagram | ||
actor User | ||
participant Fyde | ||
participant GovernanceModule | ||
participant User's Proxy | ||
participant Underweight Proxy | ||
participant Overweight Proxy | ||
|
||
User ->> GovernanceModule: calls rebalanceProxy() | ||
Note over GovernanceModule: If User's Proxy <br/> overweight | ||
GovernanceModule ->> User's Proxy: sendAssetToFyde() | ||
User's Proxy ->> Fyde: ERC20 transfer of overweight assets | ||
Note over GovernanceModule: If User's Proxy underweight <br/> and enough in standard Pool | ||
GovernanceModule ->> Fyde: sendAssetToProxy() | ||
Fyde ->> User's Proxy: ERC20 transfer of underweight assets | ||
Note over GovernanceModule: If User's Proxy underweight <br/> and not enough in standard Pool | ||
GovernanceModule ->> Overweight Proxy: sendAssetToFyde() | ||
Overweight Proxy ->> Fyde: ERC20 transfer of overweight assets | ||
GovernanceModule ->> Fyde: sendAssetToProxy() | ||
Fyde ->> User's Proxy: ERC20 transfer of underweight assets |