The idea that donation protocol authority authorizes CLMM program and each related pool state for new donation token ("coin"). After that we can start create fundraising and donate in authorized by authirity donation token.
CLMM is used to get token pair price between donation default token USDC and authorized one and to calculate fair earning in Donaty tokens. For example BONK price now is 1 USDC = 35000 BONK so we need to calculate reward that very close or equal to 1 USDC when user donate 35000 BONK
New methods are introduced for creation fundraising, donate and withdraw which support any SPL Token as donation mint but it is required to authorize them in advance
Implementation is based on Concentrated Liquidity Market Maker (CLMM) DEX aproach. Currently Raydium CLMM is selected as a most trustworthy decentralized provider with highest volume.
The idea that donation protocol authority authorizes CLMM program and each related pool state for new donation token ("coin"). After that we can start create fundraising and donate in authorized by authirity donation token.
CLMM is used to get token pair price between donation default token USDC and authorized one and to calculate fair earning in Donaty tokens. For example BONK price now is 1
USDC
= 35000BONK
so we need to calculate reward that very close or equal to 1USDC
when user donate 35000BONK
New methods are introduced for creation fundraising, donate and withdraw which support any SPL Token as donation mint but it is required to authorize them in advance
Added sequence diagrams for v2 flows into Readme.