Web3 Python Weekly #1
GitHub development landscape, Curve's lending AMM, & a holiday challenge!
Hello world! Welcome to the first edition of the Web3 Python Weekly. Each week we’ll bring you one tweet, video, github repo, and exercise to keep you up to date on all things happening in Web3.py. Thanks for joining us for the inaugural edition!
print("let's rock n roll")The State of Python Development
Build Python on NEAR Protocol

Curve Lending AMM: Test Price Continuity Function
def test_price_continuity():
amm = LendingAMM(p_base=1000, A=100)
for i in range(-100, 100):
amm.bands_x[i] = 10000 * random() + 1.0
amm.bands_y[i] = 0.0
amm.bands_x[i+1] = 0.0
amm.bands_y[i+1] = 10 * random() + 0.001
amm.active_band = i
p1 = amm.get_p()
amm.active_band = i+1
p2 = amm.get_p()
assert abs(p1 - p2) < 1e-8
assert abs(p1 - amm.p_up(i)) < 1e-8
assert abs(p2 - amm.p_down(i+1)) < 1e-8Curve Lending AMM model to test price continuity
Create and Mint an NFT using Python
That's it for today & see ya next time! If you liked this issue, be sure to share!



