CZZ & Uniswap 社区去中心化稳定币挖矿设计终审开源代码



  •  czz_amount1             ; The original number that meets the criteria
    
     before_price_czz        ; The ratio of CZZ to ETH the day before yesterday
     yesterday_price_czz     ; Yesterday ratio of CZZ to ETH
     max_trading_eth_me      ; The largest ETH traded within 48 hours of the address
     max_trading_eth        ; 48 hours maximum of all transactions ETH
    
     czz_proportion = 0
    
     if before_price_czz > yesterday_price_czz:
            czz_proportion = (before_price_czz - yesterday_price_czz) / yesterday_price_czz * (max_trading_eth_me / max_trading_eth)
    
     czz_amount = czz_amount1 * czz_proportion ; Actual number of air drops
    

Log in to reply