/axie-money

Axie Infinity breeding and scholarship profit calculator

Primary LanguagePython

Axie Money

Breeding Profit Calculator

Calculate the time it takes prior to break even from breeding axies. Currently supports ABC and ABCD loops. Crypto prices are pulled from known services, or can be specified by the user.

Usage

from decimal import Decimal
from axie_money.calculators import BreedingProfitCalculator, PriceConverter

price_converter=PriceConverter(
	slp_rate=Decimal("0.08"), axs_rate=Decimal("37"), eth_rate=Decimal("3140")
)
calculator = BreedingProfitCalculator(
	price_converter=price_converter,
	price_floor=Decimal("0.173"),
	price_ceiling=Decimal("0.69"),
)
initial_capital = calculator.calculate_initial_capital(
	parent_prices=[
		Decimal("0.5"),
		Decimal("0.5"),
		Decimal("0.5")
	]
)
breeding_cost = calculator.calculate_cumulative_breeding_cost(
	breed_count=4,
	parent_count=2
)
sale_price = calculator.calculate_sale_price(offspring_sold=2)
profit = calculator.calculate_profit(breeding_cost, sale_price)
roi_generations = calculator.calculate_roi_generations(
	initial_capital, breeding_cost, profit
)
calculator.calculate_roi_days(
	roi_generations=roi_generations
)

Scholarship Profit Calculator

Calculate the time it takes prior to break even from a scholarship.

Usage

from decimal import Decimal
from axie_money.calculators import ScholarshipProfitCalculator, PriceConverter

price_converter=PriceConverter(
	slp_rate=Decimal("0.08"), axs_rate=Decimal("67"), eth_rate=Decimal("3140")
)
calculator = ScholarshipProfitCalculator(
	price_converter=price_converter,
	min_slp=Decimal("100"),  # Minimum required SLP the scholar has to farm per day
	max_slp=Decimal("200"),  # Theoretical maximum SLP the scholar can farm per day
	percentage=Decimal("0.5")
)
initial_capital = calculator.calculate_initial_capital(
	[Decimal("0.18"), Decimal("0.22"), Decimal("0.169")]
)
days = 30
actual_average = calculator.calculate_actual_average_slp_per_day(
	4000,  # Unclaimable SLP the scholar is currently holding
	days  # Number of days in a period, ie 30 if calculating for a monthly period
)
calculator.calculate_roi_days(
	initial_capital, actual_average, days
)