The rebase-hedged Ample (rhAmple) token is a %-ownership of Ample supply interest-bearing token, i.e. wAmple interest bearing.
However, the rhAmple token denominates user deposits in Ample. This is possible by using the ElasticReceiptToken which ensures the rhAmple supply always equals the amount of Amples deposited.
Therefore, the conversion rate of rhAmple:Ample is always 1:1 (outside of in-transaction states).
This conversion rate can only break during a user's withdrawal transaction in which rebase-hedged receipt tokens may be selled in the open market.
The rhAmple ERC20 tokens implementes ButtonWood's IButtonWrapper interface.
To install with Foundry:
forge install rhAmple/rhAmple-contracts
Common tasks are executed through a Makefile
:
make help
> build Build project
> clean Remove build artifacts
> test Run whole testsuite
> testButtonWrapper Run ButtonWrapper tests
> testDeployment Run deployment tests
> testOnlyOwner Run onlyOwner tests
> testRestructure Run Restructure tests
This is experimental software and is provided on an "as is" and "as available" basis.
We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.