Skip to content

Commit

Permalink
GITBOOK-423: Improvement in the Proto Staker section
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilar Rodríguez authored and gitbook-bot committed Aug 3, 2023
1 parent 982124a commit 7bb4bba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion guides/periphery/airdrop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Using Solmate's Merkle tree library, this smart contract can validate the eligib

It interfaces with the [Sablier protocol](https://sablier.com), a token streaming mechanism, to facilitate the creation of an NFT for each recipient and subsequently initiate the airdrop stream.

GitHub URL: [https://github.com/exactly/protocol/blob/main/contracts/periphery/Airdrop.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/Airdrop.sol)
**GitHub URL:** [https://github.com/exactly/protocol/blob/main/contracts/periphery/Airdrop.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/Airdrop.sol)
2 changes: 1 addition & 1 deletion guides/periphery/debtmanager.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ This contract allows users to handle their positions in a more flexible way. Mak

This contract also uses ['permits'](https://help.1inch.io/en/articles/5435386-permit-712-signed-token-approvals-and-how-they-work-on-1inch) for approvals related to allowing you to transfer tokens on your behalf and perform withdrawals or borrows from a Market. Permits are signatures spent when the user completes the transaction, and the approved amount is always exact. After the leverage or deleverage operation is completed, the DebtManager no longer has any allowance over tokens, withdraws or borrows.

GitHub URL: [https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtManager.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtManager.sol)
**GitHub URL:** [https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtManager.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtManager.sol)
3 changes: 1 addition & 2 deletions guides/periphery/debtpreviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ This is a smart contract designed to abstract the `DebtManager` logic, it provid
* Retrieve information about any account collateral and debt for any pair of markets in exactly.
* Allow accounts to preview their positions, simulating a leverage or deleverage to a certain ratio with a desired health factor.

\
GitHub URL: [https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtPreviewer.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtPreviewer.sol)
**GitHub URL:** [https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtPreviewer.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/DebtPreviewer.sol)
2 changes: 1 addition & 1 deletion guides/periphery/exa.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

The EXA smart contract encapsulates the functionality of the EXA ERC20 token. This smart contract uses OpenZeppelin's [`ERC20VotesUpgradeable`](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol) implementation.

GitHub URL: [https://github.com/exactly/protocol/blob/main/contracts/periphery/EXA.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/EXA.sol)
**GitHub URL:** [https://github.com/exactly/protocol/blob/main/contracts/periphery/EXA.sol](https://github.com/exactly/protocol/blob/main/contracts/periphery/EXA.sol)
4 changes: 2 additions & 2 deletions guides/periphery/proto-staker.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ This smart contract is integrated into Exactly Protocol’s web app to enable us

This contract also uses '[permits](https://help.1inch.io/en/articles/5435386-permit-712-signed-token-approvals-and-how-they-work-on-1inch)' to perform these transactions.

**GitHub URL:** [https://github.com/exactly/protocol/blob/history/proto-staking-0/contracts/periphery/ProtoStaker.sol ](https://github.com/exactly/protocol/blob/history/proto-staking-0/contracts/periphery/ProtoStaker.sol)

### Potential Exposure to Impermanent Loss

By engaging with the Proto-Staker contract within Exactly Protocol, users should be aware that they may be exposed to a phenomenon known as **impermanent loss**. This financial risk is prevalent in dApps, where liquidity is provided to automated market makers (AMMs). Impermanent loss can occur when the price ratio of the provided assets changes, resulting in a temporary discrepancy between the current value of the held assets within the liquidity pool and the value if held outside the pool. In the context of the EXA/WETH Liquidity Pool, price changes in either EXA or WETH can trigger this loss, impacting the overall value of the contributed assets. Users should carefully consider this risk and monitor the price movements of the involved assets when interacting with the Proto-Staker.

GitHub URL: [https://github.com/exactly/protocol/blob/history/proto-staking-0/contracts/periphery/ProtoStaker.sol ](https://github.com/exactly/protocol/blob/history/proto-staking-0/contracts/periphery/ProtoStaker.sol)

\
\

0 comments on commit 7bb4bba

Please sign in to comment.