@@ -725,14 +725,14 @@ pub mod pallet {
725
725
}
726
726
727
727
impl < T : Config > Pallet < T > {
728
- /// Swap exactly `amount_in` of asset `path[0]` for asset `path[1 ]`.
728
+ /// Swap exactly `amount_in` of asset `path[0]` for asset `path[last ]`.
729
729
/// If an `amount_out_min` is specified, it will return an error if it is unable to acquire
730
730
/// the amount desired.
731
731
///
732
- /// Withdraws the `path[0]` asset from `sender`, deposits the `path[1 ]` asset to `send_to`,
732
+ /// Withdraws the `path[0]` asset from `sender`, deposits the `path[last ]` asset to `send_to`,
733
733
/// respecting `keep_alive`.
734
734
///
735
- /// If successful, returns the amount of `path[1 ]` acquired for the `amount_in`.
735
+ /// If successful, returns the amount of `path[last ]` acquired for the `amount_in`.
736
736
///
737
737
/// WARNING: This may return an error after a partial storage mutation. It should be used
738
738
/// only inside a transactional storage context and an Err result must imply a storage
@@ -773,14 +773,14 @@ pub mod pallet {
773
773
Ok ( amount_out)
774
774
}
775
775
776
- /// Take the `path[0]` asset and swap some amount for `amount_out` of the `path[1 ]`. If an
776
+ /// Take the `path[0]` asset and swap some amount for `amount_out` of the `path[last ]`. If an
777
777
/// `amount_in_max` is specified, it will return an error if acquiring `amount_out` would be
778
778
/// too costly.
779
779
///
780
- /// Withdraws `path[0]` asset from `sender`, deposits the `path[1 ]` asset to `send_to`,
780
+ /// Withdraws `path[0]` asset from `sender`, deposits the `path[last ]` asset to `send_to`,
781
781
/// respecting `keep_alive`.
782
782
///
783
- /// If successful returns the amount of the `path[0]` taken to provide `path[1 ]`.
783
+ /// If successful returns the amount of the `path[0]` taken to provide `path[last ]`.
784
784
///
785
785
/// WARNING: This may return an error after a partial storage mutation. It should be used
786
786
/// only inside a transactional storage context and an Err result must imply a storage
0 commit comments