Hello World
Hello World
Swaap quiz答案
What is Impermanent Loss? A loss of money due to divergence between asset prices in the poolAssume you invest in an ETH/DAI pool. Consider 1 ETH = 1000DAI at the time you invested, how much Impermanent Loss will you get if a new bull market starts and ETH goes to 4000DAI? Check out this impermanent loss calculator! https://dailydefi.org/tools/impermanent-loss-calculator/ 20% of my positionWho is impacted by Impermanent Loss? Impermanent Loss affects directly Liquidity Providers, who are exper...
Swaap quiz答案
What is Impermanent Loss? A loss of money due to divergence between asset prices in the poolAssume you invest in an ETH/DAI pool. Consider 1 ETH = 1000DAI at the time you invested, how much Impermanent Loss will you get if a new bull market starts and ETH goes to 4000DAI? Check out this impermanent loss calculator! https://dailydefi.org/tools/impermanent-loss-calculator/ 20% of my positionWho is impacted by Impermanent Loss? Impermanent Loss affects directly Liquidity Providers, who are exper...
![Cover image for Solana智能合约开发:合约基本概念[转]](https://img.paragraph.com/cdn-cgi/image/format=auto,width=3840,quality=85/https://storage.googleapis.com/papyrus_images/eeb559a01f6e7c795ea81dd5ce5240e7dac7e9fc30c39fdcb9ad525a5a390b8f.jpg)
Solana智能合约开发:合约基本概念[转]
在Solana的开发文档中 有列出一系列的基本概念,但是对于合约开发,我们只要知道其中的一部分就可以了。Solana的合约程序也被 叫做“on-chain program” 链上程序。和EOS使用WebAssembly runtime不同的是,EOS的合约是被编译成 WebAssembly字节码,然后EOS节点运行一个WebAxxembly的虚拟机runtime来执行编译成WebAssembly的智能合约,而Solana的合约是被编译 成BPF字节码,而不是WebAssembly。 Solana节点的runtime 会加载 这个BPF字节码并执行其逻辑。 既然Solana的智能合约其实是BPF的字节码,那么要怎么生成这样的字节码呢?理论上,只要支持编译成BPF字节码的 程序语言,都可以编写Solana合约,只要输出的是编译后的BPF字节码就可以了。但是Solana官方主要提供了稳定的 Rust和C的支持。这两个语言都可以通过LLVM后端生成BPF字节码。鉴于Solana本身也是用Rust编写的,我们这里主要 关注使用Rust来编写Solana智能合约。 Transactions ...
![Cover image for Solana智能合约开发:合约基本概念[转]](https://img.paragraph.com/cdn-cgi/image/format=auto,width=3840,quality=85/https://storage.googleapis.com/papyrus_images/eeb559a01f6e7c795ea81dd5ce5240e7dac7e9fc30c39fdcb9ad525a5a390b8f.jpg)
Solana智能合约开发:合约基本概念[转]
在Solana的开发文档中 有列出一系列的基本概念,但是对于合约开发,我们只要知道其中的一部分就可以了。Solana的合约程序也被 叫做“on-chain program” 链上程序。和EOS使用WebAssembly runtime不同的是,EOS的合约是被编译成 WebAssembly字节码,然后EOS节点运行一个WebAxxembly的虚拟机runtime来执行编译成WebAssembly的智能合约,而Solana的合约是被编译 成BPF字节码,而不是WebAssembly。 Solana节点的runtime 会加载 这个BPF字节码并执行其逻辑。 既然Solana的智能合约其实是BPF的字节码,那么要怎么生成这样的字节码呢?理论上,只要支持编译成BPF字节码的 程序语言,都可以编写Solana合约,只要输出的是编译后的BPF字节码就可以了。但是Solana官方主要提供了稳定的 Rust和C的支持。这两个语言都可以通过LLVM后端生成BPF字节码。鉴于Solana本身也是用Rust编写的,我们这里主要 关注使用Rust来编写Solana智能合约。 Transactions ...
Glaxy solana任务记录
Raydium,成本20刀左右 https://galaxy.eco/Raydium/campaign/GCHnXUURy4 1.1 在 https://raydium.io 上交易至少5美元,并质押至少 1 RAY 24小时以上直到北京时间2月24日 23:00,意味着最晚2月23日 23:00 要开始质押。 1.2 在Raydium 中添加至少5美元的流动性,并在“Farm”中至少质押24小时以上直到北京时间2月24日 23:00。Wormhole;成本:sol交易1次的gas和matic交易redeem的gas https://galaxy.eco/wormhole/campaign/GCbQXUUrBX 2.1 从“https://wormholebridge.com/#/transfer” 发送任意sol链上的代币到其他链(建议选gas低的马蹄、BSC) 2.2 关注推特“https://twitter.com/wormholecrypto” 2.3 加入discord“https://discord.com/invite/wormholecrypto” 2.4 ...
Glaxy solana任务记录
Raydium,成本20刀左右 https://galaxy.eco/Raydium/campaign/GCHnXUURy4 1.1 在 https://raydium.io 上交易至少5美元,并质押至少 1 RAY 24小时以上直到北京时间2月24日 23:00,意味着最晚2月23日 23:00 要开始质押。 1.2 在Raydium 中添加至少5美元的流动性,并在“Farm”中至少质押24小时以上直到北京时间2月24日 23:00。Wormhole;成本:sol交易1次的gas和matic交易redeem的gas https://galaxy.eco/wormhole/campaign/GCbQXUUrBX 2.1 从“https://wormholebridge.com/#/transfer” 发送任意sol链上的代币到其他链(建议选gas低的马蹄、BSC) 2.2 关注推特“https://twitter.com/wormholecrypto” 2.3 加入discord“https://discord.com/invite/wormholecrypto” 2.4 ...