---
# System prepended metadata

title: MMB Proposal Preimage V2

---

# MMB Proposal Preimage: calculations & details

## Address of pure proxy on AssetHub
Account: `16bN1LodVn42f4VcDyUEAeary75nhHvPkVshU2R1q16825HJ`
Public key: `0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba`
## Scheduled Payments: amounts
``` sage
usd_chf=0.8838
milestone_chf_full_values = {
    'm1': 162000,
    'm2': 108000,
    'm3': 54000,
    'm4': 18000,
    'm5': 162000,
    'm6': 135000
}
upon_completion=0.7
upon_success=0.3

milestone_values_usdc_completion = {key: upon_completion * mX / usd_chf for key, mX in milestone_chf_full_values.items()}
# print("USDC Completion Values:", milestone_values_usdc_completion)
# print("USDC Completion Value Sum:", sum(milestone_values_usdc_completion.values()))
usdc_units=10^6
milestone_values_usdc_completion_onchain = {key: round(mX * usdc_units) for key, mX in milestone_values_usdc_completion.items()}
print("USDC Completion Values On-Chain:", milestone_values_usdc_completion_onchain)

milestone_values_usdc_success = {key: upon_success * mX / usd_chf for key, mX in milestone_chf_full_values.items()}
total_usdc_success = sum(milestone_values_usdc_success.values())
# print("Total USDC Success Value:", total_usdc_success)
dot_usd_7day_ema=7.370521
# print("Total DOT Success Value:", total_usdc_success/dot_usd_7day_ema)
dot_units=10^10
print("Total DOT Success Value On-Chain:", round(total_usdc_success/dot_usd_7day_ema*dot_units))
```
output:
``` json
USDC Completion Values On-Chain: {'m1': 128309572301, 'm2': 85539714868, 'm3': 42769857434, 'm4': 14256619145, 'm5': 128309572301, 'm6': 106924643585}
Total DOT Success Value On-Chain: 294286220724076
```

Sage Cell Server: [Link](https://sagecell.sagemath.org/?z=eJylks1ugkAUhfckvMONXcgYi4OIEBNWunehbbrqhMAYSWHGOEwT0_TdO8NPQQ3FpCw_LucezrlSJCQ-HkJsB4EbmEaeZlQUnFFNyUFmGfmMMkkFhPBlGqCece6MV-As5xjjaYPmGuGgi1yFvEWXLPTQ1Yx3r7TUyPUUMo1v05AnzkjM81NGi5QzZdSvoZBxTIVQxDWNrvPKMJEiiTtf6h_4oJcV3CjCBPI3mIGskoADP4Oam2qaMugNxE4LmgsLKY9PcDqnrLBGL7vNGtat9Gs5uRpNYcgdGlKBncy1kJC5NSRmV9hCSMmW7yRLCxE6-H05HBThLD5GaRvYmUuWWCqOCbRiqD-oHlNtXn-mBVv2vNb7H4mt8Yr6L6A-k-v6G_j_7gteRNntpv6S6pm2oU7vey0FZSq7WqqMRAdxv0Z9mfBCI-In0YXQPAp92_WxN3fuRDfb_SOas1vFZklzPg7-ba9H-Kq-6nIe2DP53YLQD1oRjIA=&lang=sage&interacts=eJyLjgUAARUAuQ==)

## Scheduled Payments: delays
``` sage
day=10*60*24
week=7*day
date_25_november_2024=23570000 # some time on 25 November
start_date=date_25_november_2024+4*week
safety_factor=1.2

delivery_delays = {
    'm1': 18,
    'm2': 18+12,
    'm3': 6+10,
    'm4': 6+10+2,
    'm5': 6+10+2+18,
    'm6': 6+10+2+18+15,
    'success': 6+10+2+18+15+2*52
}

anticipated_delivery_in_weeks = {key: safety_factor *  mX for key, mX in delivery_delays.items()}
print("Anticipated delivery in weeks:", anticipated_delivery_in_weeks)
anticipated_delivery_blocks = {key: start_date + round(mX * week) for key, mX in anticipated_delivery_in_weeks.items()}
print("Anticipated delivery in blocks:", anticipated_delivery_blocks)
```

``` json
Anticipated delivery in weeks: {'m1': 21.6000000000000, 'm2': 36.0000000000000, 'm3': 19.2000000000000, 'm4': 21.6000000000000, 'm5': 43.2000000000000, 'm6': 61.2000000000000, 'success': 186.000000000000}
Anticipated delivery in blocks: {'m1': 26150480, 'm2': 27602000, 'm3': 25908560, 'm4': 26150480, 'm5': 28327760, 'm6': 30142160, 'success': 42722000}
```

Sage Cell Server: [Link](https://sagecell.sagemath.org/?z=eJyNkcGKgzAQhu-C7zB0D62JFJOqXQQP-wJ73ltINUJojcWkXWTZd9_RttaVbdkcZPLPZP7vx1J2OYtIGhEe-96nUvt8S0rZ-V4pnRI8EaY5q3qnWsEjHud8k2wjPPACtqkVOI2fxgBP4P066HvWydaJfkH-5xYak94JB2WlXCcqWbimzdma-x4aq4M-q7YTWMjOQg5fvgd4ljVbZsBew9uVD1fK-KhsUEkpi0Yhvgr0PpOMEp3sSqcqZcmtYU9FoayddSknCcJ-97zSOF3oIwYtxciujegjDvR71WXwKyoQgPoDKqywGfa1NjALvtZO1XYVoMmx1catFm93p3G4fzg4ZYsQnqIED1B3h6aYgo4_Dyi0zcmUK8Qjg0kwR35q-P8AF4SHCS7t4AfEsdPx&lang=sage&interacts=eJyLjgUAARUAuQ==)
## Preimage Call Data Hex
`0x1a021c130504000100a10f0002043205e51407cdb2d8df1d0400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba0150068f01130504000100a10f0002043205e51407347790ea130400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba01502ca501130504000100a10f0002043205e514079a3b48f5090400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba0150558b01130504000100a10f0002043205e5140789bec251030400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba0150068f01130504000100a10f0002043205e51407cdb2d8df1d0400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba01503fb001130504000100a10f0002043205e51407019534e5180400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba01d0eecb01130504000100a10f01000f6c07a6d9a60b010400010100f762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba01d0e28b02`

## Preimage Call Data JSON
``` json
{
  "type": "Utility",
  "value": {
    "type": "batch_all",
    "value": {
      "calls": [
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "128309572301n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 26150480
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "85539714868n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 27602000
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "42769857434n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 25908560
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "14256619145n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 26150480
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "128309572301n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 28327760
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 0,
                    "interior": {
                      "type": "X2",
                      "value": [
                        {
                          "type": "PalletInstance",
                          "value": 50
                        },
                        {
                          "type": "GeneralIndex",
                          "value": "1337n"
                        }
                      ]
                    }
                  }
                }
              },
              "amount": "106924643585n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 30142160
            }
          }
        },
        {
          "type": "Treasury",
          "value": {
            "type": "spend",
            "value": {
              "asset_kind": {
                "type": "V4",
                "value": {
                  "location": {
                    "parents": 0,
                    "interior": {
                      "type": "X1",
                      "value": {
                        "type": "Parachain",
                        "value": 1000
                      }
                    }
                  },
                  "asset_id": {
                    "parents": 1,
                    "interior": {
                      "type": "Here"
                    }
                  }
                }
              },
              "amount": "294286220724076n",
              "beneficiary": {
                "type": "V4",
                "value": {
                  "parents": 0,
                  "interior": {
                    "type": "X1",
                    "value": {
                      "type": "AccountId32",
                      "value": {
                        "id": "0xf762391f32427e1e7710228ff2d57ffb7ae498aeef5faedee8a5e6eeacc3a6ba"
                      }
                    }
                  }
                }
              },
              "valid_from": 42722000
            }
          }
        }
      ]
    }
  }
}
```