Creates a wrapper token which increases the number of decimals of a token. This allows our Stable Swap algorithm to work with tokens that do not have the same number of decimals.
The wrapper is a PDA account with the seeds:
"anchor"
(from legacy Anchor PDA derivation)underlying_mint
- (mint of the underlying asset)decimals
- (the number of decimals, must be greater than the decimals of the underlying's mint)Anyone may initialize a new wrapper. To do so:
solana-keygen grind
.initialize_wrapper
instruction.The Saber Periphery contracts are licensed under the Affero GPL License, Version 3.0.