| Crates.io | add-decimals |
| lib.rs | add-decimals |
| version | 1.1.2 |
| created_at | 2021-12-29 03:14:50.357919+00 |
| updated_at | 2022-04-17 07:51:03.253795+00 |
| description | Wraps another token to give it more decimals. |
| homepage | https://saber.so |
| repository | https://github.com/saber-hq/saber-periphery |
| max_upload_size | |
| id | 504587 |
| size | 21,633 |
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.