@@ -586,6 +586,7 @@ pub fn open_position<'a, 'b, 'c: 'info, 'info>(
586
586
token_program,
587
587
system_program,
588
588
rent,
589
+ personal_position. key ( ) ,
589
590
with_matedata,
590
591
) ?;
591
592
@@ -920,9 +921,6 @@ pub fn update_position(
920
921
Ok ( ( flipped_lower, flipped_upper) )
921
922
}
922
923
923
- const METADATA_URI : & str =
924
- "https://cloudflare-ipfs.com/ipfs/QmbzJafuKY3B4t25eq9zdKZMgXiMeW4jHLzf6KE6ZmHWn1/02.json" ;
925
-
926
924
fn create_nft_with_metadata < ' info > (
927
925
payer : & Signer < ' info > ,
928
926
pool_state_loader : & AccountLoader < ' info , PoolState > ,
@@ -933,6 +931,7 @@ fn create_nft_with_metadata<'info>(
933
931
token_program : & Program < ' info , Token > ,
934
932
system_program : & Program < ' info , System > ,
935
933
rent : & Sysvar < ' info , Rent > ,
934
+ personal_position_id : Pubkey ,
936
935
with_matedata : bool ,
937
936
) -> Result < ( ) > {
938
937
let pool_state = pool_state_loader. load ( ) ?;
@@ -960,7 +959,10 @@ fn create_nft_with_metadata<'info>(
960
959
pool_state_loader. key ( ) ,
961
960
String :: from ( "Raydium Concentrated Liquidity" ) ,
962
961
String :: from ( "RCL" ) ,
963
- METADATA_URI . to_string ( ) ,
962
+ format ! (
963
+ "https://dynamic-ipfs.raydium.io/clmm/position?id={}" ,
964
+ personal_position_id. to_string( )
965
+ ) ,
964
966
Some ( vec ! [ Creator {
965
967
address: pool_state_loader. key( ) ,
966
968
verified: true ,
0 commit comments